Skip to content

AdmZackbar/cs591-triangle-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building: Use the command 'make' to build the compiler, dissassembler, and interpreter. Use the command 'make tc' to build only the compiler. Use the command 'make td' to build only the dissassembler. Use the command 'make ti' to build only the interpreter.

Usage: Use the command ./tc 'filename'.tri to compile the given triangle program. This will create 2 files, 'temp.tam' and 'temp.xml'. To see the TAM instructions in a .tam file, run ./td temp.tam to get the instructions printed to stdout. To run the TAM program, run ./ti temp.tam to run the program and get all output printed to stdout.

Testing: You can use the examples files provided in ./Examples to test various aspects of the compiler. Expected outputs can be found in ./Output. 'make test' can be used to test all correct examples (for 9-6 -> 9-15). It dumps the output of all the runs in a file called output.txt.

Cleaning: Use the command 'make clean' to remove all executables and temporary files.

PROJECT NOTES: I was unable to finish 9.12b (Variable-length strings) and 9.13 (Recursive types) in time. All others should be in working order (9.6-9.14). One of the extra credit problems was completed (9.15).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published