/** * Called by the tree parser for filenameorvalue: FILENAME production Partly implemented for Calls and Routines. * * @author pcd */ @Override public void fnvFilename(JPNode node) { LOG.trace("Entering fnvFilename {}", node); Expression exp = new Expression((JPNode) node); exp.setValue(node.getText()); wipExpression = exp; }
/** * Called by the tree parser at filenameorvalue: VALUE(expression), passing in the expression node. Partly implemented * for Calls and Routines. * * @author pcd */ @Override public void fnvExpression(JPNode node) { LOG.trace("fnvExpression {}", node); wipExpression = new Expression((JPNode) node); }
/** * Called by the tree parser at the beginning of a RUN statement. * * @author pcd */ @Override public void runBegin(JPNode runNode) { LOG.trace("Entering runBegin {}", runNode); // Expect a FileName at the top of semantic stack String fileName = (String) wipExpression.getValue(); Call call = new Call(runNode); call.setRunArgument(fileName); runNode.setCall(call); wipCalls.addFirst(call); }
/** * Called by the tree parser at filenameorvalue: VALUE(expression), passing in the expression node. Partly implemented * for Calls and Routines. * * @author pcd */ @Override public void fnvExpression(JPNode node) { LOG.trace("fnvExpression {}", node); wipExpression = new Expression((JPNode) node); }
/** * Called by the tree parser at the beginning of a RUN statement. * * @author pcd */ @Override public void runBegin(JPNode runNode) { LOG.trace("Entering runBegin {}", runNode); // Expect a FileName at the top of semantic stack String fileName = (String) wipExpression.getValue(); Call call = new Call(runNode); call.setRunArgument(fileName); runNode.setCall(call); wipCalls.addFirst(call); }
/** * Called by the tree parser for filenameorvalue: FILENAME production Partly implemented for Calls and Routines. * * @author pcd */ @Override public void fnvFilename(JPNode node) { LOG.trace("Entering fnvFilename {}", node); Expression exp = new Expression((JPNode) node); exp.setValue(node.getText()); wipExpression = exp; }