

.. _sphx_glr_examples_standalone:

Standalone example
==================

To initialize, cd to this folder, and run:

.. code-block:: bash

   ./create_standalone.sh

Or:

.. code-block:: bash

   python -m lark.tools.standalone json.lark > json_parser.py

Then run using:

.. code-block:: bash

   python json_parser_main.py <path-to.json>



.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="    This example demonstrates how to generate and use the standalone parser,     using the JSON example.">

.. only:: html

  .. image:: /examples/standalone/images/thumb/sphx_glr_json_parser_main_thumb.png
    :alt:

  :ref:`sphx_glr_examples_standalone_json_parser_main.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Standalone Parser</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /examples/standalone/json_parser_main

