Skip to content

awarrier99/Tiger-IR_Optimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiger-IR Helper Code & Interpreter

Build

  • Linux/macOS Prereq: JDK 14
mkdir build
find src -name "*.java" > sources.txt
javac -d build @sources.txt
  • Windows CMD
mkdir build
dir /A-D /B /S src\*.java > sources.txt
javac.exe -d build @sources.txt

Run the Demo

java -cp ./build Demo example/example.ir out.ir

Run the Interpreter

java -cp ./build IRInterpreter example/example.ir

The program will read input from the console and print output to the console.

If you have the input stored in a file, use this command to feed it to the program:

java -cp ./build IRInterpreter example/example.ir < example/example.in

And you can redirect the output to a file with this command:

java -cp ./build IRInterpreter example/example.ir < example/example.in > example.out

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages