by kabdib · 6y ago · 0 comments
I'm happy giving up some performance for a better chance at finding problems. Who cares if your compiler clocks at a bazillion lines a second if all it can say is "line 101: syntax error" or mumble something indistinct about a reduce-reduce conflict.
I'm not writing commercial compilers, just little language processors. And my users need all the help they can get.
2 reasons:
- it doesn’t warn you about ambiguous grammar, so you don’t know when you screw up
- it requires a lot of boilerplate for operator precedence (one function for each level), in a LR parser generator that’s trivial so I can spend time on more important things