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

Fix #1414 The core issue is that `A B` got turned into `/{A}{B}/` instead of `/(?:{A})(?:{B})/`. Most of the time, this doesn't matter, however if `B` is a manually defined...

I am using the InteractiveParser to feed tokens one at a time. I noticed this to be comparatively slow. After profiling it, I saw that a lot of copying is...

question

**What is your question?** I'm interested in writing a transformer for certain parts of input programs that wouldn't require a full language grammar. So let's say I have the below...

question

Preamble: I've read the docs and searched the issues regarding this topic beforehand and I'm actually kind of surprised it didn't come up yet. So excuse me if I overlooked...

enhancement

An implement of `Lark.scan`. Also adds `start_pos` and `end_pos` to `Lark.parse`, `Lark.parse_interactive` and `Lark.lex`. TODO: - [x] add example - [x] A bit more documentation for what exactly this function...

This is a list of TODOs I would like to see/do after #1388 is merged (or independently, but reviewing that PR is why I am now making this list): ##...

**Suggestion** Provide a `%catchall token_name` syntax thingy that declares that everything that cannot be parsed as any defined token or terminal should be returned as the token `token_name`. This would...

enhancement