IronLanguages / ironpython2

Implementation of the Python programming language for .NET Framework; built on top of the Dynamic Language Runtime (DLR).
http://ironpython.net
Apache License 2.0
1.07k stars 229 forks source link

how to get ast from python file? #807

Open syqlearning opened 2 years ago

syqlearning commented 2 years ago

Description

i'm using version 2.7.12 and NET. since i got python code file now, how can i get ast from it using ironpython? i know there got BuildAst api here but could any one show how to achieve that goal more specifically?

syqlearning commented 2 years ago

ps: wanna to parse python code using c#