public class XEvaluatorVisitor extends EvaluatorVisitor
Function nodes are evaluated by first evaluating all the children nodes, then applying the function class associated with the node. Variable and constant nodes are evaluated by pushing their value onto the stack.
Some changes implemented by rjm. Nov 03. Added hook to SpecialEvaluationI. Clears stack before evaluation. Simplifies error handling by making visit methods throw ParseException. Changed visit(ASTVarNode node) so messages not calculated every time.
debug, stack, symTab, trapNullValues
Constructor and Description |
---|
XEvaluatorVisitor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
visit(ASTVarNode node,
java.lang.Object data)
Visit a variable node.
|
eval, eval, getValue, isTrapNullValues, setTrapNullValues, visit, visit, visit, visit
public java.lang.Object visit(ASTVarNode node, java.lang.Object data) throws ParseException
visit
in interface ParserVisitor
visit
in class EvaluatorVisitor
ParseException
http://www.singularsys.com/jep Copyright © 2007 Singular Systems