nyanshak / 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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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.


Languages

Language:C 100.0%