|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoscript.translator.ShorthandFunctionPrimaryPrefixTranslator
A translator to implement one part of the language in terms of another. This simplifies the compiler/interpreter implementation. This translates from:
"'{" Program "}"to
"function" "(" "args..." ")" "{" Program "}"
Constructor Summary | |
ShorthandFunctionPrimaryPrefixTranslator()
|
Method Summary | |
static Node |
translate(ShorthandFunctionPrimaryPrefix n)
Convert a ShorthandFunctionPrimaryPrefix production in the syntaxtree
into an equivalent production. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShorthandFunctionPrimaryPrefixTranslator()
Method Detail |
public static Node translate(ShorthandFunctionPrimaryPrefix n)
ShorthandFunctionPrimaryPrefix
production in the syntaxtree
into an equivalent production.
f0 -> "'{" f1 -> Program(true) f2 -> "}"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |