lark
lark copied to clipboard
Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
I think the core design here stands. I would like feedback on that already. Primarily missing here is tests, examples and docs.
It would be great to see a tutorial on how to port a pyparsing based project to Lark.
``match_examples``, at some point https://github.com/lark-parser/lark/blob/2335aa63e183c9182d6f8554b0d2d3714fd2286b/lark/exceptions.py#L110 creates a Token, whose value is set to an empty string: https://github.com/lark-parser/lark/blob/2335aa63e183c9182d6f8554b0d2d3714fd2286b/lark/parsers/lalr_interactive_parser.py#L88 the problem is, this empty string might not be a valid input for...
it seems that, when using a ``FromPackageLoader`` object, a grammar file is opened and read from each time another grammar uses a rule that is imported from that former grammar....
Hi Lark maintainers! This is my first PR to an open source project. It offers a grammar that covers some of ISO 8601. I'd like to add some tests with...
Hello everyone, I'm quite new to lark and I was wondering if there is any planned feature on adding rule element labels, similar to ANTLR, into lark. In ANTLR4 you...
For example, this page: https://lark-parser.readthedocs.io/en/latest/search.html?q=maybe_placeholders Doesn't find this mention: https://lark-parser.readthedocs.io/en/latest/classes.html (search for maybe_placeholders) --------------------- Also, partial search doesn't work. Searching for `maybe_` gives no results. @chsasank
**Describe the bug** I expect tree_matcher to match a rule and a tree->children without introducing redundant self rules. In particular see this line: ``` # Sometimes, tree_matcher returns weird self...
**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 ```...