lark
lark copied to clipboard
Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
**Suggestion** A Lark Earley parser will generate "sppf.png" `if self.debug` is True, as seen in `early.py`: https://github.com/lark-parser/lark/blob/master/lark/parsers/earley.py - search for "sppf.png" However, this is an expensive operation that radically slows...
**What is your question?** I have a working grammar which I can parse into an abstract syntax tree. I can output it to the console as an object, as a...
Hello, this is a small feature request. The current syntax is to require all terminals be UPPER_CASE and, if I understand it correctly, load_grammar.py:TERMINALS is the place where it is...
Do you have any problems with Lark that aren't necessarily bugs? Is there anything about the design that you don't like? Or the interface? Don't like how issues or releases...
https://lark-parser.readthedocs.io/en/latest/recipes/  The recipe 2, is ok as it uses the lexer callback. On this commit https://github.com/lark-parser/lark/commit/1815bd7fbda932933fed604579e955a8c4d7c021 I see you added `# TODO Deprecate lexer_callbacks?` Why remove this feature? Well...
**Suggestion** Example current output: ``` DEBUG:lark:Unused rule: Unused rule: DEBUG:lark:Unused rule: Unused terminals: ['EXPECTED_ERROR'] DEBUG:lark:Unused terminals: ['EXPECTED_ERROR'] ``` This is nice. Additionally, I would like to know the line number...
**What is your question?** I would like to create an SQL parser with lark. I understand that I need an SQL grammar for this. I would rather not make one...
Fixes #76. This is a first attempt. You can install `interegular` via pip: `pip install interegular`. If you want, you can also take a look at the [interegular source code](https://github.com/MegaIng/interegular).