Package | Description |
---|---|
org.antlr.misc | |
org.antlr.runtime | |
org.antlr.runtime.debug | |
org.antlr.runtime.tree |
Modifier and Type | Method and Description |
---|---|
BitSet |
IntervalSet.toRuntimeBitSet() |
Modifier and Type | Field and Description |
---|---|
BitSet |
MismatchedSetException.expecting |
BitSet[] |
RecognizerSharedState.following
Track the set of token types that can follow any rule invocation.
|
Modifier and Type | Method and Description |
---|---|
protected BitSet |
BaseRecognizer.combineFollows(boolean exact) |
protected BitSet |
BaseRecognizer.computeContextSensitiveRuleFOLLOW()
Compute the context-sensitive FOLLOW set for current rule.
|
protected BitSet |
BaseRecognizer.computeErrorRecoverySet() |
static BitSet |
BitSet.of(int el) |
static BitSet |
BitSet.of(int a,
int b) |
static BitSet |
BitSet.of(int a,
int b,
int c) |
static BitSet |
BitSet.of(int a,
int b,
int c,
int d) |
BitSet |
BitSet.or(BitSet a)
return this | a in a new set
|
Modifier and Type | Method and Description |
---|---|
void |
BaseRecognizer.consumeUntil(IntStream input,
BitSet set)
Consume tokens until one matches the given token set
|
protected java.lang.Object |
Parser.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow) |
protected java.lang.Object |
BaseRecognizer.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow)
Conjure up a missing token during error recovery.
|
java.util.List |
CommonTokenStream.getTokens(int start,
int stop,
BitSet types)
Given a start and stop index, return a List of all tokens in
the token type BitSet.
|
java.lang.Object |
BaseRecognizer.match(IntStream input,
int ttype,
BitSet follow)
Match current input symbol against ttype.
|
boolean |
BaseRecognizer.mismatchIsMissingToken(IntStream input,
BitSet follow) |
BitSet |
BitSet.or(BitSet a)
return this | a in a new set
|
void |
BitSet.orInPlace(BitSet a) |
protected void |
BaseRecognizer.pushFollow(BitSet fset)
Push a rule's follow set using our own hardcoded stack
|
java.lang.Object |
BaseRecognizer.recoverFromMismatchedSet(IntStream input,
RecognitionException e,
BitSet follow)
Not currently used
|
protected java.lang.Object |
BaseRecognizer.recoverFromMismatchedToken(IntStream input,
int ttype,
BitSet follow)
Attempt to recover from a single missing or extra token.
|
Constructor and Description |
---|
MismatchedNotSetException(BitSet expecting,
IntStream input) |
MismatchedSetException(BitSet expecting,
IntStream input) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
DebugTreeParser.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
TreeParser.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow) |
protected java.lang.Object |
TreeParser.recoverFromMismatchedToken(IntStream input,
int ttype,
BitSet follow)
We have DOWN/UP nodes in the stream that have no line info; override.
|
Copyright © 2012. All Rights Reserved.