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 Modifier and Type Field Description protected ParsingEnvironment
env
-
Constructor Summary
Constructors Constructor Description AbstractSleighLexer()
AbstractSleighLexer(org.antlr.runtime.CharStream input, org.antlr.runtime.RecognizerSharedState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.antlr.runtime.Token
emit()
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)
protected void
preprocess(java.lang.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 Detail
-
env
protected ParsingEnvironment env
-
-
Method Detail
-
emit
public org.antlr.runtime.Token emit()
- Overrides:
emit
in classorg.antlr.runtime.Lexer
-
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.Lexer
-
getTokenErrorDisplay
public java.lang.String getTokenErrorDisplay(org.antlr.runtime.Token t)
- Overrides:
getTokenErrorDisplay
in classorg.antlr.runtime.BaseRecognizer
-
preprocess
protected void preprocess(java.lang.String text)
-
setEnv
public void setEnv(ParsingEnvironment env)
-
-