public class ActionTranslator extends Lexer
DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state
Constructor and Description |
---|
ActionTranslator() |
ActionTranslator(CharStream input) |
ActionTranslator(CharStream input,
RecognizerSharedState state) |
ActionTranslator(CodeGenerator generator,
String ruleName,
GrammarAST actionAST) |
ActionTranslator(CodeGenerator generator,
String ruleName,
Token actionToken,
int outerAltNum) |
emit, emit, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getCharStream, getEOFToken, 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 EOF
public static final int ACTION
public static final int ARG
public static final int ATTR_VALUE_EXPR
public static final int DYNAMIC_ABSOLUTE_INDEXED_SCOPE_ATTR
public static final int DYNAMIC_NEGATIVE_INDEXED_SCOPE_ATTR
public static final int DYNAMIC_SCOPE_ATTR
public static final int ENCLOSING_RULE_SCOPE_ATTR
public static final int ERROR_SCOPED_XY
public static final int ERROR_X
public static final int ERROR_XY
public static final int ESC
public static final int ID
public static final int INDIRECT_TEMPLATE_INSTANCE
public static final int INT
public static final int ISOLATED_DYNAMIC_SCOPE
public static final int ISOLATED_LEXER_RULE_REF
public static final int ISOLATED_TOKEN_REF
public static final int LABEL_REF
public static final int LOCAL_ATTR
public static final int RULE_SCOPE_ATTR
public static final int SCOPE_INDEX_EXPR
public static final int SET_ATTRIBUTE
public static final int SET_DYNAMIC_SCOPE_ATTR
public static final int SET_ENCLOSING_RULE_SCOPE_ATTR
public static final int SET_EXPR_ATTRIBUTE
public static final int SET_LOCAL_ATTR
public static final int SET_RULE_SCOPE_ATTR
public static final int SET_TOKEN_SCOPE_ATTR
public static final int TEMPLATE_EXPR
public static final int TEMPLATE_INSTANCE
public static final int TEXT
public static final int TOKEN_SCOPE_ATTR
public static final int UNKNOWN_SYNTAX
public static final int WS
public ActionTranslator(CodeGenerator generator, String ruleName, GrammarAST actionAST)
public ActionTranslator(CodeGenerator generator, String ruleName, Token actionToken, int outerAltNum)
public ActionTranslator()
public ActionTranslator(CharStream input)
public ActionTranslator(CharStream input, RecognizerSharedState state)
public List<Object> translateToChunks()
public String translate()
public boolean isTokenRefInAlt(String id)
public boolean isRuleRefInAlt(String id)
public Grammar.LabelElementPair getElementLabel(String id)
public void checkElementRefUniqueness(String ref, boolean isToken)
public Attribute getRuleLabelAttribute(String ruleName, String attrName)
protected org.stringtemplate.v4.ST template(String name)
public Lexer[] getDelegates()
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 mSET_ENCLOSING_RULE_SCOPE_ATTR() throws RecognitionException
RecognitionException
public final void mENCLOSING_RULE_SCOPE_ATTR() throws RecognitionException
RecognitionException
public final void mSET_TOKEN_SCOPE_ATTR() throws RecognitionException
RecognitionException
public final void mTOKEN_SCOPE_ATTR() throws RecognitionException
RecognitionException
public final void mSET_RULE_SCOPE_ATTR() throws RecognitionException
RecognitionException
public final void mRULE_SCOPE_ATTR() throws RecognitionException
RecognitionException
public final void mLABEL_REF() throws RecognitionException
RecognitionException
public final void mISOLATED_TOKEN_REF() throws RecognitionException
RecognitionException
public final void mISOLATED_LEXER_RULE_REF() throws RecognitionException
RecognitionException
public final void mSET_LOCAL_ATTR() throws RecognitionException
RecognitionException
public final void mLOCAL_ATTR() throws RecognitionException
RecognitionException
public final void mSET_DYNAMIC_SCOPE_ATTR() throws RecognitionException
RecognitionException
public final void mDYNAMIC_SCOPE_ATTR() throws RecognitionException
RecognitionException
public final void mERROR_SCOPED_XY() throws RecognitionException
RecognitionException
public final void mDYNAMIC_NEGATIVE_INDEXED_SCOPE_ATTR() throws RecognitionException
RecognitionException
public final void mDYNAMIC_ABSOLUTE_INDEXED_SCOPE_ATTR() throws RecognitionException
RecognitionException
public final void mSCOPE_INDEX_EXPR() throws RecognitionException
RecognitionException
public final void mISOLATED_DYNAMIC_SCOPE() throws RecognitionException
RecognitionException
public final void mTEMPLATE_INSTANCE() throws RecognitionException
RecognitionException
public final void mINDIRECT_TEMPLATE_INSTANCE() throws RecognitionException
RecognitionException
public final void mARG() throws RecognitionException
RecognitionException
public final void mSET_EXPR_ATTRIBUTE() throws RecognitionException
RecognitionException
public final void mSET_ATTRIBUTE() throws RecognitionException
RecognitionException
public final void mATTR_VALUE_EXPR() throws RecognitionException
RecognitionException
public final void mTEMPLATE_EXPR() throws RecognitionException
RecognitionException
public final void mACTION() throws RecognitionException
RecognitionException
public final void mESC() throws RecognitionException
RecognitionException
public final void mERROR_XY() throws RecognitionException
RecognitionException
public final void mERROR_X() throws RecognitionException
RecognitionException
public final void mUNKNOWN_SYNTAX() throws RecognitionException
RecognitionException
public final void mTEXT() throws RecognitionException
RecognitionException
public final void mID() throws RecognitionException
RecognitionException
public final void mINT() throws RecognitionException
RecognitionException
public final void mWS() throws RecognitionException
RecognitionException
public void mTokens() throws RecognitionException
Lexer
mTokens
in class Lexer
RecognitionException
public final void synpred1_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred2_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred3_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred4_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred5_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred6_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred7_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred8_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred9_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred10_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred11_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred12_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred13_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred14_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred15_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred16_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred17_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred18_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred19_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred20_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred21_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred22_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred24_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred25_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final void synpred26_ActionTranslator_fragment() throws RecognitionException
RecognitionException
public final boolean synpred7_ActionTranslator()
public final boolean synpred26_ActionTranslator()
public final boolean synpred18_ActionTranslator()
public final boolean synpred13_ActionTranslator()
public final boolean synpred17_ActionTranslator()
public final boolean synpred6_ActionTranslator()
public final boolean synpred2_ActionTranslator()
public final boolean synpred21_ActionTranslator()
public final boolean synpred1_ActionTranslator()
public final boolean synpred25_ActionTranslator()
public final boolean synpred19_ActionTranslator()
public final boolean synpred12_ActionTranslator()
public final boolean synpred16_ActionTranslator()
public final boolean synpred11_ActionTranslator()
public final boolean synpred9_ActionTranslator()
public final boolean synpred24_ActionTranslator()
public final boolean synpred5_ActionTranslator()
public final boolean synpred20_ActionTranslator()
public final boolean synpred15_ActionTranslator()
public final boolean synpred4_ActionTranslator()
public final boolean synpred10_ActionTranslator()
public final boolean synpred14_ActionTranslator()
public final boolean synpred8_ActionTranslator()
public final boolean synpred22_ActionTranslator()
public final boolean synpred3_ActionTranslator()
Copyright © 1992–2015 ANTLR. All rights reserved.