Package | Description |
---|---|
org.antlr.v4.runtime | |
org.antlr.v4.runtime.atn | |
org.antlr.v4.runtime.misc |
Modifier and Type | Field and Description |
---|---|
protected IntervalSet |
DefaultErrorStrategy.lastErrorStates |
Modifier and Type | Method and Description |
---|---|
protected IntervalSet |
DefaultErrorStrategy.getErrorRecoverySet(Parser recognizer) |
IntervalSet |
RecognitionException.getExpectedTokens()
Gets the set of input symbols which could potentially follow the
previously matched symbol at the time this exception was thrown.
|
IntervalSet |
Parser.getExpectedTokens()
Computes the set of input symbols which could follow the current parser
state and context, as given by
Recognizer.getState() and Parser.getContext() ,
respectively. |
protected IntervalSet |
DefaultErrorStrategy.getExpectedTokens(Parser recognizer) |
IntervalSet |
Parser.getExpectedTokensWithinCurrentRule() |
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultErrorStrategy.consumeUntil(Parser recognizer,
IntervalSet set)
Consume tokens until one matches the given token set.
|
Modifier and Type | Field and Description |
---|---|
IntervalSet |
ATNState.nextTokenWithinRule
Used to cache lookahead during parsing, not used during construction
|
IntervalSet |
SetTransition.set |
Modifier and Type | Method and Description |
---|---|
IntervalSet[] |
LL1Analyzer.getDecisionLookahead(ATNState s)
Calculates the SLL(1) expected lookahead set for each outgoing transition
of an
ATNState . |
IntervalSet |
ATN.getExpectedTokens(int stateNumber,
RuleContext context)
Computes the set of input symbols which could follow ATN state number
stateNumber in the specified full context . |
IntervalSet |
Transition.label() |
IntervalSet |
SetTransition.label() |
IntervalSet |
RangeTransition.label() |
IntervalSet |
AtomTransition.label() |
IntervalSet |
LL1Analyzer.LOOK(ATNState s,
ATNState stopState,
RuleContext ctx)
Compute set of tokens that can follow
s in the ATN in the
specified ctx . |
IntervalSet |
LL1Analyzer.LOOK(ATNState s,
RuleContext ctx)
Compute set of tokens that can follow
s in the ATN in the
specified ctx . |
IntervalSet |
ATN.nextTokens(ATNState s)
Compute the set of valid tokens that can occur starting in
s and
staying in same rule. |
IntervalSet |
ATN.nextTokens(ATNState s,
RuleContext ctx)
Compute the set of valid tokens that can occur starting in state
s . |
Modifier and Type | Method and Description |
---|---|
protected void |
LL1Analyzer._LOOK(ATNState s,
ATNState stopState,
PredictionContext ctx,
IntervalSet look,
Set<ATNConfig> lookBusy,
BitSet calledRuleStack,
boolean seeThruPreds,
boolean addEOF)
Compute set of tokens that can follow
s in the ATN in the
specified ctx . |
Modifier and Type | Method and Description |
---|---|
static Transition |
ATNSimulator.edgeFactory(ATN atn,
int type,
int src,
int trg,
int arg1,
int arg2,
int arg3,
List<IntervalSet> sets) |
Constructor and Description |
---|
NotSetTransition(ATNState target,
IntervalSet set) |
SetTransition(ATNState target,
IntervalSet set) |
Modifier and Type | Field and Description |
---|---|
static IntervalSet |
IntervalSet.COMPLETE_CHAR_SET |
static IntervalSet |
IntervalSet.EMPTY_SET |
Modifier and Type | Method and Description |
---|---|
IntervalSet |
IntervalSet.addAll(IntSet set) |
IntervalSet |
IntervalSet.and(IntSet other)
Return a new set with the intersection of this set with other.
|
IntervalSet |
IntervalSet.complement(int minElement,
int maxElement) |
IntervalSet |
IntervalSet.complement(IntSet vocabulary)
Given the set of possible values (rather than, say UNICODE or MAXINT),
return a new set containing all elements in vocabulary, but not in
this.
|
static IntervalSet |
IntervalSet.of(int a)
Create a set with a single element, el.
|
static IntervalSet |
IntervalSet.of(int a,
int b)
Create a set with all ints within range [a..b] (inclusive)
|
static IntervalSet |
IntervalSet.or(IntervalSet[] sets)
combine all sets in the array returned the or'd value
|
IntervalSet |
IntervalSet.or(IntSet a) |
IntervalSet |
IntervalSet.subtract(IntSet other)
Compute this-other via this&~other.
|
Modifier and Type | Method and Description |
---|---|
static IntervalSet |
IntervalSet.or(IntervalSet[] sets)
combine all sets in the array returned the or'd value
|
Constructor and Description |
---|
IntervalSet(IntervalSet set) |
Copyright © 1992-2013 ANTLR. All Rights Reserved.