Package ghidra.sleigh.grammar
Class AbstractSleighParser
- java.lang.Object
-
- org.antlr.runtime.BaseRecognizer
-
- org.antlr.runtime.Parser
-
- ghidra.sleigh.grammar.AbstractSleighParser
-
- All Implemented Interfaces:
SleighRecognizerConstants
- Direct Known Subclasses:
SleighParser
,SleighParser_DisplayParser
,SleighParser_SemanticParser
public class AbstractSleighParser extends org.antlr.runtime.Parser implements SleighRecognizerConstants
-
-
Field Summary
Fields Modifier and Type Field Description protected ParsingEnvironment
env
protected SleighLexer
lexer
-
Constructor Summary
Constructors Constructor Description AbstractSleighParser(org.antlr.runtime.TokenStream input)
AbstractSleighParser(org.antlr.runtime.TokenStream input, org.antlr.runtime.RecognizerSharedState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
bail(java.lang.String msg)
void
emitErrorMessage(java.lang.String msg)
java.lang.String
getErrorHeader(org.antlr.runtime.RecognitionException e)
java.lang.String
getErrorMessage(org.antlr.runtime.RecognitionException e, java.lang.String[] tokenNames)
java.lang.String
getTokenErrorDisplay(org.antlr.runtime.Token t)
void
setEnv(ParsingEnvironment env)
void
setLexer(SleighLexer lexer)
-
Methods inherited from class org.antlr.runtime.Parser
getCurrentInputSymbol, getMissingSymbol, getSourceName, getTokenStream, reset, setTokenStream, traceIn, traceOut
-
Methods inherited from class org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, endResync, failed, getBacktrackingLevel, getGrammarFileName, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenNames, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, reportError, setBacktrackingLevel, toStrings, traceIn, traceOut
-
-
-
-
Field Detail
-
env
protected ParsingEnvironment env
-
lexer
protected SleighLexer lexer
-
-
Method Detail
-
bail
protected void bail(java.lang.String msg)
-
emitErrorMessage
public void emitErrorMessage(java.lang.String msg)
- Overrides:
emitErrorMessage
in classorg.antlr.runtime.BaseRecognizer
-
getErrorHeader
public java.lang.String getErrorHeader(org.antlr.runtime.RecognitionException e)
- Overrides:
getErrorHeader
in classorg.antlr.runtime.BaseRecognizer
-
getErrorMessage
public java.lang.String getErrorMessage(org.antlr.runtime.RecognitionException e, java.lang.String[] tokenNames)
- Overrides:
getErrorMessage
in classorg.antlr.runtime.BaseRecognizer
-
getTokenErrorDisplay
public java.lang.String getTokenErrorDisplay(org.antlr.runtime.Token t)
- Overrides:
getTokenErrorDisplay
in classorg.antlr.runtime.BaseRecognizer
-
setEnv
public void setEnv(ParsingEnvironment env)
-
setLexer
public void setLexer(SleighLexer lexer)
-
-