reddit / emacs

parser-generator 0.1.6 now supports LL(1) and LL(k) grammars as well as LR(0) and LR(k)

chrinto · 2022-05-13 20:59
ieure · 2022-05-14 21:31
Looks cool, and I have a thing I want to use it for… but I can't make heads or tails of it and the documentation is no help at all.
wasamasa · 2022-05-15 08:03
It looks like someone's personal project to study a parser book, not code that's actually intended to be used by packages: - The README speaks of a plugin, not package. - The documentation is close to incomprehensible (which mirrors the book the algorithms have been taken from). - It uses functions marked internal to accomplish common tasks, suggesting no public API has been defined. - It doesn't offer any APIs that work on buffers/regions/strings, suggesting the author doesn't know how someone else's package would actually use it - The code style is odd to say the least (looks like an auto-formatter has been used that prefers to insert newlines even when not necessary at all)