#follow #first #nullable #command-line #command-line-tool

bin+lib nff

Command line utility that calculates nullable first follow sets. Can also be used as a library

3 releases

0.1.2 Oct 29, 2018
0.1.1 Oct 21, 2018
0.1.0 Oct 12, 2018

#3 in #nullable

26 downloads per month

GPL-3.0 license

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
~13K SLoC