3 comments

  • userbinator 49 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 8 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 39 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 27 minutes ago
    Congratulations. We need more of these tools. I'll give it a try.
    • renjipanicker 1 minute ago
      Thanks, I really appreciate that. The README's Quick Start should get you to a working parser in a couple minutes, and I'm around if you need any assistance.