All Projects → tomlj → tomlj

tomlj / tomlj

Licence: Apache-2.0 license
A Java parser for Tom's Obvious, Minimal Language (TOML).

Programming Languages

java
68154 projects - #9 most used programming language
ANTLR
299 projects

Projects that are alternatives of or similar to tomlj

Konf
A type-safe cascading configuration library for Kotlin/Java/Android, supporting most configuration formats
Stars: ✭ 225 (+212.5%)
Mutual labels:  config, toml, configuration
parse it
A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.
Stars: ✭ 86 (+19.44%)
Mutual labels:  config, toml, configuration
cfg-rs
A Configuration Library for Rust Applications
Stars: ✭ 18 (-75%)
Mutual labels:  config, toml, configuration
Dasel
Query, update and convert data structures from the command line. Comparable to jq/yq but supports JSON, TOML, YAML, XML and CSV with zero runtime dependencies.
Stars: ✭ 759 (+954.17%)
Mutual labels:  config, toml, configuration
Config Lite
A super simple & flexible & useful config module.
Stars: ✭ 78 (+8.33%)
Mutual labels:  config, toml, configuration
Config Rs
⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications).
Stars: ✭ 915 (+1170.83%)
Mutual labels:  config, toml, configuration
Koanf
Light weight, extensible configuration management library for Go. Built in support for JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.
Stars: ✭ 450 (+525%)
Mutual labels:  config, toml, configuration
Simple Settings
A simple way to manage your project settings.
Stars: ✭ 165 (+129.17%)
Mutual labels:  config, toml, configuration
climatecontrol
Python library for loading settings and config data from files and environment variables
Stars: ✭ 20 (-72.22%)
Mutual labels:  config, toml, configuration
network tech
Cisco config syntax and snippets for Sublime Text
Stars: ✭ 82 (+13.89%)
Mutual labels:  config, configuration
paerser
No description or website provided.
Stars: ✭ 38 (-47.22%)
Mutual labels:  toml, configuration
go-config
Configuration file loader for Go
Stars: ✭ 27 (-62.5%)
Mutual labels:  toml, configuration
logstash-config
logstash-config provides a parser and abstract syntax tree (AST) for the Logstash config format, written in Go
Stars: ✭ 26 (-63.89%)
Mutual labels:  config, configuration
read-env
🔧 Transform environment variables into JSON object with sanitized values.
Stars: ✭ 60 (-16.67%)
Mutual labels:  config, configuration
superconfig
Access environment variables. Also includes presence validation, type coercion and default values.
Stars: ✭ 33 (-54.17%)
Mutual labels:  config, configuration
libconfini
Yet another INI parser
Stars: ✭ 106 (+47.22%)
Mutual labels:  config, configuration
croconf
A flexible and composable configuration library for Go that doesn't suck
Stars: ✭ 14 (-80.56%)
Mutual labels:  config, configuration
javaproperties
Python library for reading & writing Java .properties files
Stars: ✭ 20 (-72.22%)
Mutual labels:  config, configuration
nvim
❤️ A neovim config repo.
Stars: ✭ 33 (-54.17%)
Mutual labels:  config, configuration
Machfiles
The dotfiles you see in all my videos
Stars: ✭ 347 (+381.94%)
Mutual labels:  config, configuration

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: implementation 'org.tomlj:tomlj:1.0.0'

Snapshot versions are also published to the bintray repository.

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].