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.
 
 
Erez Sh 47316488dd Merge branch 'grammars-lark-lark' of https://github.com/MegaIng/lark into MegaIng-grammars-lark-lark 3 年之前
..
advanced Earley error reporting - initial (Issue #760) 3 年之前
relative-imports Examples: add import example 5 年之前
standalone Standalone generator now remove docstrings and comments. 4 年之前
tests added tests for lark.lark changes 4 年之前
README.rst move advanced examples to a different folder 4 年之前
__init__.py Added examples (calc, json) 7 年之前
calc.py Improvements to puppet + other small stuff 4 年之前
fruitflies.png Improved Readme 6 年之前
fruitflies.py added make_dot 4 年之前
indented_tree.py inital sphinx gallery 4 年之前
json_parser.py Adjustments 4 年之前
lark_grammar.py Moved `lark.lark` into the standard library. 3 年之前
turtle_dsl.py inital sphinx gallery 4 年之前

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
~~~~~~~~~~~~~~~~~