| Crates.io | set_parser |
| lib.rs | set_parser |
| version | 0.1.0 |
| created_at | 2025-11-12 21:32:56.641721+00 |
| updated_at | 2025-11-12 21:32:56.641721+00 |
| description | A tiny DSL and parser for set algebra (∪, ∩, \, △, '), built with pest. Parses programs with `let` and `print`, builds an AST-ready parse tree for evaluation/printing. |
| homepage | https://github.com/katerynabratiuk/SetParser |
| repository | https://github.com/katerynabratiuk/SetParser |
| max_upload_size | |
| id | 1929999 |
| size | 32,161 |
set_parser is a small crate that provides a tiny DSL and parser for set algebra (∪, ∩, \, △, '), implemented using pest.
This crate is part of the SetParser repository: https://github.com/katerynabratiuk/SetParser
See the repository README at the project root for examples and language description.
From the crate root:
cargo run --example <example-name>
(There are unit tests under tests/ demonstrating the grammar and parser.)