tomlj

A parser for Tom's Obvious, Minimal Language (TOML).

Лицензия

Лицензия

Группа

Группа

org.tomlj
Идентификатор

Идентификатор

tomlj
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

pom
Описание

Описание

tomlj
A parser for Tom's Obvious, Minimal Language (TOML).
Ссылка на сайт

Ссылка на сайт

https://github.com/tomlj/tomlj
Система контроля версий

Система контроля версий

https://github.com/tomlj/tomlj

Скачать tomlj

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.tomlj/tomlj/ -->
<dependency>
    <groupId>org.tomlj</groupId>
    <artifactId>tomlj</artifactId>
    <version>1.0.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.tomlj/tomlj/
implementation 'org.tomlj:tomlj:1.0.0'
// https://jarcasting.com/artifacts/org.tomlj/tomlj/
implementation ("org.tomlj:tomlj:1.0.0")
'org.tomlj:tomlj:pom:1.0.0'
<dependency org="org.tomlj" name="tomlj" rev="1.0.0">
  <artifact name="tomlj" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.tomlj', module='tomlj', version='1.0.0')
)
libraryDependencies += "org.tomlj" % "tomlj" % "1.0.0"
[org.tomlj/tomlj "1.0.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.antlr : antlr4-runtime jar 4.7.2
com.google.code.findbugs : jsr305 jar 3.0.2

Модули Проекта

Данный проект не имеет модулей.

TomlJ: A Java parser for Tom's Obvious, Minimal Language (TOML)

TomlJ is a complete TOML parser with the following attributes:

  • Supports the latest TOML specification version (1.0.0-rc.1).
  • 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

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:

<dependency>
  <groupId>org.tomlj</groupId>
  <artifactId>tomlj</artifactId>
  <version>1.0.0</version>
</dependency>

To include using Gradle: compile 'org.tomlj:tomlj:1.0.0'

Snapshot versions are also published to the bintray repository.

Links

org.tomlj

TomlJ

Версии библиотеки

Версия
1.0.0