|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgnu.expr.ExpVisitor<Expression,java.lang.Void>
gnu.expr.PushApply
public class PushApply
Re-arranges ApplyExp where the function is a LetExp or BeginExp. Optimizes ((let (...) body) . args) to (let (...) (body . args)). Optimizes ((begin ... last) . args) to (begin ... (last . args)). This helps optimize Scheme "named let" (and some other forms) by making it more likely the application will be to a known procedure. This optimization has to be done after Declarations are bound.
| Field Summary |
|---|
| Fields inherited from class gnu.expr.ExpVisitor |
|---|
currentLambda, exitValue, messages |
| Constructor Summary | |
|---|---|
PushApply()
|
|
| Method Summary | |
|---|---|
protected Expression |
defaultValue(Expression r,
java.lang.Void ignored)
|
static void |
pushApply(Expression exp)
|
protected Expression |
update(Expression exp,
Expression r)
|
protected Expression |
visitApplyExp(ApplyExp exp,
java.lang.Void ignored)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PushApply()
| Method Detail |
|---|
public static void pushApply(Expression exp)
protected Expression update(Expression exp,
Expression r)
update in class ExpVisitor<Expression,java.lang.Void>
protected Expression defaultValue(Expression r,
java.lang.Void ignored)
defaultValue in class ExpVisitor<Expression,java.lang.Void>
protected Expression visitApplyExp(ApplyExp exp,
java.lang.Void ignored)
visitApplyExp in class ExpVisitor<Expression,java.lang.Void>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||