Re: [Python-Dev] relation between Python.asdl and Tools/compiler/ast.txt

2010-01-08 Thread Martin v. Löwis
> I see. So if people want to analyze python code they have to use > other tools (like rope?) ? or use reflection ? Correct. One such tool might be the true Python compiler, along with the _ast module. Regards, Martin ___ Python-Dev mailing list Python-

Re: [Python-Dev] relation between Python.asdl and Tools/compiler/ast.txt

2010-01-08 Thread Yoann Padioleau
On Jan 7, 2010, at 1:16 PM, Martin v. Löwis wrote: >>> astgen.py is not used to process asdl files; ast.txt lives right >>> next to astgen.py. Instead, the asdl file is processed by >>> Parser/asdl_c.py. >> >> Yes, I know that. That's why I asked about the relation between >> ast.txt and Python.

Re: [Python-Dev] relation between Python.asdl and Tools/compiler/ast.txt

2010-01-07 Thread Martin v. Löwis
>> astgen.py is not used to process asdl files; ast.txt lives right >> next to astgen.py. Instead, the asdl file is processed by >> Parser/asdl_c.py. > > Yes, I know that. That's why I asked about the relation between > ast.txt and Python.adsl. If internally the parser uses the .adsl, but > expose

Re: [Python-Dev] relation between Python.asdl and Tools/compiler/ast.txt

2010-01-07 Thread Yoann Padioleau
On Jan 7, 2010, at 12:31 PM, Martin v. Löwis wrote: >> I would like to use astgen.py to generate python classes corresponding to >> the >> AST of something I have defined in a .asdl file, along the line of what is >> apparently done for the python AST itself. I thought astgen.py would >> take a

Re: [Python-Dev] relation between Python.asdl and Tools/compiler/ast.txt

2010-01-07 Thread Martin v. Löwis
> I would like to use astgen.py to generate python classes corresponding to the > AST of something I have defined in a .asdl file, along the line of what is > apparently done for the python AST itself. I thought astgen.py would > take as an argument a .asdl file, but apparently it instead process

[Python-Dev] relation between Python.asdl and Tools/compiler/ast.txt

2010-01-07 Thread Yoann Padioleau
Hi, I would like to use astgen.py to generate python classes corresponding to the AST of something I have defined in a .asdl file, along the line of what is apparently done for the python AST itself. I thought astgen.py would take as an argument a .asdl file, but apparently it instead process a f