public void enterDecision(int d, boolean couldBacktrack) { backtracking++; }
public void exitDecision(int i) { backtracking--; }
public void enterRule(String filename, String ruleName) {
if ( backtracking>0 ) return;
ParseTree parentRuleNode = (ParseTree)callStack.peek();
ParseTree ruleNode = create(ruleName);
parentRuleNode.addChild(ruleNode);
callStack.push(ruleNode);
}