mirror of https://github.com/kdl-org/kdl-rs.git
* Add line and column numbers to KdlError These numbers are calculated using our `newline` rule, as I'm not aware of any standard for how to calculate line numbers in error messages. The error retains the original `offset` field as well, but it's now expressed in characters rather than bytes. * Clean up error handling in parse_document() We don't need to worry about `Incomplete` errors, the `complete` family of parsers (which we're using) doesn't ever produce those. We can use the `.finish()` function to unwrap the error instead, so we don't have to worry about the underlying error types. |
||
|---|---|---|
| .github | ||
| examples | ||
| src | ||
| .gitignore | ||
| CODE_OF_CONDUCT.md | ||
| Cargo.toml | ||
| LICENSE.md | ||
| README.md | ||
README.md
kdl - Kat's Document Language
kdl is a document language, mostly based on SDLang, with xml-like semantics that looks like you're invoking a bunch of CLI commands!
It's meant to be used both as a serialization format and a configuration language, and is relatively light on syntax compared to XML.
This repository is the official/reference implementation in Rust, and corresponds to the kdl crate
Design and Discussion
kdl is still extremely new, and discussion about the format should happen over on the spec repo's discussions page. Feel free to jump in and give us your 2 cents!
License
The code in this repository is covered by the Parity License, a strong copyleft license. That means that you can only use this project if you're working on an open source-licensed product (MIT/Apache projects are ok!)