Package org.antlr.analysis
Class NFA
java.lang.Object
org.antlr.analysis.NFA
An NFA (collection of NFAStates) constructed from a grammar. This
NFA is one big machine for entire grammar. Decision points are recorded
by the Grammar object so we can, for example, convert to DFA or simulate
the NFA (interpret a decision).
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
protected NFAFactory
Which factory created this NFA?This NFA represents which grammar?static final int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INVALID_ALT_NUMBER
public static final int INVALID_ALT_NUMBER- See Also:
-
grammar
This NFA represents which grammar? -
factory
Which factory created this NFA? -
complete
public boolean complete
-
-
Constructor Details
-
NFA
-
-
Method Details
-
getNewNFAStateNumber
public int getNewNFAStateNumber() -
addState
-
getState
-
getFactory
-
setFactory
-