[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8900]
This commit is contained in:
parrt 2011-07-22 18:18:43 -08:00
parent 3b52eb4e6a
commit ba9f5d54e7
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public class <parser.name> extends Parser {
<if(actionFuncs)>
public void _action(RuleContext _localctx, int ruleIndex, int predIndex) {
switch ( predIndex ) {
switch ( ruleIndex ) {
<parser.actionFuncs:{f|
case <f.ruleIndex> : <f.name>_action((<f.ctxType>)_localctx, predIndex);}; separator="\n">
}
@ -69,7 +69,7 @@ case <f.ruleIndex> : <f.name>_action((<f.ctxType>)_localctx, predIndex);}; separ
<endif>
<if(sempredFuncs)>
public boolean _sempred(RuleContext _localctx, int ruleIndex, int predIndex) {
switch ( predIndex ) {
switch ( ruleIndex ) {
<parser.sempredFuncs:{f|
case <f.ruleIndex> : return <f.name>_sempred((<f.ctxType>)_localctx, predIndex);}; separator="\n">
}