Package | Description |
---|---|
org.antlr.grammar.v3 | |
org.antlr.gunit | |
org.antlr.gunit.swingui.parsers | |
org.antlr.misc | |
org.antlr.runtime | |
org.antlr.runtime.debug | |
org.antlr.runtime.tree |
Modifier and Type | Method | Description |
---|---|---|
BitSet |
IntervalSet.toRuntimeBitSet() |
Modifier and Type | Field | Description |
---|---|---|
BitSet |
MismatchedSetException.expecting |
|
BitSet[] |
RecognizerSharedState.following |
Track the set of token types that can follow any rule invocation.
|
Modifier and Type | Method | 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 | Description |
---|---|---|
void |
BaseRecognizer.consumeUntil(IntStream input,
BitSet set) |
Consume tokens until one matches the given token set
|
protected Object |
BaseRecognizer.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow) |
Conjure up a missing token during error recovery.
|
protected Object |
Parser.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow) |
|
List<? extends Token> |
BufferedTokenStream.getTokens(int start,
int stop,
BitSet types) |
Given a start and stop index, return a List of all tokens in
the token type BitSet.
|
List<? extends Token> |
LegacyCommonTokenStream.getTokens(int start,
int stop,
BitSet types) |
Given a start and stop index, return a List of all tokens in
the token type BitSet.
|
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
|
Object |
BaseRecognizer.recoverFromMismatchedSet(IntStream input,
RecognitionException e,
BitSet follow) |
Not currently used
|
protected Object |
BaseRecognizer.recoverFromMismatchedToken(IntStream input,
int ttype,
BitSet follow) |
Attempt to recover from a single missing or extra token.
|
Constructor | Description |
---|---|
MismatchedNotSetException(BitSet expecting,
IntStream input) |
|
MismatchedSetException(BitSet expecting,
IntStream input) |
Modifier and Type | Method | Description |
---|---|---|
protected Object |
DebugTreeParser.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow) |
Modifier and Type | Method | Description |
---|---|---|
protected Object |
TreeParser.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow) |
|
protected Object |
TreeParser.recoverFromMismatchedToken(IntStream input,
int ttype,
BitSet follow) |
We have DOWN/UP nodes in the stream that have no line info; override.
|
Copyright © 1992–2018 ANTLR. All rights reserved.