/** Set the lookahead DFA for a particular decision. This means * that the appropriate AST node must updated to have the new lookahead * DFA. This method could be used to properly set the DFAs without * using the createLookaheadDFAs() method. You could do this * * Grammar g = new Grammar("..."); * g.setLookahead(1, dfa1); * g.setLookahead(2, dfa2); * ... */ public void setLookaheadDFA(int decision, DFA lookaheadDFA) { Decision d = createDecision(decision); d.dfa = lookaheadDFA; GrammarAST ast = d.startState.associatedASTNode; ast.setLookaheadDFA(lookaheadDFA); }
/** Set the lookahead DFA for a particular decision. This means * that the appropriate AST node must updated to have the new lookahead * DFA. This method could be used to properly set the DFAs without * using the createLookaheadDFAs() method. You could do this * * Grammar g = new Grammar("..."); * g.setLookahead(1, dfa1); * g.setLookahead(2, dfa2); * ... */ public void setLookaheadDFA(int decision, DFA lookaheadDFA) { Decision d = createDecision(decision); d.dfa = lookaheadDFA; GrammarAST ast = d.startState.associatedASTNode; ast.setLookaheadDFA(lookaheadDFA); }
/** Set the lookahead DFA for a particular decision. This means * that the appropriate AST node must updated to have the new lookahead * DFA. This method could be used to properly set the DFAs without * using the createLookaheadDFAs() method. You could do this * * Grammar g = new Grammar("..."); * g.setLookahead(1, dfa1); * g.setLookahead(2, dfa2); * ... */ public void setLookaheadDFA(int decision, DFA lookaheadDFA) { Decision d = createDecision(decision); d.dfa = lookaheadDFA; GrammarAST ast = d.startState.associatedASTNode; ast.setLookaheadDFA(lookaheadDFA); }
/** Set the lookahead DFA for a particular decision. This means * that the appropriate AST node must updated to have the new lookahead * DFA. This method could be used to properly set the DFAs without * using the createLookaheadDFAs() method. You could do this * * Grammar g = new Grammar("..."); * g.setLookahead(1, dfa1); * g.setLookahead(2, dfa2); * ... */ public void setLookaheadDFA(int decision, DFA lookaheadDFA) { Decision d = createDecision(decision); d.dfa = lookaheadDFA; GrammarAST ast = d.startState.associatedASTNode; ast.setLookaheadDFA(lookaheadDFA); }