Skip to content
/ comp520 Public

Go compiler (to JS) for COMP-520 Compiler Design, built in Java and SableCC

License

Notifications You must be signed in to change notification settings

gumgl/comp520

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoLite Compiler

COMP 520 Compiler Design, Winter 2015, Group 5

Team members

  • Guillaume Labranche
  • Will Bain
  • Si Mei Zhang

Building

Make commands (from src/ directory):

$ make
$ make clean
$ make check
$ make checkall

Running make creates the file golite.jar in the toplevel directory as well as a Bash utility script named golite. If make is run under Cygwin on a Windows machine, it also creates a Batch utility file named golite.bat.

Instructions

Milestone 1

Build the code as described above. From the root directory, run golite -pprint inputFile.

Milestone 2

Build the code as described above. From the root directory, run golite [-dumpsymtab] [-dumpsymtaball] [-pptype] inputFile.

Milestone 4

Build the code, then run golite inputFile.go. This will generate a JavaScript file which can be run with node inputFile.js.

About

Go compiler (to JS) for COMP-520 Compiler Design, built in Java and SableCC

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages