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

Python 3.11 expect (?i) to be at begging of regex: `abc: /(?i)def/` But lark probably contcatenate several regexes. So it leads to `abc: /(?i)def|(?i)qwe/` Second (?i) flag to be not...

Thanks for fixing #1214 earlier. It now seems to return all ambiguities, but ambiguities inside inline rules are expanded _within_ the parser rather than leaving it to `CollapseAmbiguities` transformer. I...

Right now, lexer callbacks need to store the ignored tokens in a list shared by all calls to the same Lark instance. Possible solutions: - Make lexer_callbacks an argument of...

enhancement

I'd like to parse inputs like ``` equations 3 a=7 b=a*c c=exp(-1) ``` which are generated by a context-sensitive grammar (because of the `3` giving the number of equations to...

question

Hi, I'd like to report a possible bug with token's attributes start_pos, end_pos and line. Below is an example to reproduce. Grammar: ``` start: statement_list statement_list: statement+ statement: variable "="...

question
discussion

Hi https://github.com/lark-parser/lark/issues/1398 Building on the previous question I completed the full parser ``` text = '''7212775000:H:uvm_test_top:[slc_base_test/cex3_debug] socket:0, cex3 txn : t: (cpu_dv_scc_cex3_uvc::transaction@8320904) { response_expected: 0x0 txn_phase: TXN_PHASE_UNINITIALIZED accept_time: 7212775000 begin_time:...

question

**What is your question?** How do I import lark grammar written in one python project into another. E.g. project A has `A/grammar.lark` file project B can import A But ```...

question

1)Effective List Concatenation: extend() was used in place of list concatenation (+) to improve efficiency. 2)Simplified Iterator Check: Rather than using a bespoke method, the all() function was used to...

```markdown ## Description When using the Lark parser with a custom Transformer to parse and transform a simple grammar, the expected transformations specified in the Transformer class do not seem...

question

**What is your question?** Facing an issue with a pipe in terminal regex. Here is a subset of the grammar in question: ``` from lark import Lark grammar = """...

bug