|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParseTreeCodeGenerator
An interface to a parse tree.
ASTPtRootNode
Red |
Red |
Method Summary | |
---|---|
java.lang.String |
escapeForTargetLanguage(java.lang.String string)
Given a string, escape special characters as necessary for the target language. |
Token |
evaluateParseTree(ASTPtRootNode node,
ParserScope scope)
Evaluate the parse tree with the specified root node using the specified scope to resolve the values of variables. |
java.lang.String |
generateFireCode()
Generate code that corresponds with the fire() method. |
Method Detail |
---|
Token evaluateParseTree(ASTPtRootNode node, ParserScope scope) throws IllegalActionException
node
- The root of the parse tree.scope
- The scope for evaluation.
IllegalActionException
- If an error occurs during
evaluation.java.lang.String escapeForTargetLanguage(java.lang.String string)
string
- The string to escape.
java.lang.String generateFireCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |