[Python-checkins] Add links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773)

Edward K. Ream webhook-mailer at python.org
Tue Aug 11 10:08:10 EDT 2020


https://github.com/python/cpython/commit/e3c971ccfa58afcb2656b71b95e10b9703f2ad32
commit: e3c971ccfa58afcb2656b71b95e10b9703f2ad32
branch: master
author: Edward K. Ream <edreamleo at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-08-11T07:07:49-07:00
summary:

Add links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773)

files:
M Doc/library/ast.rst

diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst
index 25cb17811e718..755c60fba6411 100644
--- a/Doc/library/ast.rst
+++ b/Doc/library/ast.rst
@@ -1800,5 +1800,24 @@ to stdout.  Otherwise, the content is read from stdin.
 
 .. seealso::
 
-    `Green Tree Snakes <https://greentreesnakes.readthedocs.io/>`_, an external documentation resource, has good
-    details on working with Python ASTs.
+    `Green Tree Snakes <https://greentreesnakes.readthedocs.io/>`_, an external
+    documentation resource, has good details on working with Python ASTs.
+
+    `ASTTokens <https://asttokens.readthedocs.io/en/latest/user-guide.html>`_
+    annotates Python ASTs with the positions of tokens and text in the source
+    code that generated them. This is helpful for tools that make source code
+    transformations.
+
+    `leoAst.py <http://leoeditor.com/appendices.html#leoast-py>`_ unifies the
+    token-based and parse-tree-based views of python programs by inserting
+    two-way links between tokens and ast nodes.
+
+    `LibCST <https://libcst.readthedocs.io/>`_ parses code as a Concrete Syntax
+    Tree that looks like an ast tree and keeps all formatting details. It's
+    useful for building automated refactoring (codemod) applications and
+    linters.
+
+    `Parso <https://parso.readthedocs.io>`_ is a Python parser that supports
+    error recovery and round-trip parsing for different Python versions (in
+    multiple Python versions). Parso is also able to list multiple syntax errors
+    in your python file.
\ No newline at end of file



More information about the Python-checkins mailing list