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 TypeMethodDescriptionboolean
int
hashCode()
boolean
isNil()
boolean
member
(int a) or
(LookaheadSet other) void
orInPlace
(LookaheadSet other) void
remove
(int a) subtract
(LookaheadSet other) toString()
-
Field Details
-
tokenTypeSet
-
-
Constructor Details
-
LookaheadSet
public LookaheadSet() -
LookaheadSet
-
LookaheadSet
public LookaheadSet(int atom) -
LookaheadSet
-
-
Method Details