Results 13 issues of MegaIng

The changes implemented during the discussion of #992, and a basic implementation of `%include` (typo in commit message :-/). Should I also implement more complex load once stuff in this...

Closes #1001 Also does a bit of py2 cleanup, and changes the default logger level to `ERROR`. That change is only to keep the output of `.exception` in `Lark.__init__` when...

I think the core design here stands. I would like feedback on that already. Primarily missing here is tests, examples and docs.

**Describe the bug** Sometimes (e.g. not reliable/random chance), the `TreeMatcher` (and therefore the `Reconstructor` applies trees like this: ``` expr literal "a" "5" "5" ``` as if they were ```...

Fixes #76. This is a first attempt. You can install `interegular` via pip: `pip install interegular`. If you want, you can also take a look at the [interegular source code](https://github.com/MegaIng/interegular).

This PR updates the Python grammar to be a bit more up-to-date and correct, and it suggests a set of tests that could be run, although I am not sure...

Over on SO someone asked this question: https://stackoverflow.com/questions/76366280/parsing-formulas-using-lark-ebnf/76381256 As far as I can tell, it shows a bug in the earley parser where it duplicates some Tokens because of enormous...

Earley

Use this issue to mention all parts where syntax-highlighting is wrong/not as wished/missing in the options menu.

enhancement
help wanted

Fix #1414 The core issue is that `A B` got turned into `/{A}{B}/` instead of `/(?:{A})(?:{B})/`. Most of the time, this doesn't matter, however if `B` is a manually defined...

An implement of `Lark.scan`. Also adds `start_pos` and `end_pos` to `Lark.parse`, `Lark.parse_interactive` and `Lark.lex`. TODO: - [x] add example - [x] A bit more documentation for what exactly this function...