Erez Shinan

Results 495 comments of Erez Shinan

I agree there is some potential for confusion there. I've already suggested before that we switch to an explicit empty rule, like `()`, instead of allowing implicit ones. And of...

We can leave it open for a while, and give other users a chance to respond. We can always close it later. Maybe it's actionable in the sense of adding...

What would you use to signify empty? I thought () is pretty elegant, and it's what Python uses for empty tuple.

These are actually 3 different constructs - The empty terminal, which is disallowed because how do you match `""*` ? (`//` is used for comments :) - The empty rule,...

Funny! > I think it makes sense to create a tree node For that you can use the 2nd form. But there is a performance penalty for sending it to...

Hi, thanks! The simple solution is that the parse-trees that lark produces are reduce-able to a parser's state-machine. If you use the Transformer class on a tree, it will call...

@charles-esterbrook It's mentioned here: https://lark-parser.readthedocs.io/en/latest/philosophy.html?highlight=detail%20here#always-build-a-parse-tree-unless-told-not-to

I think it's a nice idea. I think your best bet is to create a Lark parser that reproduces the output of the GrammarLoader parser : https://github.com/lark-parser/lark/blob/master/lark/load_grammar.py#L663 You might have...

@davaya I don't understand what the difficulty is, and what you're trying to do to solve it. > convert an ABNF file to a Lark file Why does it have...

> simply cannot be expressed at all in ABNF In that situation, it's common to add new language features that don't break the old one. For example a new operator,...