asciigoat's INI parser
https://asciigoat.org/ini
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alejandro Mery
cf100578c0
|
1 year ago | |
---|---|---|
parser | 1 year ago | |
tools | 1 year ago | |
.editorconfig | 1 year ago | |
.gitignore | 1 year ago | |
LICENCE.txt | 1 year ago | |
Makefile | 1 year ago | |
README.md | 1 year ago | |
docs.go | 1 year ago | |
go.mod | 1 year ago | |
go.sum | 1 year ago |
README.md
asciigoat's INI parser
asciigoat.org/ini
is a simple Go library that very loosly parses
INI
-style documents allowing the implementation
of stricter parsers of similar form.
asciigoat is MIT licensed.
Parser
parser.Parser
uses
asciigoat
's lexer to process an INI
-style document
emiting tokens and errors via callbacks.
Other Implementations
Other implementations exist, and they are mature and feature-rich, but they are highly opinionated about what's a valid file. Built around maps they don't allow repeating names and constraint what characters can be used.
These are great when you can adapt, or already agree, to their conditions but that's not always the case when you are parsing configuration files from other applications and that's what asciigoat.org/ini attempts to solve.
See also
- asciigoat.org/core
- oss.jpi.io
- INI file (wikipedia)
- TOML