|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorc.ast.oil.Expr
public abstract class Expr
Base class for the portable (.oil, for Orc Intermediate Language) abstract syntax tree.
Constructor Summary | |
---|---|
Expr()
|
Method Summary | ||
---|---|---|
abstract
|
accept(Visitor<E> visitor)
|
|
abstract void |
addIndices(java.util.Set<java.lang.Integer> indices,
int depth)
If this expression has any indices which are >= depth, add (index - depth) to the index set accumulator. |
|
abstract Node |
compile(Node output)
Compiles an oil syntax tree into an execution graph. |
|
java.util.Set<Var> |
freeVars()
Find the set of free variables in this expression. |
|
void |
typecheck(Type T,
Env<Type> ctx)
|
|
abstract Type |
typesynth(Env<Type> ctx)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Expr()
Method Detail |
---|
public abstract Node compile(Node output)
output
- This is the node to which output (publications) will be directed.
public abstract Type typesynth(Env<Type> ctx) throws TypeException
TypeException
public void typecheck(Type T, Env<Type> ctx) throws TypeException
TypeException
public final java.util.Set<Var> freeVars()
public abstract void addIndices(java.util.Set<java.lang.Integer> indices, int depth)
indices
- The index set accumulator.depth
- The minimum index for a free variable.public abstract <E> E accept(Visitor<E> visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |