We were all ref'ing backtracking==0 hardcoded instead checking the  
@synpredgate action.  Ugh. i need this for tree filter mode.

Done for Java, ActionScript, CSharp, CSharp2, JavaScript, Python C  
targets. CHECK TO SEE IF I HOSED YOUR TARGET! ;)

To Java.stg, added:

actionGate() ::= "state.backtracking==0"

whereas I only had this before:

filteringActionGate() ::= "state.backtracking==1"

and changed execAction:

/** How to execute an action (only when not backtracking) */
execAction(action) ::= <<
<if(backtracking)>
if ( <actions.(actionScope).synpredgate> ) {
   <action>
}
<else>
<action>
<endif>
 >>

Then globally replace

state.backtracking==0

with

<actions.(actionScope).synpredgate>

Change 5325 submitted.

Ter
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org:8080/mailman/listinfo/antlr-dev

Reply via email to