A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-January/097092.html below:

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

[Python-Dev] relation between Python.asdl and Tools/compiler/ast.txt [Python-Dev] relation between Python.asdl and Tools/compiler/ast.txt"Martin v. Löwis" martin at v.loewis.de
Thu Jan 7 21:31:21 CET 2010
> 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 file
> called ast.txt. Where does this file come from ? Is it generated from
> Python.asdl ?

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.

HTH,
Martin

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4