Skip to content

brendon-boldt/the-compy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Compy

Language Information

The grammar of the language can be found here.

The version of assembly generated can be found here.

Build Instructions (Linux)

Download and install Scala.

Run git clone https://github.com/brendon-boldt/the-compy.git

To build, run make (or make clean to clean class files)

Compilation Instructions

To run, run scala compy.Main OPTIONS FILENAME

Output the concrete syntax tree with -c or --cst

Output the abstract syntax tree with -a or --ast

Output the optimized abstract syntax tree with -o or --oast

For bracketed strings, use -b or --brackets. To see a visual representation of the bracketed strings, copy and paste the text here.

Output the symbol table with -s or --st

Verbose output can be specified with -v or --verbose

Run Instructions

Opcodes generated by the compiler can be run here.

About

A compiler for Design of Compilers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published