Skip to content

Porter-Carl-IV/CS481-Compiler

Repository files navigation

PACKAGES

parser:   Java classes generated by ANTLR
ast: 	  AST classes
util: Contains Pair utility class
napExamples: Syntactically correct nap programs
napCounterExamples: Incorrectly typed examples
compiler:
- PrettyPrinter: a printer
- Main: main method that takes a single file name as an argument, parses it then converts to abstract syntax tree and prints it into the console
- BuilAST: Converts from parse tree to abstract syntax tree
- TypeChecker: Visits AST to check types
- SymbolTableBuilder: visits AST to build symbol tables

Run build.sh script, then run testCorrect.sh to test correct programs, and testErrs.sh to test incorrect programs

About

Type-Checker stage of cs481 compiler project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published