Re: [Python-Dev] PEP 306 changes (How to Change Python's Grammar)

2007-03-03 Thread Martin v. Löwis
Jack Diederich schrieb: > __ Parser/Python.asdl may need changes to match the Grammar. >Use Parser/asdl_c.py to regenerate Include/Python-ast.h On Unix, make will automatically run it when Python.asdl changes. > __ Python/Python-ast.c may need changes to create the AST >ob

Re: [Python-Dev] PEP 306 changes (How to Change Python's Grammar)

2007-03-01 Thread Guido van Rossum
Someone please check this in! On 3/1/07, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Jack Diederich wrote: > > __ Python/compile.c: You will need to create or modify the > >compiler_* functions for your productions. > > Python/symtable.c will likely also need attention at this point (it

Re: [Python-Dev] PEP 306 changes (How to Change Python's Grammar)

2007-03-01 Thread Nick Coghlan
Jack Diederich wrote: > __ Python/compile.c: You will need to create or modify the >compiler_* functions for your productions. Python/symtable.c will likely also need attention at this point (it handles the symbol collection pass that occurs before the actual compilation pass) Cheer

[Python-Dev] PEP 306 changes (How to Change Python's Grammar)

2007-02-28 Thread Jack Diederich
As I found when writing the class decorator patch PEP 306 hasn't been updated since the new AST was added. Here is a suggested replacement block for the Checklist section. AST hackers feel free to make suggestions. Checklist __ Grammar/Grammar: OK, you'd probably worked this one out :)