| |
|
| java.lang.Object org.antlr.runtime.BaseRecognizer org.antlr.runtime.Lexer org.antlr.codegen.ActionTranslatorLexer
ActionTranslatorLexer | public class ActionTranslatorLexer extends Lexer (Code) | | |
Method Summary | |
public boolean | alreadyParsedRule(IntStream input, int ruleIndex) | public void | checkElementRefUniqueness(String ref, boolean isToken) | public Token | emit(int tokenType, int line, int charPosition, int channel, int start, int stop) | public Grammar.LabelElementPair | getElementLabel(String id) | public String | getGrammarFileName() | public Attribute | getRuleLabelAttribute(String ruleName, String attrName) For $rulelabel.name, return the Attribute found for name. | public boolean | isRuleRefInAlt(String id) | public boolean | isTokenRefInAlt(String id) | public void | mACTION() | public void | mARG() | public void | mATTR_VALUE_EXPR() | public void | mDYNAMIC_ABSOLUTE_INDEXED_SCOPE_ATTR() | public void | mDYNAMIC_NEGATIVE_INDEXED_SCOPE_ATTR() | public void | mDYNAMIC_SCOPE_ATTR() | public void | mENCLOSING_RULE_SCOPE_ATTR() | public void | mERROR_SCOPED_XY() | public void | mERROR_X() | public void | mERROR_XY() | public void | mESC() | public void | mID() | public void | mINDIRECT_TEMPLATE_INSTANCE() | public void | mINT() | public void | mISOLATED_DYNAMIC_SCOPE() | public void | mISOLATED_LEXER_RULE_REF() | public void | mISOLATED_TOKEN_REF() | public void | mLABEL_REF() | public void | mLOCAL_ATTR() | public void | mRULE_SCOPE_ATTR() | public void | mSCOPE_INDEX_EXPR() | public void | mSET_ATTRIBUTE() | public void | mSET_DYNAMIC_SCOPE_ATTR() | public void | mSET_ENCLOSING_RULE_SCOPE_ATTR() | public void | mSET_EXPR_ATTRIBUTE() | public void | mSET_LOCAL_ATTR() | public void | mSET_RULE_SCOPE_ATTR() | public void | mSET_TOKEN_SCOPE_ATTR() | public void | mTEMPLATE_EXPR() | public void | mTEMPLATE_INSTANCE() | public void | mTEXT() | public void | mTOKEN_SCOPE_ATTR() | public void | mTokens() | public void | mUNKNOWN_SYNTAX() | public void | mWS() | public void | memoize(IntStream input, int ruleIndex, int ruleStartIndex) | public Token | nextToken() | AttributeScope | resolveDynamicScope(String scopeName) | public boolean | synpred1() | public boolean | synpred10() | public void | synpred10_fragment() | public boolean | synpred11() | public void | synpred11_fragment() | public boolean | synpred12() | public void | synpred12_fragment() | public boolean | synpred13() | public void | synpred13_fragment() | public boolean | synpred14() | public void | synpred14_fragment() | public boolean | synpred15() | public void | synpred15_fragment() | public boolean | synpred16() | public void | synpred16_fragment() | public boolean | synpred17() | public void | synpred17_fragment() | public boolean | synpred18() | public void | synpred18_fragment() | public boolean | synpred19() | public void | synpred19_fragment() | public void | synpred1_fragment() | public boolean | synpred2() | public boolean | synpred20() | public void | synpred20_fragment() | public boolean | synpred21() | public void | synpred21_fragment() | public boolean | synpred22() | public void | synpred22_fragment() | public boolean | synpred24() | public void | synpred24_fragment() | public boolean | synpred25() | public void | synpred25_fragment() | public boolean | synpred26() | public void | synpred26_fragment() | public void | synpred2_fragment() | public boolean | synpred3() | public void | synpred3_fragment() | public boolean | synpred4() | public void | synpred4_fragment() | public boolean | synpred5() | public void | synpred5_fragment() | public boolean | synpred6() | public void | synpred6_fragment() | public boolean | synpred7() | public void | synpred7_fragment() | public boolean | synpred8() | public void | synpred8_fragment() | public boolean | synpred9() | public void | synpred9_fragment() | protected StringTemplate | template(String name) | public String | translate() | public List | translateAction(String action) | public List | translateToChunks() Return a list of strings and StringTemplate objects that
represent the translated action. |
ACTION | final public static int ACTION(Code) | | |
ARG | final public static int ARG(Code) | | |
ATTR_VALUE_EXPR | final public static int ATTR_VALUE_EXPR(Code) | | |
DYNAMIC_ABSOLUTE_INDEXED_SCOPE_ATTR | final public static int DYNAMIC_ABSOLUTE_INDEXED_SCOPE_ATTR(Code) | | |
DYNAMIC_NEGATIVE_INDEXED_SCOPE_ATTR | final public static int DYNAMIC_NEGATIVE_INDEXED_SCOPE_ATTR(Code) | | |
DYNAMIC_SCOPE_ATTR | final public static int DYNAMIC_SCOPE_ATTR(Code) | | |
ENCLOSING_RULE_SCOPE_ATTR | final public static int ENCLOSING_RULE_SCOPE_ATTR(Code) | | |
EOF | final public static int EOF(Code) | | |
ERROR_SCOPED_XY | final public static int ERROR_SCOPED_XY(Code) | | |
ERROR_X | final public static int ERROR_X(Code) | | |
ERROR_XY | final public static int ERROR_XY(Code) | | |
ESC | final public static int ESC(Code) | | |
ID | final public static int ID(Code) | | |
INDIRECT_TEMPLATE_INSTANCE | final public static int INDIRECT_TEMPLATE_INSTANCE(Code) | | |
INT | final public static int INT(Code) | | |
ISOLATED_DYNAMIC_SCOPE | final public static int ISOLATED_DYNAMIC_SCOPE(Code) | | |
ISOLATED_LEXER_RULE_REF | final public static int ISOLATED_LEXER_RULE_REF(Code) | | |
ISOLATED_TOKEN_REF | final public static int ISOLATED_TOKEN_REF(Code) | | |
LABEL_REF | final public static int LABEL_REF(Code) | | |
LOCAL_ATTR | final public static int LOCAL_ATTR(Code) | | |
RULE_SCOPE_ATTR | final public static int RULE_SCOPE_ATTR(Code) | | |
SCOPE_INDEX_EXPR | final public static int SCOPE_INDEX_EXPR(Code) | | |
SET_ATTRIBUTE | final public static int SET_ATTRIBUTE(Code) | | |
SET_DYNAMIC_SCOPE_ATTR | final public static int SET_DYNAMIC_SCOPE_ATTR(Code) | | |
SET_ENCLOSING_RULE_SCOPE_ATTR | final public static int SET_ENCLOSING_RULE_SCOPE_ATTR(Code) | | |
SET_EXPR_ATTRIBUTE | final public static int SET_EXPR_ATTRIBUTE(Code) | | |
SET_LOCAL_ATTR | final public static int SET_LOCAL_ATTR(Code) | | |
SET_RULE_SCOPE_ATTR | final public static int SET_RULE_SCOPE_ATTR(Code) | | |
SET_TOKEN_SCOPE_ATTR | final public static int SET_TOKEN_SCOPE_ATTR(Code) | | |
TEMPLATE_EXPR | final public static int TEMPLATE_EXPR(Code) | | |
TEMPLATE_INSTANCE | final public static int TEMPLATE_INSTANCE(Code) | | |
TEXT | final public static int TEXT(Code) | | |
TOKEN_SCOPE_ATTR | final public static int TOKEN_SCOPE_ATTR(Code) | | |
Tokens | final public static int Tokens(Code) | | |
UNKNOWN_SYNTAX | final public static int UNKNOWN_SYNTAX(Code) | | |
WS | final public static int WS(Code) | | |
actionToken | antlr.Token actionToken(Code) | | |
outerAltNum | int outerAltNum(Code) | | |
ruleNestingLevel | int ruleNestingLevel(Code) | | |
ActionTranslatorLexer | public ActionTranslatorLexer(CodeGenerator generator, String ruleName, antlr.Token actionToken, int outerAltNum)(Code) | | |
ActionTranslatorLexer | public ActionTranslatorLexer()(Code) | | |
alreadyParsedRule | public boolean alreadyParsedRule(IntStream input, int ruleIndex)(Code) | | |
checkElementRefUniqueness | public void checkElementRefUniqueness(String ref, boolean isToken)(Code) | | |
emit | public Token emit(int tokenType, int line, int charPosition, int channel, int start, int stop)(Code) | | |
getRuleLabelAttribute | public Attribute getRuleLabelAttribute(String ruleName, String attrName)(Code) | | For $rulelabel.name, return the Attribute found for name. It
will be a predefined property or a return value.
|
isRuleRefInAlt | public boolean isRuleRefInAlt(String id)(Code) | | |
isTokenRefInAlt | public boolean isTokenRefInAlt(String id)(Code) | | |
memoize | public void memoize(IntStream input, int ruleIndex, int ruleStartIndex)(Code) | | |
synpred1 | public boolean synpred1()(Code) | | |
synpred10 | public boolean synpred10()(Code) | | |
synpred11 | public boolean synpred11()(Code) | | |
synpred12 | public boolean synpred12()(Code) | | |
synpred13 | public boolean synpred13()(Code) | | |
synpred14 | public boolean synpred14()(Code) | | |
synpred15 | public boolean synpred15()(Code) | | |
synpred16 | public boolean synpred16()(Code) | | |
synpred17 | public boolean synpred17()(Code) | | |
synpred18 | public boolean synpred18()(Code) | | |
synpred19 | public boolean synpred19()(Code) | | |
synpred2 | public boolean synpred2()(Code) | | |
synpred20 | public boolean synpred20()(Code) | | |
synpred21 | public boolean synpred21()(Code) | | |
synpred22 | public boolean synpred22()(Code) | | |
synpred24 | public boolean synpred24()(Code) | | |
synpred25 | public boolean synpred25()(Code) | | |
synpred26 | public boolean synpred26()(Code) | | |
synpred3 | public boolean synpred3()(Code) | | |
synpred4 | public boolean synpred4()(Code) | | |
synpred5 | public boolean synpred5()(Code) | | |
synpred6 | public boolean synpred6()(Code) | | |
synpred7 | public boolean synpred7()(Code) | | |
synpred8 | public boolean synpred8()(Code) | | |
synpred9 | public boolean synpred9()(Code) | | |
template | protected StringTemplate template(String name)(Code) | | |
translateToChunks | public List translateToChunks()(Code) | | Return a list of strings and StringTemplate objects that
represent the translated action.
|
Methods inherited from org.antlr.runtime.BaseRecognizer | public boolean alreadyParsedRule(IntStream input, int ruleIndex)(Code)(Java Doc) public void beginResync()(Code)(Java Doc) protected BitSet combineFollows(boolean exact)(Code)(Java Doc) protected BitSet computeContextSensitiveRuleFOLLOW()(Code)(Java Doc) protected BitSet computeErrorRecoverySet()(Code)(Java Doc) public void consumeUntil(IntStream input, int tokenType)(Code)(Java Doc) public void consumeUntil(IntStream input, BitSet set)(Code)(Java Doc) public void displayRecognitionError(String[] tokenNames, RecognitionException e)(Code)(Java Doc) public void emitErrorMessage(String msg)(Code)(Java Doc) public void endResync()(Code)(Java Doc) public int getBacktrackingLevel()(Code)(Java Doc) public String getErrorHeader(RecognitionException e)(Code)(Java Doc) public String getErrorMessage(RecognitionException e, String[] tokenNames)(Code)(Java Doc) public String getGrammarFileName()(Code)(Java Doc) public List getRuleInvocationStack()(Code)(Java Doc) public static List getRuleInvocationStack(Throwable e, String recognizerClassName)(Code)(Java Doc) public int getRuleMemoization(int ruleIndex, int ruleStartIndex)(Code)(Java Doc) public int getRuleMemoizationCacheSize()(Code)(Java Doc) public String getTokenErrorDisplay(Token t)(Code)(Java Doc) public String[] getTokenNames()(Code)(Java Doc) public void match(IntStream input, int ttype, BitSet follow) throws RecognitionException(Code)(Java Doc) public void matchAny(IntStream input)(Code)(Java Doc) public void memoize(IntStream input, int ruleIndex, int ruleStartIndex)(Code)(Java Doc) protected void mismatch(IntStream input, int ttype, BitSet follow) throws RecognitionException(Code)(Java Doc) protected void pushFollow(BitSet fset)(Code)(Java Doc) public void recover(IntStream input, RecognitionException re)(Code)(Java Doc) protected boolean recoverFromMismatchedElement(IntStream input, RecognitionException e, BitSet follow)(Code)(Java Doc) public void recoverFromMismatchedSet(IntStream input, RecognitionException e, BitSet follow) throws RecognitionException(Code)(Java Doc) public void recoverFromMismatchedToken(IntStream input, RecognitionException e, int ttype, BitSet follow) throws RecognitionException(Code)(Java Doc) public void reportError(RecognitionException e)(Code)(Java Doc) public void reset()(Code)(Java Doc) public List toStrings(List tokens)(Code)(Java Doc) public void traceIn(String ruleName, int ruleIndex, Object inputSymbol)(Code)(Java Doc) public void traceOut(String ruleName, int ruleIndex, Object inputSymbol)(Code)(Java Doc)
|
|
|
|