lqf ๐ชถ
lqf is a lightweight configuration format featuring a clean, sectioned syntax centered around the use of the > symbol โ designed to be easy to read, easy to write, and dead simple to parse.
This Rust crate provides a parser for .lqf files using pest.rs, ready for use in config-heavy projects or DSL exploration.
โจ Features
- Simple syntax for sectioned key-value configuration
- Supports:
- Strings, numbers, booleans
- Arrays
nullvalues
- Built with pest โ robust and expressive PEG-based parser
๐งช Example
Given this .lqf file:
> database
host >> "localhost"
port >> 5432
> features
enabled >> ["search", "logging", "metrics"]
You can parse it like this in Rust:
use parse_lqf;
Output:
๐ฆ Installation
Add this to your Cargo.toml
[]
= "0.1.0"
๐ Syntax Overview
>introduces a new section>>assigns values to keys- Supported value types:
- Strings:
"text" - Numbers:
123,3.14 - Booleans
true,false - Arrays:
[1, 2, 3],["a", "b"] - Null:
null
- Strings:
๐ค Contributing
Contributions are welcome! Feel free to open issues, submit pull requests, or discuss ideas.