Hacker News new | past | comments | ask | show | jobs | submit login

Alternatively use lemon (like bison but much easier to hack on) and re2c (or equivalent). LALR parsing turns out to be magic - in exchange for an unambiguous grammar you get linear time parsing to a tree.

Very easy to use. Build a parse tree from it, deal with the ambiguous nonsense of your language in a translation to AST.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: