lark icon indicating copy to clipboard operation
lark copied to clipboard

Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.

Results 170 lark issues
Sort by recently updated
recently updated
newest added

**Suggestion** The grammars are easier to follow with a rail road diagram. It would be nice to have the chance to create one. **Describe alternatives you've considered** The best rail...

enhancement

A working version that supports using a decorator to register a method to be called for a rule that does match the method name. It also supports things like a...

Some terms to make this more searchable: > Disallow the colon and pipe operators next to each other. > definition operator and vertical bar adjacent > :| (Please forgive me...

discussion

**Suggestion** Currently, `getattr()` is used on the `Transformer` or `Visitor` to find a user defined method with the same name as the `Tree.data` or `Token.type`. However, this can lead to...

enhancement

Thank you for creating Lark. I want to use Lark to distinguish between "a" and "aa". (I'm sorry if it's an already mentioned issue.) Run the following sample program. ```python...

question
Earley

**Suggestion** Currently, (as an example), to extend a `statement` rule in a grammar called `old_gram.lark`, we can do `%import .old_gram.statement -> old_gram__statement` in the new grammar file `new_gram.lark`. The problem...

enhancement

This PR implements feature request #318 in different approach from PR #1017. Now it parses ABNF grammar and convert it to EBNF parse-tree. %import is implemented for convenience, and %terminal...

When trying to do call `Lark.save(f)` on an earley parser, this exception is thrown: `AttributeError: 'XEarley' object has no attribute '__serialize_fields__'` To reproduce: ```python from lark import Lark grammar =...

enhancement

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...