|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkawa.lang.Syntax
kawa.standard.constant_fold
public class constant_fold
Implements the "constant-fold" transformer.
Field Summary | |
---|---|
static constant_fold |
constant_fold
|
Constructor Summary | |
---|---|
constant_fold()
|
Method Summary | |
---|---|
Expression |
rewrite(java.lang.Object obj,
Translator tr)
Re-write an expression that is an "application" of this Syntax object. |
Methods inherited from class kawa.lang.Syntax |
---|
getName, getSymbol, print, rewriteForm, rewriteForm, scanForDefinitions, scanForm, setName, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final constant_fold constant_fold
Constructor Detail |
---|
public constant_fold()
Method Detail |
---|
public Expression rewrite(java.lang.Object obj, Translator tr)
Syntax
rewrite
in class Syntax
obj
- the arguments to this "application" (i.e. the cdr of
the macro/builtin invokation)tr
- the Translator that provides context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |