The following features are supported:
Expr
class represents an expression in the IR. Expressions are evaluated and produce a value that can be assigned to locals, globalMap, maps, used in if statements, and passed as parameters.
@author Ben L. Titzer
Expr
class represents an expression within the program that must be evaluated to a value. This could be an integer constant, a computable expression involving arithmetic operators, a variable, or an expression relative to the current position within the program.
@author Ben L. Titzer
Also includes factory methods to create the appropriate nodes. @author bob
Invariant: pos!=null
Invariant: type!=null
Invariant: type==EMPTY iff errors.size()>0
Invariant: mult==0 || mult==1 || mult==2
Invariant: weight>0
|
|
|
|