mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-18 03:25:55 +08:00
Remove the old parser documentation (that's now part of parso)
This commit is contained in:
@@ -54,33 +54,15 @@ because that's where all the magic happens. I need to introduce the :ref:`parser
|
|||||||
|
|
||||||
.. _parser:
|
.. _parser:
|
||||||
|
|
||||||
Parser (parser/__init__.py)
|
Parser
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
.. automodule:: jedi.parser
|
Jedi used to have it's internal parser, however this is now a separate project
|
||||||
|
and is called `parso <http://parso.readthedocs.io>`_.
|
||||||
|
|
||||||
Parser Tree (parser/tree.py)
|
The parser creates a syntax tree that |jedi| analyses and tries to understand.
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++
|
The grammar that this parsers uses is very similar to the official Python
|
||||||
|
`grammar files <https://docs.python.org/3/reference/grammar.html>`_.
|
||||||
.. automodule:: jedi.parser.tree
|
|
||||||
|
|
||||||
Class inheritance diagram:
|
|
||||||
|
|
||||||
.. inheritance-diagram::
|
|
||||||
Module
|
|
||||||
Class
|
|
||||||
Function
|
|
||||||
Lambda
|
|
||||||
Flow
|
|
||||||
ForStmt
|
|
||||||
Import
|
|
||||||
ExprStmt
|
|
||||||
Param
|
|
||||||
Name
|
|
||||||
CompFor
|
|
||||||
:parts: 1
|
|
||||||
|
|
||||||
.. _evaluate:
|
|
||||||
|
|
||||||
Evaluation of python code (evaluate/__init__.py)
|
Evaluation of python code (evaluate/__init__.py)
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
@@ -156,13 +138,6 @@ Parameter completion (evaluate/dynamic.py)
|
|||||||
.. automodule:: jedi.evaluate.dynamic
|
.. automodule:: jedi.evaluate.dynamic
|
||||||
|
|
||||||
|
|
||||||
.. _diff-parser:
|
|
||||||
|
|
||||||
Diff Parser (parser/diff.py)
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
.. automodule:: jedi.parser.python.diff
|
|
||||||
|
|
||||||
.. _docstrings:
|
.. _docstrings:
|
||||||
|
|
||||||
Docstrings (evaluate/docstrings.py)
|
Docstrings (evaluate/docstrings.py)
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
.. _xxx:
|
|
||||||
|
|
||||||
Parser Tree
|
|
||||||
===========
|
|
||||||
|
|
||||||
Usage
|
|
||||||
-----
|
|
||||||
|
|
||||||
.. automodule:: jedi.parser.python
|
|
||||||
:members:
|
|
||||||
:undoc-members:
|
|
||||||
|
|
||||||
|
|
||||||
Parser Tree Base Class
|
|
||||||
----------------------
|
|
||||||
|
|
||||||
All nodes and leaves have these methods/properties:
|
|
||||||
|
|
||||||
.. autoclass:: jedi.parser.tree.NodeOrLeaf
|
|
||||||
:members:
|
|
||||||
:undoc-members:
|
|
||||||
|
|
||||||
|
|
||||||
Python Parser Tree
|
|
||||||
------------------
|
|
||||||
|
|
||||||
.. automodule:: jedi.parser.python.tree
|
|
||||||
:members:
|
|
||||||
:undoc-members:
|
|
||||||
:show-inheritance:
|
|
||||||
|
|
||||||
|
|
||||||
Utility
|
|
||||||
-------
|
|
||||||
|
|
||||||
.. autofunction:: jedi.parser.tree.search_ancestor
|
|
||||||
Reference in New Issue
Block a user