tree: 49c93b89b9c04c1b371571d9d964337e1f05b5a4 [path history] [tgz]
  1. src/
  2. build.gradle
  3. README.md
toml/README.md

Tuweni-Toml: TOML parser for Java/Kotlin

Status
Stabilitystable
Component Typelibrary

Tuweni-Toml is a complete TOML parser with the following attributes:

  • Supports TOML specification version 0.5.0.
  • Provides detailed error reporting, including error position.
  • Performs error recovery, allowing parsing to continue after an error.

It uses the ANTLR parser-generator and runtime library.

Usage

Path source = Paths.get("/path/to/file.toml");
TomlParseResult result = Toml.parse(source);
result.errors().forEach(error -> System.err.println(error.toString()));

String value = result.getString("a. dotted . key");