.. _sphx_glr_examples_advanced:
Advanced Examples
~~~~~~~~~~~~~~~~~
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_conf_lalr_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_conf_lalr.py`
.. raw:: html
LALR’s contextual lexer
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_templates_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_templates.py`
.. raw:: html
Templates
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_conf_earley_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_conf_earley.py`
.. raw:: html
Earley’s dynamic lexer
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_error_handling_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_error_handling.py`
.. raw:: html
Error handling using an interactive parser
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_reconstruct_json_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_reconstruct_json.py`
.. raw:: html
Reconstruct a JSON
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_custom_lexer_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_custom_lexer.py`
.. raw:: html
Custom lexer
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_tree_forest_transformer_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_tree_forest_transformer.py`
.. raw:: html
Transform a Forest
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr__json_parser_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced__json_parser.py`
.. raw:: html
Simple JSON Parser
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_prioritizer_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_prioritizer.py`
.. raw:: html
Custom SPPF Prioritizer
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_py3to2_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_py3to2.py`
.. raw:: html
Python 3 to Python 2 converter (tree templates)
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_python_parser_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_python_parser.py`
.. raw:: html
Grammar-complete Python Parser
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_create_ast_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_create_ast.py`
.. raw:: html
Creating an AST from the parse tree
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_error_reporting_earley_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_error_reporting_earley.py`
.. raw:: html
Example-Driven Error Reporting
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_error_reporting_lalr_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_error_reporting_lalr.py`
.. raw:: html
Example-Driven Error Reporting
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_reconstruct_python_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_reconstruct_python.py`
.. raw:: html
Reconstruct Python
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_dynamic_complete_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_dynamic_complete.py`
.. raw:: html
Using lexer dynamic_complete
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_qscintilla_json_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_qscintilla_json.py`
.. raw:: html
Syntax Highlighting
.. raw:: html
.. toctree::
:hidden:
/examples/advanced/conf_lalr
/examples/advanced/templates
/examples/advanced/conf_earley
/examples/advanced/error_handling
/examples/advanced/reconstruct_json
/examples/advanced/custom_lexer
/examples/advanced/tree_forest_transformer
/examples/advanced/_json_parser
/examples/advanced/prioritizer
/examples/advanced/py3to2
/examples/advanced/python_parser
/examples/advanced/create_ast
/examples/advanced/error_reporting_earley
/examples/advanced/error_reporting_lalr
/examples/advanced/reconstruct_python
/examples/advanced/dynamic_complete
/examples/advanced/qscintilla_json