by cakoose · 4y ago · 0 comments
I'd expect most parser generators in this category to be able to parse their own grammars.
Imagine a very weak parser that can only handle LR0. But if it uses a Lisp-like grammar language, it too is self-hosting.
E.g.:
bitstring : bistring '1'
| bitstring '0'
| /* empty */
;
this expresses all that can be expressed. The rest is semantics.That part of the README goes something like this:
1. It can parse Python and Go efficiently.
2. In fact it's so expressive that it can even parse itself, which is a "language of languages".
If you had first shown some hard-to-parse langcc syntax, then sure, _that_ would be evidence of expressiveness. But there's nothing impressive about being able to parse a "language of languages", since a language of languages can be LR(0).