Package ghidra.sleigh.grammar
Class AbstractSleighLexer
java.lang.Object
org.antlr.runtime.BaseRecognizer
org.antlr.runtime.Lexer
ghidra.sleigh.grammar.AbstractSleighLexer
- All Implemented Interfaces:
SleighRecognizerConstants
,org.antlr.runtime.TokenSource
- Direct Known Subclasses:
BaseLexer
,DisplayLexer
,DisplayLexer_BaseLexer
,SemanticLexer
,SemanticLexer_BaseLexer
public abstract class AbstractSleighLexer
extends org.antlr.runtime.Lexer
implements SleighRecognizerConstants
-
Field Summary
Fields inherited from class org.antlr.runtime.Lexer
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
ConstructorDescriptionAbstractSleighLexer
(org.antlr.runtime.CharStream input, org.antlr.runtime.RecognizerSharedState state) -
Method Summary
Modifier and TypeMethodDescriptionorg.antlr.runtime.Token
emit()
void
emitErrorMessage
(String msg) getErrorHeader
(org.antlr.runtime.RecognitionException e) getErrorMessage
(org.antlr.runtime.RecognitionException e, String[] tokenNames) getTokenErrorDisplay
(org.antlr.runtime.Token t) protected void
preprocess
(String text) void
setEnv
(ParsingEnvironment env) Methods inherited from class org.antlr.runtime.Lexer
emit, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getCharStream, getEOFToken, getLine, getSourceName, getText, match, match, matchAny, matchRange, mTokens, nextToken, recover, reportError, reset, setCharStream, setText, skip, traceIn, traceOut
Methods inherited from class org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, endResync, failed, getBacktrackingLevel, getCurrentInputSymbol, getGrammarFileName, getMissingSymbol, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenNames, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, setBacktrackingLevel, toStrings, traceIn, traceOut
-
Field Details
-
env
-
-
Constructor Details
-
AbstractSleighLexer
public AbstractSleighLexer()
-
-
Method Details
-
emit
public org.antlr.runtime.Token emit()- Overrides:
emit
in classorg.antlr.runtime.Lexer
-
emitErrorMessage
- Overrides:
emitErrorMessage
in classorg.antlr.runtime.BaseRecognizer
-
getErrorHeader
- Overrides:
getErrorHeader
in classorg.antlr.runtime.BaseRecognizer
-
getErrorMessage
- Overrides:
getErrorMessage
in classorg.antlr.runtime.Lexer
-
getTokenErrorDisplay
- Overrides:
getTokenErrorDisplay
in classorg.antlr.runtime.BaseRecognizer
-
preprocess
-
setEnv
-