lark: Standalone does not include `load_grammar`
Describe the bug
Lark 1.1.2, installed via pip, creates a standalone without the function load_grammar defined.
To Reproduce
Create a grammar
start: "a"
Build in cmd.exe with python -m lark.tools.standalone grammar.lark > standalone.py
Opening the file, there is one call to load_grammar, and no definition
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (6 by maintainers)
No worries, thanks for your input. I think it’s natural to miss things when reading so many pages of docs (it also says lalr only in the main README ). I can’t say how common that confusion is, or what’s the best way to address it. Either way, I’m open to suggestions.
(Earley was always the default parser.)
The standalone must be LALR, it doesn’t support other parsers.