This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sasank Chilamkurthy 582e9ab935 move advanced examples to a different folder 4 years ago
..
advanced move advanced examples to a different folder 4 years ago
relative-imports Examples: add import example 6 years ago
standalone Standalone generator now remove docstrings and comments. 4 years ago
README.rst move advanced examples to a different folder 4 years ago
__init__.py Added examples (calc, json) 8 years ago
calc.py inital sphinx gallery 4 years ago
fruitflies.png Improved Readme 7 years ago
fruitflies.py inital sphinx gallery 4 years ago
indented_tree.py inital sphinx gallery 4 years ago
json_parser.py inital sphinx gallery 4 years ago
lark.lark Updated lark.lark + added template_lark.lark, showcasing templates 4 years ago
lark_grammar.py inital sphinx gallery 4 years ago
turtle_dsl.py inital sphinx gallery 4 years ago

README.rst

Examples for Lark
=================

**How to run the examples**:

After cloning the repo, open the terminal into the root directory of the
project, and run the following:

.. code:: bash

[lark]$ python -m examples.<name_of_example>

For example, the following will parse all the Python files in the
standard library of your local installation:

.. code:: bash

[lark]$ python -m examples.python_parser

Beginner Examples
~~~~~~~~~~~~~~~~~