Erez Shinan

Results 495 comments of Erez Shinan

All examples should work now.

Yes, I meant to only switch mode when a copy is made, not when using the InteractiveParser. But yeah, it's a bit of an overkill.

A few notes: 1. Basically, this is the real functional code (which resides in interregular): ``` for a, b in combinations(keys, 2): if not self.isdisjoint(a, b): yield a, b ```...

P.S. re point 3, you can do something like `classify(regexps, lambda r: r.priority)` to get all the subgroups that should be tested together.

> Rules aren't allowed inside terminals Terminals, by definition, are the smallest element in the grammar. They are merely a string of characters. They cannot contain rules, which are the...

Sorry, I didn't notice this went unanswered. > Where should tests go? Probably a new file, `test_grammar_lib.py` or something like that. > Should everything really be a terminal? It might...

There has already been some talk about improving the error messages by providing the expected values, so I will keep that in mind as a possible task. Another easier fix...

When a terminal doesn't have a name (i.e. defined as `"foo"`), and Lark can't guess the name, it calls it ANON.

Thanks, but I think we'll stick to setup.py until pyproject.toml can extract the version from `lark/__init__.py`.

@KOLANICH I think it's great that you can do `lark.__version__` and get the version, very helpful for debugging. I'm actually annoyed that a lot of packages don't do that these...