Commit Graph

23 Commits

Author SHA1 Message Date
Noa
ee8b11f5d2 Migrate to 2021 edition 2021-10-21 11:46:24 -05:00
Noa
8dd18d97be PyObjectRef -> &PyObj, &PyRef<T> -> &Py<T> 2021-10-21 16:49:01 +09:00
Noa
27540e1d35 Add unparse feature to ast 2021-10-17 21:55:27 -05:00
Noa
cde42dba26 Generate ast classes for top-level ast kinds, e.g. stmt 2021-10-17 21:54:52 -05:00
이성빈
d87d8a11ad remove unnecessary linebreak 2021-09-05 21:18:05 +09:00
Padraic Fanning
f833ba6ed3 Update num_bigint to 0.4.2
Fixes a compilation error with the latest nightlies.
2021-09-03 18:53:23 -04:00
Noah
d7d62bfde0 Fix nested folding 2021-04-05 10:47:47 -05:00
Noah
0a4141c778 Add an ast optimizer 2021-04-05 09:46:30 -05:00
Noah
d07dca789f Add the ast::fold::Fold trait, replacing MapAst 2021-04-04 17:52:19 -05:00
Noah
25ecd7c38b Upgrade dependencies 2021-03-25 08:06:56 -05:00
Noah
2ecc08f2c4 Add AST mapping, simplify Located Nodes 2021-01-14 12:37:38 -06:00
Noah
bd4e410519 Fix optional field stuff 2021-01-14 12:37:38 -06:00
Noah
d94e264201 Fix _attributes attr 2021-01-14 12:37:37 -06:00
Noah
bcf58d9091 Misc fixes 2021-01-14 12:37:37 -06:00
Noah
cd9f6806c3 Implement obj->ast functionality of the ast module 2021-01-14 12:37:37 -06:00
Noah
b76a0284c4 Implement ast->obj functionality of the ast module 2021-01-14 12:37:37 -06:00
Noah
b8aabb7bb7 Implement asdl in the ast and parser 2021-01-14 12:37:37 -06:00
Noah
0063c766b7 Copy Python.asdl and asdl.py and asdl_c.py as asdl_rs.py from CPython 3.9 2021-01-14 12:37:37 -06:00
pca006132
d04c0777fb formatting 2021-01-04 11:21:25 +08:00
pca006132
af3e7dee69 Implements AST Customization (#2388) 2021-01-04 10:33:22 +08:00
Batuhan Taskaya
a382284d30 PEP 498 compatability: parenthesized expressions for f-strings 2020-11-29 17:57:49 +03:00
Noah
4528f17210 compiler/porcelain wrapper 2020-11-07 15:43:23 -06:00
Noah
b3851c8eb8 Split the ast from the parser, remove compiler dep on parser 2020-11-07 15:43:23 -06:00