Skip to content

ramin32/interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

interpreter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages