3 comments

  • userbinator 45 minutes ago
    It's a little surprising to see new parser generators being written, long after the vast majority of compilers have already settled on recursive descent / precedence climbing (including https://news.ycombinator.com/item?id=49913192 , which is currently nearby on the front page.)
    • traes 4 minutes ago
      I recall reading in the past that the primary reason parser generators aren't used for production compilers is the difficulty of making them produce useful error messages on malformed code. (Of course, the need for fine tuned optimizations also plays a role). Is this still true, or have parser generators caught up in this regard?
    • renjipanicker 34 minutes ago
      [dead]
  • kazinator 1 hour ago
    Yacc has mid-rule actions which can be used to propagate information from left siblings to right siblings, as well as to children (embedded nonterminal symbols).

    Of course, it's not the same as having the parse tree all done from a previous pass and just walking it to do semantics.

  • fithisux 23 minutes ago
    Congratulations. We need more of these tools. I'll give it a try.