Home | History | Annotate | Download | only in analysis

Lines Matching refs:grammar

30 import org.antlr.tool.Grammar;
33 /** An NFA (collection of NFAStates) constructed from a grammar. This
34 * NFA is one big machine for entire grammar. Decision points are recorded
35 * by the Grammar object so we can, for example, convert to DFA or simulate
41 /** This NFA represents which grammar? */
42 public Grammar grammar;
49 public NFA(Grammar g) {
50 this.grammar = g;
54 return grammar.composite.getNewNFAStateNumber();
58 grammar.composite.addState(state);
62 return grammar.composite.getState(s);