public class ParserEx extends org.antlr.runtime.Parser implements ErrorReporter
| Constructor and Description |
|---|
ParserEx(org.antlr.runtime.TokenStream input,
org.antlr.runtime.RecognizerSharedState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignLog(LogStore log) |
protected void |
checkNotNull(org.antlr.runtime.Token t,
java.lang.Object obj) |
protected void |
checkNotNull(org.antlr.runtime.Token t,
java.lang.Object obj,
java.lang.String text) |
void |
emitErrorMessage(java.lang.String errorMessage) |
int |
getErrorCount() |
boolean |
isCorrect() |
void |
raiseError(Where where,
ISemanticError error) |
void |
raiseError(Where where,
java.lang.String what) |
void |
reportError(org.antlr.runtime.RecognitionException re) |
void |
reportError(SemanticException se) |
void |
resetErrorCount() |
protected Where |
where(org.antlr.runtime.Token node) |
getCurrentInputSymbol, getMissingSymbol, getSourceName, getTokenStream, reset, setTokenStream, traceIn, traceOutalreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, endResync, failed, getBacktrackingLevel, getErrorHeader, getErrorMessage, getGrammarFileName, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, getTokenNames, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, setBacktrackingLevel, toStrings, traceIn, traceOutpublic ParserEx(org.antlr.runtime.TokenStream input,
org.antlr.runtime.RecognizerSharedState state)
public void assignLog(LogStore log)
public final void reportError(org.antlr.runtime.RecognitionException re)
reportError in class org.antlr.runtime.BaseRecognizerpublic final void reportError(SemanticException se)
public final void emitErrorMessage(java.lang.String errorMessage)
emitErrorMessage in class org.antlr.runtime.BaseRecognizerpublic final int getErrorCount()
public final void resetErrorCount()
public final boolean isCorrect()
public void raiseError(Where where, ISemanticError error) throws SemanticException
raiseError in interface ErrorReporterSemanticExceptionpublic void raiseError(Where where, java.lang.String what) throws SemanticException
raiseError in interface ErrorReporterSemanticExceptionprotected final Where where(org.antlr.runtime.Token node)
protected final void checkNotNull(org.antlr.runtime.Token t,
java.lang.Object obj)
throws SemanticException
SemanticExceptionprotected final void checkNotNull(org.antlr.runtime.Token t,
java.lang.Object obj,
java.lang.String text)
throws SemanticException
SemanticException