MegaIng
MegaIng
> But I defined a name: digit You defined a name for the *nonterminal*, not for the *terminal*. You need to define a name for the terminal, in uppercase. >...
This is a limitation of the LALR parsing algorithm. The BasicLexers are created based on the states of the parser, which can't fully reflect the truth. The LALR algorithm can't...
XML based formats are not context free. The ability to parse them using lark, which primarily supports CFG is and will always be quite limited. It's possible to account for...
`on_error` is only supported for `parser='lalr'`. Can you provide an actual reproducer script please?
The standalone generator is not under MIT, but under MPL-2.0. It also generates extra code inside the resulting file that is not from anywhere else in Lark. So while the...
Whether or not contributors agree doesn't matter, since MIT allows relicensing this way without problems. Yeah, you can create a tool that does this. I wouldn't call it trivial. Make...
The only problem I see that might exists is that the generated standalone file potentially should contain the MIT license notice, although it wouldn't apply to code. But also, since...
Just to be clear: - We are sublicensing not relicensing (based on the definition in the book from what I can tell) - We don't need to have the resulting...
Duplicate of https://github.com/lark-parser/lark/issues/1194
Use the `STRING` definition from this draft PR: https://github.com/lark-parser/lark/pull/1351/files#diff-0c6c68851bb98bda0665017b99a92f90d67ff56e55dca71a83ae390129a3a538