new-pkl
Fastest pkl-parsing crate out there!
Features
- Parse Pkl string into a structured representation (hashmap) in rust
- Parse Pkl string into an AST
- Support for strings, integers (decimal, octal, hex, binary), floats, boolean and multiline strings
- Support for nested objects, amends declaration, amends expression and chained amends declaration
- Support for classical identifiers, $identifiers, _identifiers and illegal identifiers
- Support for class instance
Installation
When in your rust project, simply run: cargo add new-pkl
Usage
Here's an example of how to parse a PKL string and retrieve values from the context:
use ;
LICENSE
This project is licensed under the MIT License. See the LICENSE file for details.