gnu.expr
Class LetExp

java.lang.Object
  |
  +--gnu.expr.Expression
        |
        +--gnu.expr.ScopeExp
              |
              +--gnu.expr.LetExp
Direct Known Subclasses:
FluidLetExp

public class LetExp
extends ScopeExp

Class used to implement "let" syntax (and variants) for Scheme.


Field Summary
 Expression body
           
 Expression[] inits
           
 
Fields inherited from class gnu.expr.ScopeExp
outer
 
Constructor Summary
LetExp(Expression[] i)
           
 
Method Summary
 void compile(Compilation comp, Target target)
           
 Expression getBody()
           
 Type getType()
          Return the Type used to represent the values of this Expression.
 void print(java.io.PrintWriter ps)
           
 void setBody(Expression body)
           
 
Methods inherited from class gnu.expr.ScopeExp
add, addDeclaration, addDeclaration, addDeclaration, countDecls, currentLambda, firstDecl, lookup
 
Methods inherited from class gnu.expr.Expression
compile, compileNotePosition, compileWithPosition, eval, getColumn, getFile, getLine, setFile, setLine, setLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inits

public Expression[] inits

body

public Expression body
Constructor Detail

LetExp

public LetExp(Expression[] i)
Method Detail

getBody

public Expression getBody()

setBody

public void setBody(Expression body)

compile

public void compile(Compilation comp,
                    Target target)
Overrides:
compile in class Expression

getType

public final Type getType()
Description copied from class: Expression
Return the Type used to represent the values of this Expression.
Overrides:
getType in class Expression

print

public void print(java.io.PrintWriter ps)
Overrides:
print in class Expression