set_parser

Crates.ioset_parser
lib.rsset_parser
version0.1.0
created_at2025-11-12 21:32:56.641721+00
updated_at2025-11-12 21:32:56.641721+00
descriptionA 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.
homepagehttps://github.com/katerynabratiuk/SetParser
repositoryhttps://github.com/katerynabratiuk/SetParser
max_upload_size
id1929999
size32,161
Kateryna Bratiuk (katerynabratiuk)

documentation

https://docs.rs/set_parser

README

set_parser

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.

Quick usage

From the crate root:

cargo run --example <example-name>

(There are unit tests under tests/ demonstrating the grammar and parser.)

Commit count: 0

cargo fmt