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

**Suggestion** Provide a clear and concise description of what the problem is, what you want to happen. How difficult would it be to add a generator of syntax diagrams for...

enhancement

Hey, I'm wondering how conducive lark would be for creating a language server implementation for a given DSL. For some background: - I have a custom DSL I'm using to...

enhancement
help wanted
discussion

I have the use case where I need to parse a text line by line. At the first line, the parser can start at its `start` position. At the end...

Are there any plans to create a Lark grammar for Lark? The only file currently in lark/grammars is common.lark, which defines a few terminals. The authoritative definition of Lark would...

discussion

There are some issues with relative imports and other issues. Once fixed they can be made to execute and that could be super cool! See https://github.com/lark-parser/lark/pull/666#issuecomment-676159386_

I am thinking something along the lines of https://omrelli.ug/nearley-playground/ that provides an interactive feedback to the user creating a grammar, via examples or other way. The nicest tool I know...

help wanted
discussion
good first issue

I had a go at [converting my nearley grammar](https://github.com/monostable/electro-grammar/tree/python) but I encountered the error: ``` File "/home/kaspar/.local/lib/python3.5/site-packages/lark/tools/nearley.py", line 116, in _nearley_to_lark assert False, directive AssertionError: include ``` So I am...

enhancement
help wanted

It is common that languages have some sections, such as strings or floats, which have completely different lexical syntax (w.r.t. whitespace and such) than everything else. The current approach appears...

enhancement

**Describe the bug** On Lark 0.8.5, Python 3.7.7, I'm observing a parse affected by `PYTHONHASHSEED`. **A clear and concise description of what the bug is, and what you expected to...

Given a fixed grammar file to generate a standalone parser using `lark.tools.standalone`, the resulting generated code is not always identical despite setting PYTHONHASHSEED. Note that the syntax tree given by...