Erez Shinan

Results 358 comments of Erez Shinan

What kind of guidance do you need? The code of the cyk parser is here: https://github.com/lark-parser/lark/blob/master/lark/parsers/cyk.py You should figure out which line is causing the infinite loop, and take it...

What do you mean? Did you see this page? https://lark-parser.readthedocs.io/en/latest/how_to_develop/

We need to distinguish between two kinds of inlining 1) At the grammar level, before building the parser 2) At the parse tree level, while parsing

Also, then recursion within `_rule` would be impossible.

> If that may break some people’s code, why not an inline keyword? That's what the `__rule` / `__template` syntax is for.

I can see how more fine grained control of %ignore might be useful. I can suggest adding the following syntax: ```go %ignore WS, COMMENT { // list of rules %ignore...

Well, one approach might be to assign an "ignore set" for each rule. And then in the contextual lexer (or in Earley) ignore according to the union of those sets,...

Great, looking forward to it! Let me know if you have questions regarding the code.

You can write it with `%ignore_scoped`, to avoid collisions, and I'll find a way to merge them into one command later on.

I think it makes sense that importing a rule will import its ignore-settings. That also makes sense in the code, if you store them in RuleOptions. I can't imagine there...