lark-parser / lark

Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
MIT License
4.86k stars 411 forks source link

Make sphinx gallery execute examples #669

Open chsasank opened 4 years ago

chsasank commented 4 years ago

There are some issues with relative imports and other issues. Once fixed they can be made to execute and that could be super cool!

See https://github.com/lark-parser/lark/pull/666#issuecomment-676159386_

erezsh commented 4 years ago

Is there a command line, that if it succeeds, guarantees that all examples will run in sphinx for sure?

chsasank commented 4 years ago

cd to directory with the example. run python x.py. This should print something and exit with 0.

erezsh commented 4 years ago

What about GUI programs like qscintilla_json.py?

erezsh commented 4 years ago

All examples should work now.