|
|
|
|
|
by filoeleven
2116 days ago
|
|
May I ask what kind of criteria you have in mind for being “more generally useful”? Parsers are something I know next to nothing about and hardly ever have to reach for. Is it mostly speed and power? Is the current crop not sufficient to parse any BNF, or is it that people want something to handle more permissive grammars? The only parsing library I’ve played with recently is Instaparse in Clojure, which is apparently GLL. It was a delight to use. I found a PDF of the old version of Apache Expression Language that I needed to interpret, typed it almost verbatim into a quite readable text file, and Instaparse did the rest. It was an exciting experience to have unlocked this embedded DSL with about three lines of code, not counting the grammar definition. https://github.com/Engelberg/instaparse |
|