There must be a a way of providing default reduce actions as it is done in BISON - This is fundamentally required for better error recovery based on the error token (0.32 has very bad bugs!).
Some piece of code:
---------------------------
! ' |\t'
"ZZ"
"YY"
';'
;
##
slist : slist stmt ';' [* print("slist stmt"); *]
| stmt ';' [* print("stmt"); *]
| ~ ';' [* print("error"); *]
;
stmt : "ZZ" stmt
| "ZZ"
;
[*
_dbg_withtrace = true;
var err_off = new Array();
var err_la = new Array();
var str = "ZZ ZZ YY ZZ ZZ";
print( str );
print( "Errors: " + __parse( str, err_off, err_la ) );
//print( err_off[0] + "#" + err_la[0].join() );
*]
Ok it's implemented now in v0.33 SVN commit. Only Mozilla/Rhino is supported for now.
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).