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 inherited from class org.antlr.runtime.Parser
input
Fields inherited from class org.antlr.runtime.BaseRecognizer
DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state
-
Constructor Summary
ConstructorDescriptionAbstractSleighParser
(org.antlr.runtime.TokenStream input) AbstractSleighParser
(org.antlr.runtime.TokenStream input, org.antlr.runtime.RecognizerSharedState state) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
emitErrorMessage
(String msg) getErrorHeader
(org.antlr.runtime.RecognitionException e) getErrorMessage
(org.antlr.runtime.RecognitionException e, String[] tokenNames) 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 Details
-
env
-
lexer
-
-
Constructor Details
-
AbstractSleighParser
public AbstractSleighParser(org.antlr.runtime.TokenStream input)
-
-
Method Details
-
bail
-
emitErrorMessage
- Overrides:
emitErrorMessage
in classorg.antlr.runtime.BaseRecognizer
-
getErrorHeader
- Overrides:
getErrorHeader
in classorg.antlr.runtime.BaseRecognizer
-
getErrorMessage
- Overrides:
getErrorMessage
in classorg.antlr.runtime.BaseRecognizer
-
getTokenErrorDisplay
- Overrides:
getTokenErrorDisplay
in classorg.antlr.runtime.BaseRecognizer
-
setEnv
-
setLexer
-