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() |
Lexer[] |
getDelegates() |
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, getEOFToken, getErrorMessage, getLine, getSourceName, getText, match, match, matchAny, matchRange, recover, reportError, reset, setCharStream, setText, skip, traceIn, traceOutbeginResync, 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, traceOutpublic static final int EOF
public static final int ID
public static final int X
public static final int X_Y
public static final int Y
public ActionAnalysis(Grammar grammar, String ruleName, GrammarAST actionAST)
public ActionAnalysis()
public ActionAnalysis(CharStream input)
public ActionAnalysis(CharStream input, RecognizerSharedState state)
public void analyze()
public Lexer[] getDelegates()
public String getGrammarFileName()
BaseRecognizergetGrammarFileName in class BaseRecognizerpublic Token nextToken()
LexernextToken in interface TokenSourcenextToken in class Lexerpublic void memoize(IntStream input, int ruleIndex, int ruleStartIndex)
BaseRecognizermemoize in class BaseRecognizerpublic boolean alreadyParsedRule(IntStream input, int ruleIndex)
BaseRecognizeralreadyParsedRule in class BaseRecognizerpublic final void mX_Y()
throws RecognitionException
RecognitionExceptionpublic final void mX()
throws RecognitionException
RecognitionExceptionpublic final void mY()
throws RecognitionException
RecognitionExceptionpublic final void mID()
throws RecognitionException
RecognitionExceptionpublic void mTokens()
throws RecognitionException
LexermTokens in class LexerRecognitionExceptionpublic final void synpred1_ActionAnalysis_fragment()
throws RecognitionException
RecognitionExceptionpublic final void synpred2_ActionAnalysis_fragment()
throws RecognitionException
RecognitionExceptionpublic final boolean synpred2_ActionAnalysis()
public final boolean synpred1_ActionAnalysis()
Copyright © 1992–2014 ANTLR. All rights reserved.