Erez Shinan

Results 357 comments of Erez Shinan

Actually, doesn't `__getattr__()` solve the need for `get_callback()` ? I feel like we're being silly and forgetting the basics.

Sounds like something that can be solved by changing priority / ordering of choices?

There is a reference-quality grammar in ./examples: https://github.com/lark-parser/lark/blob/master/examples/lark.lark Do you think there is a benefit to making it formal?

Well, you can already use the grammar I linked to. It's correct and fairly comprehensive.

Sorry, there isn't an interactive tool for Lark. Lark does have syntax highlighting for sublime-text, so you could use it to edit the grammar file and load it from the...

It should probably be pretty simple to fork nearley-playground and change the syntax to Lark's. It could be a nice addition to the lark toolbox.

The first one seems nice, but a little primitive. Ideally, you'd have syntax highlighting, proper error handling, and a display of the resulting tree (when given an input). I don't...

Now that Lark has an online IDE, this should be easier to implement: ~~https://lark-parser.github.io/lark/ide/app.html~~ new link: https://www.lark-parser.org/ide/

It's possible to collect all the tokens by writing a postlexer. Another way is to parse using the interactive parser. Mind if I ask what you need it for?

Yes, the postlexer gets the tokens one by one, so if you save them somewhere (like in a global list, or inside the postlexer instance), you will have the latest...