Menu

#1 Implementing default reductions

Must_have!
open
5
2009-05-20
2009-04-14
beachcoder
No

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() );

*]

Discussion

  • beachcoder

    beachcoder - 2009-04-16

    Ok it's implemented now in v0.33 SVN commit. Only Mozilla/Rhino is supported for now.

     
  • beachcoder

    beachcoder - 2009-04-16
    • status: open --> pending
     
  • SourceForge Robot

    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).

     
  • SourceForge Robot

    • status: pending --> closed
     
  • beachcoder

    beachcoder - 2009-05-20
    • status: closed --> open
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.