question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Standalone does not include `load_grammar`

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
erezshcommented, Jun 5, 2022

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.)

1reaction
erezshcommented, May 31, 2022

The standalone must be LALR, it doesn’t support other parsers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When using standalone: true created node_modules does not ...
I am using the new experimental build setting: standalone: true in my ./next.config.js file. But for some reason the packages that are being...
Read more >
Java: offline validate XML using local XSD and SchemaFactory
I'm currently validating a local XML file with a local XSD file using this method: private boolean validate(File xmlFile) { SchemaFactory ...
Read more >
src/xercesc/internal/SGXMLScanner.cpp - Google Git
// implies that this will have been initialized correctly. unsigned orgGrammarUri = uriId;. if ...
Read more >
org.apache.xerces.impl.dtd.DTDGrammarBucket java code ...
@param augs Additional information that may include infoset * augmentations. ... @param standalone The standalone value, or null if not specified.
Read more >
SpeechRecognitionEngine Class (Microsoft.Speech ...
We're no longer updating this content regularly. ... as standalone speech recognition applications using an in-process recognition engine, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found