summaryrefslogtreecommitdiff
path: root/devel/py-libcst/pkg-descr
blob: 3c713bf8e90972156ac16c5a427daeb6f9d7b1e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
LibCST is a Concrete Syntax Tree (CST) parser and serializer library for Python.

LibCST parses Python source code as a CST tree that keeps all formatting details
(comments, whitespaces, parentheses, etc). It's useful for building automated
refactoring (codemod) applications and linters.

LibCST creates a compromise between an Abstract Syntax Tree (AST) and a
traditional Concrete Syntax Tree (CST). By carefully reorganizing and naming
node types and fields, we've created a lossless CST that looks and feels like an
AST.

WWW: https://github.com/Instagram/LibCST