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 194 lark issues
Sort by recently updated
recently updated
newest added

This is due to the naively aggressive inlining policy of the grammar compiler. For example, the following grammar takes a long time to compile: ```ruby start: a? b? c? d?...

bug

I'm trying to develop a small template engine with Lark. While I've contemplated making it myself with a bunch of regular expressions, I think it would make more sense to...

question

When `transformer` is provided to the `Parser` constructor, the `parse` method may no longer return the parse `'ParseTree'`

I've added fixes as per https://github.com/lark-parser/lark/issues/1180#issuecomment-1214921614. I don't think that the backward compatibility is possible in this case, as the original argument is positional, e.g. ``` python Token(type_="TEST", value="test") #...

**Describe the bug** `Token` is not working correctly with structural pattern matching. While you can create tokens as: ``` python t = Token(type_="TEST", value="test") ``` you have to pattern match...

Best to have configuration(s) in central place so people could just use `codespell` without pre-commit TODOs - [ ] remove TMP commit with typo after having verified that pre-commit does...

Make `lark.lark` parse the same grammar as `load_grammar.py`, and make `grammar.md` document it more fully. Fixes #391, #1382, #1384. - All scenarios have tests in new file `tests/test_lark_lark.py`. Each test...

https://pypi.org/project/lark/ is the current one, and https://pypi.org/project/lark-parser/ is an outdated one that should be removed.

Based on the discussions from #1360, this PR contains the following changes for part 1: * Introduce the categories "First steps", how-to guides (recipes), addendum, and references based on the...

**Describe the bug** When generating output using the minimal grammar of `start:` (as well as more complex grammars, but this reproduces it in my environment) the output varies. On cursory...