xtomlj

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

Лицензия

Лицензия

Группа

Группа

io.github.xtomlj
Идентификатор

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

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

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

1.1.0
Дата

Дата

Тип

Тип

pom
Описание

Описание

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

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

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

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

https://github.com/xtomlj/xtomlj

Скачать xtomlj

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

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

Зависимости

compile (2)

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

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

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

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

xTomlJ 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.

This is a fork from the original project TomlJ. It was created because the original project appears to be inactive.

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 xTomlJ

xTomlJ is published to Maven Central.

To include using Maven:

<dependency>
  <groupId>io.github.xtomlj</groupId>
  <artifactId>xtomlj</artifactId>
  <version>1.1.0</version>
</dependency>

To include using Gradle: implementation 'io.github.xtomlj:xtomlj:1.1.0'

Links

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

Версия
1.1.0