WIP KDL 2.0 parser for Gleam
- Gleam 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| test | ||
| .gitignore | ||
| gleam.toml | ||
| manifest.toml | ||
| README.md | ||
cuddle - KDL parser for Gleam
The initial version only supports KDL v2, and is not format-preserving.
gleam add cuddle@1
import cuddle
pub fn main() -> Nil {
let assert Ok(config) = cuddle.from_string("foo {\n bar\n}\nbaz\n")
assert cuddle.contains(config, "foo")
}
Further documentation can be found at https://hexdocs.pm/cuddle.
Development
gleam run # Run the project
gleam test # Run the tests
TODO
- v1 compatibility
- format-preserving parser
- KDL Query language implementation
- KDL Schema implementation