|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorc.ast.simple.Expression
orc.ast.simple.Let
public class Let
Field Summary | |
---|---|
java.util.List<Argument> |
args
|
Constructor Summary | |
---|---|
Let()
|
|
Let(Argument arg)
|
|
Let(java.util.List<Argument> args)
|
Method Summary | |
---|---|
Expr |
convert(Env<Var> vars)
Converts abstract syntax tree into a serializable form, used to generate portable .oil (Orc Intermediate Language) files. |
Expression |
subst(Argument a,
NamedVar x)
Performs the substitution [a/x], replacing occurrences of the free variable x with the new argument a (which could be any argument, including another variable). |
java.util.Set<Var> |
vars()
Find the set of all unbound Vars (note: not FreeVars) in this expression. |
Methods inherited from class orc.ast.simple.Expression |
---|
compile, suball |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.List<Argument> args
Constructor Detail |
---|
public Let(java.util.List<Argument> args)
public Let(Argument arg)
public Let()
Method Detail |
---|
public Expression subst(Argument a, NamedVar x)
Expression
subst
in class Expression
a
- The replacing variable or valuex
- The free variable whose occurrences will be replacedpublic java.util.Set<Var> vars()
Expression
vars
in class Expression
public Expr convert(Env<Var> vars) throws UnboundVariableException
Expression
convert
in class Expression
vars
- The vars environment, used in content addressable mode to
find the appropriate deBruijn index of a var.
UnboundVariableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |