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
FieldsFields inherited from class org.antlr.runtime.Lexer
inputFields 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
ConstructorsConstructorDescriptionAbstractSleighLexer(org.antlr.runtime.CharStream input, org.antlr.runtime.RecognizerSharedState state) -
Method Summary
Modifier and TypeMethodDescriptionorg.antlr.runtime.Tokenemit()voidemitErrorMessage(String msg) getErrorHeader(org.antlr.runtime.RecognitionException e) getErrorMessage(org.antlr.runtime.RecognitionException e, String[] tokenNames) getTokenErrorDisplay(org.antlr.runtime.Token t) protected voidpreprocess(String text) voidsetEnv(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, traceOutMethods 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:
emitin classorg.antlr.runtime.Lexer
-
emitErrorMessage
- Overrides:
emitErrorMessagein classorg.antlr.runtime.BaseRecognizer
-
getErrorHeader
- Overrides:
getErrorHeaderin classorg.antlr.runtime.BaseRecognizer
-
getErrorMessage
- Overrides:
getErrorMessagein classorg.antlr.runtime.Lexer
-
getTokenErrorDisplay
- Overrides:
getTokenErrorDisplayin classorg.antlr.runtime.BaseRecognizer
-
preprocess
-
setEnv
-