# tomlj **Repository Path**: tuuzed/tomlj ## Basic Information - **Project Name**: tomlj - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: 1.0 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-16 - **Last Updated**: 2024-08-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TomlJ: A Java parser for Tom's Obvious, Minimal Language (TOML) TomlJ is a complete [TOML](https://github.com/toml-lang/toml) parser with the following attributes: * Supports the latest 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](https://github.com/antlr/antlr4/) parser-generator and runtime library. ## Usage Parsing is straightforward: ``` 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"); ``` ## Getting TomlJ TomlJ is published to a Maven and JCenter. To include using Maven: ``` org.tomlj tomlj 1.0.0 ``` To include using Gradle: `compile 'org.tomlj:tomlj:1.0.0'` Snapshot versions are also published to the [bintray repository](https://bintray.com/tomlj/tomlj/tomlj). ## Links - [GitHub project](https://github.com/tomlj/tomlj) - [Online Java documentation](https://tomlj.github.io/tomlj/docs/java/latest/org/tomlj/package-summary.html) - [Issue tracker: Report a defect or feature request](https://github.com/tomlj/tomlj/issues/new) - [StackOverflow: Ask "how-to" and "why-didn't-it-work" questions](https://stackoverflow.com/questions/ask?tags=tomlj)