Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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