public interface ParseTreeCodeGenerator
ASTPtRootNode
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
traceParseTreeEvaluation(ASTPtRootNode node,
ParserScope scope)
Trace the evaluation of the parse tree with the specified root
node using the specified scope to resolve the values of
variables.
|
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()
java.lang.String traceParseTreeEvaluation(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.