This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
Erez Shinan 84b195d5f0
Merge pull request #691 from starwarswii/patch-1
před 4 roky
..
advanced Write examples for ForestVisitor and TreeForestTransformer před 4 roky
relative-imports Examples: add import example před 5 roky
standalone Standalone generator now remove docstrings and comments. před 4 roky
tests added tests for lark.lark changes před 4 roky
README.rst move advanced examples to a different folder před 4 roky
__init__.py Added examples (calc, json) před 7 roky
calc.py Improvements to puppet + other small stuff před 4 roky
fruitflies.png Improved Readme před 6 roky
fruitflies.py added make_dot před 4 roky
indented_tree.py inital sphinx gallery před 4 roky
json_parser.py Adjustments před 4 roky
lark.lark fixed lark.lark requiring newline at the end of grammars před 4 roky
lark_grammar.py added tests for lark.lark changes před 4 roky
turtle_dsl.py inital sphinx gallery před 4 roky

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