A native TOML parser for haxe, works with all targets.
Designed to be compliant toml v1.0.0 and have extensive warning / error handling. Tested with toml-test
- haxe
- neko
- toml-test (for testing)
The original develop environment is setup using direnv and is not required, but might be helpful (for unix platforms).
- Haxe is installed in
.haxe/$version, with a file.haxe/versionthat dictates which version to use. - Neko is installed in
.neko/$version, with a file.neko/versionthat dictates which version to use. - toml-test is installed in
.toml-testby cloning the toml-test and following the instructions there to build it.
The .envrc then adds all of these to the local path, as well as adding the .scripts folder to the path for easy execution of builder and helper scripts
This library uses toml-test to ensure compliance with the TOML spec. In order to run the tests you need to run toml-test with the decoder that is built using hxmls/decoder.hxml.
haxe hxmls/decoder.hxml
toml-test neko bin/decoder.nThis repo is setup for use with direnv, so if that is setup properly then instead you can just run the following...
run-testsIf you want to test the parsing of a particular toml file you can use hxmls/test.hxml
haxe hxmls/test.hxml
neko bin/test.n path/to/file.tomlOr if direnv is setup
test-file path/to/file.toml