|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use RecognitionException | |
---|---|
org.antlr.gunit | |
org.antlr.runtime | |
org.antlr.runtime.debug | |
org.antlr.runtime.tree | |
org.antlr.tool |
Uses of RecognitionException in org.antlr.gunit |
---|
Methods in org.antlr.gunit that throw RecognitionException | |
---|---|
static void |
Interp.main(java.lang.String[] args)
|
static GrammarInfo |
Interp.parse(CharStream input)
|
Uses of RecognitionException in org.antlr.runtime |
---|
Subclasses of RecognitionException in org.antlr.runtime | |
---|---|
class |
EarlyExitException
The recognizer did not match anything for a (..)+ loop. |
class |
FailedPredicateException
A semantic predicate failed during validation. |
class |
MismatchedNotSetException
|
class |
MismatchedRangeException
|
class |
MismatchedSetException
|
class |
MismatchedTokenException
A mismatched char or Token or tree node |
class |
MismatchedTreeNodeException
|
class |
MissingTokenException
We were expecting a token but it's not found. |
class |
NoViableAltException
|
class |
UnwantedTokenException
An extra token while parsing a TokenStream |
Methods in org.antlr.runtime with parameters of type RecognitionException | |
---|---|
void |
BaseRecognizer.displayRecognitionError(java.lang.String[] tokenNames,
RecognitionException e)
|
java.lang.String |
BaseRecognizer.getErrorHeader(RecognitionException e)
What is the error header, normally line/character position information? |
java.lang.String |
Lexer.getErrorMessage(RecognitionException e,
java.lang.String[] tokenNames)
|
java.lang.String |
BaseRecognizer.getErrorMessage(RecognitionException e,
java.lang.String[] tokenNames)
What error message should be generated for the various exception types? Not very object-oriented code, but I like having all error message generation within one method rather than spread among all of the exception classes. |
protected java.lang.Object |
BaseRecognizer.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow)
Conjure up a missing token during error recovery. |
protected java.lang.Object |
Parser.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow)
|
void |
BaseRecognizer.recover(IntStream input,
RecognitionException re)
Recover from an error found on the input stream. |
void |
Lexer.recover(RecognitionException re)
Lexers can normally match any char in it's vocabulary after matching a token, so do the easy thing and just kill a character and hope it all works out. |
java.lang.Object |
BaseRecognizer.recoverFromMismatchedSet(IntStream input,
RecognitionException e,
BitSet follow)
Not currently used |
void |
Lexer.reportError(RecognitionException e)
|
void |
BaseRecognizer.reportError(RecognitionException e)
Report a recognition problem. |
Methods in org.antlr.runtime that throw RecognitionException | |
---|---|
java.lang.Object |
BaseRecognizer.match(IntStream input,
int ttype,
BitSet follow)
Match current input symbol against ttype. |
abstract void |
Lexer.mTokens()
This is the lexer entry point that sets instance var 'token' |
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). |
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. |
Uses of RecognitionException in org.antlr.runtime.debug |
---|
Methods in org.antlr.runtime.debug with parameters of type RecognitionException | |
---|---|
java.lang.Object |
DebugTreeAdaptor.errorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e)
|
protected java.lang.Object |
DebugTreeParser.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow)
|
void |
Profiler.recognitionException(RecognitionException e)
|
void |
DebugEventSocketProxy.recognitionException(RecognitionException e)
|
void |
DebugEventRepeater.recognitionException(RecognitionException e)
|
void |
DebugEventHub.recognitionException(RecognitionException e)
|
void |
DebugEventListener.recognitionException(RecognitionException e)
A recognition exception occurred such as NoViableAltException. |
void |
BlankDebugEventListener.recognitionException(RecognitionException e)
|
void |
ParseTreeBuilder.recognitionException(RecognitionException e)
|
void |
DebugTreeParser.reportError(RecognitionException e)
|
void |
DebugParser.reportError(RecognitionException e)
|
Uses of RecognitionException in org.antlr.runtime.tree |
---|
Fields in org.antlr.runtime.tree declared as RecognitionException | |
---|---|
RecognitionException |
CommonErrorNode.trappedException
|
Methods in org.antlr.runtime.tree with parameters of type RecognitionException | |
---|---|
java.lang.Object |
BaseTreeAdaptor.errorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e)
create tree node that holds the start and stop tokens associated with an error. |
java.lang.Object |
TreeAdaptor.errorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e)
Return a tree node representing an error. |
java.lang.String |
TreeParser.getErrorHeader(RecognitionException e)
Prefix error message with the grammar name because message is always intended for the programmer because the parser built the input tree not the user. |
java.lang.String |
TreeParser.getErrorMessage(RecognitionException e,
java.lang.String[] tokenNames)
Tree parsers parse nodes they usually have a token object as payload. |
protected java.lang.Object |
TreeParser.getMissingSymbol(IntStream input,
RecognitionException e,
int expectedTokenType,
BitSet follow)
|
Methods in org.antlr.runtime.tree that throw RecognitionException | |
---|---|
void |
TreeFilter.bottomup()
|
java.lang.Object |
TreeRewriter.bottomup()
|
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. |
void |
TreeFilter.fptr.rule()
|
java.lang.Object |
TreeRewriter.fptr.rule()
|
void |
TreeFilter.topdown()
|
java.lang.Object |
TreeRewriter.topdown()
|
Constructors in org.antlr.runtime.tree with parameters of type RecognitionException | |
---|---|
CommonErrorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e)
|
Uses of RecognitionException in org.antlr.tool |
---|
Methods in org.antlr.tool with parameters of type RecognitionException | |
---|---|
void |
Interpreter.reportScanError(RecognitionException re)
|
Methods in org.antlr.tool that throw RecognitionException | |
---|---|
ParseTree |
Interpreter.parse(java.lang.String startRule)
|
void |
Interpreter.parse(java.lang.String startRule,
DebugEventListener actions,
java.util.List visitedStates)
|
ParseTree |
Interpreter.parse(java.lang.String startRule,
java.util.List visitedStates)
|
protected void |
Interpreter.parseEngine(java.lang.String startRule,
NFAState start,
NFAState stop,
IntStream input,
java.util.Stack ruleInvocationStack,
DebugEventListener actions,
java.util.List visitedStates)
Fill a list of all NFA states visited during the parse |
CommonToken |
Interpreter.scan(java.lang.String startRule)
|
void |
Interpreter.scan(java.lang.String startRule,
DebugEventListener actions,
java.util.List visitedStates)
For a given input char stream, try to match against the NFA starting at startRule. |
CommonToken |
Interpreter.scan(java.lang.String startRule,
java.util.List visitedStates)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |