This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
Erez Sh 6985acd9f8 Move PythonIndenter to lark/indenter.py 3 年前
..
advanced Move PythonIndenter to lark/indenter.py 3 年前
composition Examples: Tiny fix 3 年前
relative-imports Examples: add import example 5 年前
standalone Tiny adjustments 3 年前
tests added tests for lark.lark changes 4 年前
README.rst Examples: Fixes to paths (Issue #780) 3 年前
__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 Rename lexer: Standard/Traditional -> Basic 3 年前
lark_grammar.py Moved Python3 grammar to stdlib as python.lark 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.advanced.python_parser

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