forked from jasder/antlr
tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8900]
This commit is contained in:
parent
3b52eb4e6a
commit
ba9f5d54e7
|
@ -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">
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue