pklr
A pure Rust parser and evaluator for Apple's Pkl configuration language. No external binary or CLI required.
Features
- Lexer, parser, and evaluator written entirely in Rust
- Evaluates
.pklfiles toserde_json::Value - Import analysis for cache invalidation
- Supports: objects, mappings, listings, local variables, spread (
...),for/whengenerators, all primitive types
Usage
use eval_to_json;
let json = eval_to_json?;
println!;
Status
Early development. The goal is to cover the subset of Pkl used for configuration files (particularly hk configs), with broader language support added over time.
License
MIT