public class ActionAnalysis extends Lexer
Modifier and Type | Field and Description |
---|---|
static int |
EOF |
static int |
ID |
static int |
X |
static int |
X_Y |
static int |
Y |
DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state
Constructor and Description |
---|
ActionAnalysis() |
ActionAnalysis(CharStream input) |
ActionAnalysis(CharStream input,
RecognizerSharedState state) |
ActionAnalysis(Grammar grammar,
String ruleName,
GrammarAST actionAST) |
Modifier and Type | Method and Description |
---|---|
boolean |
alreadyParsedRule(IntStream input,
int ruleIndex)
Has this rule already parsed input at the current index in the
input stream? Return the stop token index or MEMO_RULE_UNKNOWN.
|
void |
analyze() |
String |
getGrammarFileName()
For debugging and other purposes, might want the grammar name.
|
void |
memoize(IntStream input,
int ruleIndex,
int ruleStartIndex)
Record whether or not this rule parsed the input at this position
successfully.
|
void |
mID() |
void |
mTokens()
This is the lexer entry point that sets instance var 'token'
|
void |
mX_Y() |
void |
mX() |
void |
mY() |
Token |
nextToken()
Return a token from this source; i.e., match a token on the char
stream.
|
void |
synpred1_ActionAnalysis_fragment() |
boolean |
synpred1_ActionAnalysis() |
void |
synpred2_ActionAnalysis_fragment() |
boolean |
synpred2_ActionAnalysis() |
emit, emit, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getCharStream, getErrorMessage, getLine, getSourceName, getText, match, match, matchAny, matchRange, recover, reportError, reset, setCharStream, setText, skip, traceIn, traceOut
beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, failed, getBacktrackingLevel, getCurrentInputSymbol, getErrorHeader, getMissingSymbol, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, getTokenNames, match, matchAny, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, setBacktrackingLevel, toStrings, traceIn, traceOut
public static final int X_Y
public static final int X
public static final int Y
public static final int ID
public static final int EOF
public ActionAnalysis(Grammar grammar, String ruleName, GrammarAST actionAST)
public ActionAnalysis()
public ActionAnalysis(CharStream input)
public ActionAnalysis(CharStream input, RecognizerSharedState state)
public void analyze()
public String getGrammarFileName()
BaseRecognizer
getGrammarFileName
in class BaseRecognizer
public Token nextToken()
Lexer
nextToken
in interface TokenSource
nextToken
in class Lexer
public void memoize(IntStream input, int ruleIndex, int ruleStartIndex)
BaseRecognizer
memoize
in class BaseRecognizer
public boolean alreadyParsedRule(IntStream input, int ruleIndex)
BaseRecognizer
alreadyParsedRule
in class BaseRecognizer
public final void mX_Y() throws RecognitionException
RecognitionException
public final void mX() throws RecognitionException
RecognitionException
public final void mY() throws RecognitionException
RecognitionException
public final void mID() throws RecognitionException
RecognitionException
public void mTokens() throws RecognitionException
Lexer
mTokens
in class Lexer
RecognitionException
public final void synpred1_ActionAnalysis_fragment() throws RecognitionException
RecognitionException
public final void synpred2_ActionAnalysis_fragment() throws RecognitionException
RecognitionException
public final boolean synpred2_ActionAnalysis()
public final boolean synpred1_ActionAnalysis()
Copyright © 2020. All rights reserved.