Naive implementation of type checking for the rust language. Builds a syntax tree and symbol table for analysis. Course project for IT-303 Automata and Compiler design course at NITK.
$ mkdir bin build
$ make
The lexer and parser will be built at the bin
directory.
The input is read from stdin
. Outputs the tokens recognized by the lexer.
$./parser < ../inp1.txt
Prints only the semantic errors$./parser -v <../inp1.txt
Verbose switch prints the parse tree also