Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
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

About

Type-Checker stage of cs481 compiler project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages