3 ms·
There's another glaring omission: grammars. Regular expressions are everywhere, languages have literals for them. Context free parsing with grammars? You're gon
by matheusmoreira 3y ago
There's another glaring omission: grammars. Regular expressions are everywhere, languages have literals for them. Context free parsing with grammars? You're gonna have to break out the compiler compilers.
Why there is no parse(grammar, input) function in standard libraries is beyond me. The Earley algorithm seems well suited for it, it can take a grammar as input and and it even work online.