Package org.antlr.analysis
Class LookaheadSet
java.lang.Object
org.antlr.analysis.LookaheadSet
An LL(1) lookahead set; contains a set of token types and a "hasEOF"
condition when the set contains EOF. Since EOF is -1 everywhere and -1
cannot be stored in my BitSet, I set a condition here. There may be other
reasons in the future to abstract a LookaheadSet over a raw BitSet.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisNil()booleanmember(int a) or(LookaheadSet other) voidorInPlace(LookaheadSet other) voidremove(int a) subtract(LookaheadSet other) toString()
-
Field Details
-
tokenTypeSet
-
-
Constructor Details
-
LookaheadSet
public LookaheadSet() -
LookaheadSet
-
LookaheadSet
public LookaheadSet(int atom) -
LookaheadSet
-
-
Method Details