/ToyParser

This is a toy parser for Compiler Construction class (CS 6353). It uses a grammar table and a file to parse as input. Included are samples for "sfp" parse tables and "sfp" example files.

Primary LanguageC

Toy Parser

This is a toy parser of "sfp" language for Compiler Construction class (CS 6353). Samples of sfp can be found in samples/sfp directory. This program first checks that the input file is a valid sfp file, then outputs the parse tree if it is a valid sfp file based on the given parse table.

run 'make' in directory to compile Usage: ./Parser -pt parsetable -input filename