Status | |
---|---|
Stability | stable |
Component Type | library |
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.
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");