Parser#notifyErrorListeners.
TODO: what to do about lexers
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the parser is currently recovering from a parse
error, otherwise falsethe parser instance recognizer)Tests whether or not |
| public void | recover(Parser
the parser instance recognizer, RecognitionException the recognition exception to recover from e)This method is called to recover from exception |
| public Token | recoverInline(Parser
the parser instance recognizer)This method is called when an unexpected symbol is encountered during an
inline match operation, such as |
| public void | reportError(Parser
the parser instance recognizer, RecognitionException the recognition exception to report e)Report any kind of |
| public void | reportMatch(Parser
the parser instance recognizer)This method is called by when the parser successfully matches an input symbol. |
| public void | |
| public void | sync(Parser
the parser instance recognizer)This method provides the error handler with an opportunity to handle
syntactic or semantic errors in the input stream before they result in a
|
| inErrorRecoveryMode | back to summary |
|---|---|
| public boolean inErrorRecoveryMode(Parser recognizer) Tests whether or not
| |
| recover | back to summary |
|---|---|
| public void recover(Parser recognizer, RecognitionException e) throws RecognitionException This method is called to recover from exception
| |
| recoverInline | back to summary |
|---|---|
| public Token recoverInline(Parser recognizer) throws RecognitionException This method is called when an unexpected symbol is encountered during an
inline match operation, such as This method handles the consumption of any tokens - the caller should
not call Note that the calling code will not report an error if this method
returns successfully. The error strategy implementation is responsible
for calling
| |
| reportError | back to summary |
|---|---|
| public void reportError(Parser recognizer, RecognitionException e) Report any kind of
| |
| reportMatch | back to summary |
|---|---|
| public void reportMatch(Parser recognizer) This method is called by when the parser successfully matches an input symbol.
| |
| reset | back to summary |
|---|---|
| public void reset(Parser recognizer) Reset the error handler state for the specified
| |
| sync | back to summary |
|---|---|
| public void sync(Parser recognizer) throws RecognitionException This method provides the error handler with an opportunity to handle
syntactic or semantic errors in the input stream before they result in a
The generated code currently contains calls to For an implementation based on Jim Idle's "magic sync" mechanism, see
| |