Skip to content
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/interpreter
.gitignore
README
build.xml
test.txt

README

Three Address Code Interpreter (Wikipedia)

Interpretes the following grammar:

 Program -> [label:] Statement Program | EOF
 Statement -> Assignment | print Expression | halt | goto label
              | BooleanExpr
 Expression -> Factor | Factor op Factor
 Factor -> id | boolean | float
 Assignment -> id = Expression
 BooleanExpr -> if Expression Statement
                 | iffalse Expression Statement
You can’t perform that action at this time.