Skip to content

mrhakimov/recursive-descent-parser

Repository files navigation

recursive-descent-parser

The task is to write lexical analyzer and parser for "for loop" in C-like languages.

Grammar

Grammar and FIRST- and FOLLOW-sets are explained here.

How to run?

To run parser, which generates output for visualization for WebGraphViz do:

bash run.sh

or

chmod +x run.sh
./run

To run lexical analyzer to see tokens do:

bash run_la.sh

or

chmod +x run_la.sh
./run_la

To run tests do:

bash run_tests.sh

or

chmod +x run_tests.sh
./run_tests