Skip to content

Commit e3c971c

Browse files
authored
Add links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773)
1 parent 0ee0b29 commit e3c971c

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

Doc/library/ast.rst

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,5 +1800,24 @@ to stdout. Otherwise, the content is read from stdin.
18001800

18011801
.. seealso::
18021802

1803-
`Green Tree Snakes <https://greentreesnakes.readthedocs.io/>`_, an external documentation resource, has good
1804-
details on working with Python ASTs.
1803+
`Green Tree Snakes <https://greentreesnakes.readthedocs.io/>`_, an external
1804+
documentation resource, has good details on working with Python ASTs.
1805+
1806+
`ASTTokens <https://asttokens.readthedocs.io/en/latest/user-guide.html>`_
1807+
annotates Python ASTs with the positions of tokens and text in the source
1808+
code that generated them. This is helpful for tools that make source code
1809+
transformations.
1810+
1811+
`leoAst.py <http://leoeditor.com/appendices.html#leoast-py>`_ unifies the
1812+
token-based and parse-tree-based views of python programs by inserting
1813+
two-way links between tokens and ast nodes.
1814+
1815+
`LibCST <https://libcst.readthedocs.io/>`_ parses code as a Concrete Syntax
1816+
Tree that looks like an ast tree and keeps all formatting details. It's
1817+
useful for building automated refactoring (codemod) applications and
1818+
linters.
1819+
1820+
`Parso <https://parso.readthedocs.io>`_ is a Python parser that supports
1821+
error recovery and round-trip parsing for different Python versions (in
1822+
multiple Python versions). Parso is also able to list multiple syntax errors
1823+
in your python file.

0 commit comments

Comments
 (0)