Package | Description |
---|---|
org.antlr.analysis | |
org.antlr.grammar.v3 | |
org.antlr.runtime | |
org.antlr.runtime.debug | |
org.antlr.runtime.tree | |
org.antlr.tool |
Modifier and Type | Method and Description |
---|---|
int |
DFA.predict(IntStream input) |
Modifier and Type | Method and Description |
---|---|
boolean |
ActionTranslator.alreadyParsedRule(IntStream input,
int ruleIndex) |
boolean |
ActionAnalysis.alreadyParsedRule(IntStream input,
int ruleIndex) |
void |
ActionTranslator.memoize(IntStream input,
int ruleIndex,
int ruleStartIndex) |
void |
ActionAnalysis.memoize(IntStream input,
int ruleIndex,
int ruleStartIndex) |
int |
ANTLRv3Lexer.DFA2.specialStateTransition(int s,
IntStream _input) |
int |
ANTLRv3Lexer.DFA22.specialStateTransition(int s,
IntStream _input) |
int |
ANTLRLexer.DFA9.specialStateTransition(int s,
IntStream _input) |
Modifier and Type | Interface and Description |
---|---|
interface |
CharStream
A source of characters for an ANTLR lexer
|
interface |
TokenStream
A stream of tokens accessing tokens from a TokenSource
|
Modifier and Type | Class and Description |
---|---|
class |
ANTLRFileStream
This is a char buffer stream that is loaded from a file
all at once when you construct the object.
|
class |
ANTLRInputStream
A kind of ReaderStream that pulls from an InputStream.
|
class |
ANTLRReaderStream
Vacuum all input from a Reader and then treat it like a StringStream.
|
class |
ANTLRStringStream
A pretty quick CharStream that pulls all data from an array
directly.
|
class |
BufferedTokenStream
Buffer all input tokens but do on-demand fetching of new tokens from
lexer.
|
class |
CommonTokenStream
The most common stream of tokens where every token is buffered up
and tokens are filtered for a certain channel (the parser will only
see these tokens).
|
class |
LegacyCommonTokenStream
The most common stream of tokens is one where every token is buffered up
and tokens are prefiltered for a certain channel (the parser will only
see these tokens and cannot change the filter channel number during the
parse).
|
class |
TokenRewriteStream
Useful for dumping out the input stream after doing some
augmentation or other manipulations.
|
class |
UnbufferedTokenStream
A token stream that pulls tokens from the code source on-demand and
without tracking a complete buffer of the tokens.
|
Modifier and Type | Field and Description |
---|---|
IntStream |
RecognitionException.input
What input stream did the error occur in?
|
Modifier and Type | Method and Description |
---|---|
boolean |
BaseRecognizer.alreadyParsedRule(IntStream input,
int ruleIndex)
Has this rule already parsed input at the current index in the
input stream? Return the stop token index or MEMO_RULE_UNKNOWN.
|
void |
BaseRecognizer.consumeUntil(IntStream input,
BitSet set)
Consume tokens until one matches the given token set
|
void |
BaseRecognizer.consumeUntil(IntStream input,
int tokenType) |
protected void |
RecognitionException.extractInformationFromTreeNodeStream(IntStream input) |
protected Object |
BaseRecognizer.getCurrentInputSymbol(IntStream input)
Match needs to return the current input symbol, which gets put
into the label for the associated token ref; e.g., x=ID.
|
protected Object |
Parser.getCurrentInputSymbol(IntStream input) |
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) |
Object |
BaseRecognizer.match(IntStream input,
int ttype,
BitSet follow)
Match current input symbol against ttype.
|
void |
BaseRecognizer.matchAny(IntStream input)
Match the wildcard: in a symbol
|
void |
BaseRecognizer.memoize(IntStream input,
int ruleIndex,
int ruleStartIndex)
Record whether or not this rule parsed the input at this position
successfully.
|
boolean |
BaseRecognizer.mismatchIsMissingToken(IntStream input,
BitSet follow) |
boolean |
BaseRecognizer.mismatchIsUnwantedToken(IntStream input,
int ttype) |
protected void |
DFA.noViableAlt(int s,
IntStream input) |
int |
DFA.predict(IntStream input)
From the input stream, predict what alternative will succeed
using this DFA (representing the covering regular approximation
to the underlying CFL).
|
void |
BaseRecognizer.recover(IntStream input,
RecognitionException re)
Recover from an error found on the input stream.
|
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.
|
int |
DFA.specialStateTransition(int s,
IntStream input) |
Constructor and Description |
---|
EarlyExitException(int decisionNumber,
IntStream input) |
FailedPredicateException(IntStream input,
String ruleName,
String predicateText) |
MismatchedNotSetException(BitSet expecting,
IntStream input) |
MismatchedRangeException(int a,
int b,
IntStream input) |
MismatchedSetException(BitSet expecting,
IntStream input) |
MismatchedTokenException(int expecting,
IntStream input) |
MissingTokenException(int expecting,
IntStream input,
Object inserted) |
NoViableAltException(String grammarDecisionDescription,
int decisionNumber,
int stateNumber,
IntStream input) |
RecognitionException(IntStream input) |
UnwantedTokenException(int expecting,
IntStream input) |
Modifier and Type | Class and Description |
---|---|
class |
DebugTokenStream |
class |
DebugTreeNodeStream
Debug any tree node stream.
|
Modifier and Type | Field and Description |
---|---|
IntStream |
Tracer.input |
Modifier and Type | Method and Description |
---|---|
void |
Profiler.examineRuleMemoization(IntStream input,
int ruleIndex,
int stopIndex,
String ruleName)
Track memoization; this is not part of standard debug interface
but is triggered by profiling.
|
protected Object |
DebugTreeParser.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow) |
void |
Profiler.memoize(IntStream input,
int ruleIndex,
int ruleStartIndex,
String ruleName)
Warning: doesn't track success/failure, just unique recording event
|
Constructor and Description |
---|
Tracer(IntStream input) |
Modifier and Type | Interface and Description |
---|---|
interface |
TreeNodeStream
A stream of tree nodes, accessing nodes from a tree of some kind
|
Modifier and Type | Class and Description |
---|---|
class |
BufferedTreeNodeStream
A buffered stream of tree nodes.
|
class |
CommonTreeNodeStream |
Modifier and Type | Field and Description |
---|---|
IntStream |
CommonErrorNode.input |
Modifier and Type | Method and Description |
---|---|
protected Object |
TreeParser.getCurrentInputSymbol(IntStream input) |
protected Object |
TreeParser.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow) |
void |
TreeParser.matchAny(IntStream ignore)
Match '.' in tree parser has special meaning.
|
protected Object |
TreeParser.recoverFromMismatchedToken(IntStream input,
int ttype,
BitSet follow)
We have DOWN/UP nodes in the stream that have no line info; override.
|
Modifier and Type | Class and Description |
---|---|
static class |
Interp.FilteringTokenStream |
Modifier and Type | Field and Description |
---|---|
protected IntStream |
Interpreter.input |
Modifier and Type | Method and Description |
---|---|
protected void |
Interpreter.parseEngine(String startRule,
NFAState start,
NFAState stop,
IntStream input,
Stack<NFAState> ruleInvocationStack,
DebugEventListener actions,
List<NFAState> visitedStates)
Fill a list of all NFA states visited during the parse
|
Constructor and Description |
---|
Interpreter(Grammar grammar,
IntStream input) |
Copyright © 1992–2015 ANTLR. All rights reserved.