3 releases
0.1.2 | Oct 29, 2018 |
---|---|
0.1.1 | Oct 21, 2018 |
0.1.0 | Oct 12, 2018 |
#4 in #nullable
17KB
230 lines
nff.rs
A program that calculates the nullable, first, and follow sets from a specified grammar
Installation and Usage
Github
git clone https://github.com/rmsthebest/nullable-first-follow
cd nullable-first-follow
cargo run --release <path to grammar file>
Cargo
cargo install nff
nff <path to grammar file>
Grammar
nff only supports one format of grammar
Nonterminals are one uppercase character
Terminals are one lowercase character
Null is 0
A -> B a
A -> 0
B -> A b
lib.rs
:
You can use this crate as a library for your own library instead of a command line program
Dependencies
~1MB
~12K SLoC