-
lark-parser: 0.6.5
python: 3.6.6
my code is not working... can anybody help me?
```
from lark import Lark
grammar = '''
start : filename
filename : NAME "." EXTENSION
EXTENSION : …
-
Hi!
I have tested various libraries to make a query/filter parser for a tool I am writing but they were either too complicated or could not handle some of the grammar I had in mind.
Here is samp…
-
I'm not an expert on parsers, so this may not be a bug, but can't hurt to file an issue...
I'm trying to create a parser for specially-formatted 68k assembly (subset):
```
m68kdis_parser = lark…
-
The grammar below illustrates the issue.
```
from lark import Lark
grammar = r'''
start: s1 | s2
s1: s2
s2: a bc
a: "a" -> id1
bc: b c -> id2
b: "b" -> id3
…
-
I looked at `calc.py` in the examples, and wanted to add more math operators. To do so, I edited `calc.py` to look like this:
```python
from lark import Lark, Transformer, v_args
calc_grammar =…
-
Hi,
I have an issue with infinite loop.
My grammar looks like this (I have more complex grammar but I managed to isolate an issue on smaller one):
start: statement+
statement: expression
…
-
I am building a parser that can deal with different types of sentences. The structure of these sentences is based on formal logical structures. However, when parsing a sentence with a "knowledge" stru…
-
When I use the `standard` lexer (default for `lalr` parser) sometimes it determines the longest match incorrectly.
Consider the following code:
```python
import lark
grammar = r'''
start: BIN…
-
Hey,
Still having some odd issues I just can't troubleshoot and workaround with precedence in earley. Precedence just doesn't work the way I expect:
Simple example for parsing a INI style file:…
-
Hi. Frist, I have to admit that I am new both to Lark and Python (I came from the land of C). I'm trying to write a simple assembler.
I've prepared the following Lark grammar:
```
start: source…