public final void mTEMPLATE_EXPR() throws RecognitionException { try { int _type = TEMPLATE_EXPR; int _channel = DEFAULT_TOKEN_CHANNEL; CommonToken a=null; // org/antlr/grammar/v3/ActionTranslator.g:739:2: ( '%' a= ACTION ) // org/antlr/grammar/v3/ActionTranslator.g:739:4: '%' a= ACTION { match('%'); if (state.failed) return ; int aStart916 = getCharIndex(); mACTION(); if (state.failed) return ; a = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, aStart916, getCharIndex()-1); if ( state.backtracking==1 ) { StringTemplate st = template("actionStringConstructor"); String action = (a!=null?a.getText():null); action = action.substring(1,action.length()-1); // stuff inside {...} st.setAttribute("stringExpr", translateAction(action)); } } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "TEMPLATE_EXPR"
String action = (a!=null?a.getText():null); action = action.substring(1,action.length()-1); // stuff inside {...} st.add("stringExpr", translateAction(action));
String action = (a!=null?a.getText():null); action = action.substring(1,action.length()-1); // stuff inside {...} st.add("stringExpr", translateAction(action));
String action = (a!=null?a.getText():null); action = action.substring(1,action.length()-1); // stuff inside {...} st.setAttribute("st", translateAction(action)); st.setAttribute("attrName", (ID7!=null?ID7.getText():null)); st.setAttribute("expr", translateAction((expr!=null?expr.getText():null)));
String action = (a!=null?a.getText():null); action = action.substring(1,action.length()-1); // stuff inside {...} st.add("st", translateAction(action)); st.add("attrName", (ID7!=null?ID7.getText():null)); st.add("expr", translateAction((expr!=null?expr.getText():null)));
st.setAttribute("scope", enclosingRule.name); st.setAttribute("attr", (ID4!=null?ID4.getText():null)); st.setAttribute("expr", translateAction((expr!=null?expr.getText():null))); } else { ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR, st = template("parameterSetAttributeRef"); st.setAttribute("attr", scope.getAttribute((ID4!=null?ID4.getText():null))); st.setAttribute("expr", translateAction((expr!=null?expr.getText():null))); st.setAttribute("ruleDescriptor", enclosingRule); st.setAttribute("attr", scope.getAttribute((ID4!=null?ID4.getText():null))); st.setAttribute("expr", translateAction((expr!=null?expr.getText():null)));
String action = (a!=null?a.getText():null); action = action.substring(1,action.length()-1); // stuff inside {...} st.add("st", translateAction(action)); st.add("attrName", (ID7!=null?ID7.getText():null)); st.add("expr", translateAction((expr!=null?expr.getText():null)));
st.add("scope", enclosingRule.name); st.add("attr", (ID4!=null?ID4.getText():null)); st.add("expr", translateAction((expr!=null?expr.getText():null))); } else { ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR, st = template("parameterSetAttributeRef"); st.add("attr", scope.getAttribute((ID4!=null?ID4.getText():null))); st.add("expr", translateAction((expr!=null?expr.getText():null))); st.add("ruleDescriptor", enclosingRule); st.add("attr", scope.getAttribute((ID4!=null?ID4.getText():null))); st.add("expr", translateAction((expr!=null?expr.getText():null)));
st.setAttribute("scope", (x!=null?x.getText():null)); st.setAttribute("attr", (y!=null?y.getText():null)); st.setAttribute("expr", translateAction((expr!=null?expr.getText():null))); } else { ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR, st = template("parameterSetAttributeRef"); st.setAttribute("attr", scope.getAttribute((y!=null?y.getText():null))); st.setAttribute("expr", translateAction((expr!=null?expr.getText():null))); st.setAttribute("ruleDescriptor", enclosingRule); st.setAttribute("attr", scope.getAttribute((y!=null?y.getText():null))); st.setAttribute("expr", translateAction((expr!=null?expr.getText():null)));
st.add("scope", enclosingRule.name); st.add("attr", (ID4!=null?ID4.getText():null)); st.add("expr", translateAction((expr!=null?expr.getText():null))); } else { ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR, st = template("parameterSetAttributeRef"); st.add("attr", scope.getAttribute((ID4!=null?ID4.getText():null))); st.add("expr", translateAction((expr!=null?expr.getText():null))); st.add("ruleDescriptor", enclosingRule); st.add("attr", scope.getAttribute((ID4!=null?ID4.getText():null))); st.add("expr", translateAction((expr!=null?expr.getText():null)));
st.add("scope", (x!=null?x.getText():null)); st.add("attr", (y!=null?y.getText():null)); st.add("expr", translateAction((expr!=null?expr.getText():null))); } else { ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR, st = template("parameterSetAttributeRef"); st.add("attr", scope.getAttribute((y!=null?y.getText():null))); st.add("expr", translateAction((expr!=null?expr.getText():null))); st.add("ruleDescriptor", enclosingRule); st.add("attr", scope.getAttribute((y!=null?y.getText():null))); st.add("expr", translateAction((expr!=null?expr.getText():null)));
st.add("scope", (x!=null?x.getText():null)); st.add("attr", (y!=null?y.getText():null)); st.add("expr", translateAction((expr!=null?expr.getText():null))); } else { ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR, st = template("parameterSetAttributeRef"); st.add("attr", scope.getAttribute((y!=null?y.getText():null))); st.add("expr", translateAction((expr!=null?expr.getText():null))); st.add("ruleDescriptor", enclosingRule); st.add("attr", scope.getAttribute((y!=null?y.getText():null))); st.add("expr", translateAction((expr!=null?expr.getText():null)));
st.setAttribute("st", (x!=null?x.getText():null)); st.setAttribute("attrName", (y!=null?y.getText():null)); st.setAttribute("expr", translateAction((expr!=null?expr.getText():null)));
st.setAttribute("scope", (x!=null?x.getText():null)); st.setAttribute("attr", scope.getAttribute((y!=null?y.getText():null))); st.setAttribute("expr", translateAction((expr!=null?expr.getText():null)));
st.add("st", (x!=null?x.getText():null)); st.add("attrName", (y!=null?y.getText():null)); st.add("expr", translateAction((expr!=null?expr.getText():null)));
st.add("st", (x!=null?x.getText():null)); st.add("attrName", (y!=null?y.getText():null)); st.add("expr", translateAction((expr!=null?expr.getText():null)));
st.add("scope", (x!=null?x.getText():null)); st.add("attr", scope.getAttribute((y!=null?y.getText():null))); st.add("expr", translateAction((expr!=null?expr.getText():null)));
st.add("scope", (x!=null?x.getText():null)); st.add("attr", scope.getAttribute((y!=null?y.getText():null))); st.add("expr", translateAction((expr!=null?expr.getText():null)));