Menu

#2 reduce/reduce conflicts

2.x
closed-fixed
nobody
Math (8)
5
2005-06-10
2003-01-28
No

New versions of Bison refuse to compile languages with reduce/reduce conflicts (because, well, they're not good). Wcalc currently has 2 reduce/reduce conflicts - and they need to be gone. (To be quite frank, the parser should be rewritten to resolve to symbols instead of evaluating on the fly, but let's take it one step at a time).

Discussion

  • Kyle Wheeler

    Kyle Wheeler - 2005-06-10
    • status: open --> closed
     
  • Kyle Wheeler

    Kyle Wheeler - 2005-06-10
    • status: closed --> closed-fixed
     
  • Kyle Wheeler

    Kyle Wheeler - 2005-06-10

    Logged In: YES
    user_id=17596

    AHA!

    Finally, the light comes shining through. Turns out, a major change to the bison file wasn't needed. Just careful plotting, and a little luck. The reduce/reduce conflicts have been eliminated!

    This came as part of the code review I've been doing to install arbitrary precision using the MPFR library. It's going well. This should be up into CVS sometime mid-next-week (I don't want to commit something that doesn't compile). Once that's done, I'll start doing math-testing for WCALC 2.0!!!

     

Log in to post a comment.

MongoDB Logo MongoDB