[Compiler-sig] Re: Help with the AST re decorators

Neil Schemenauer nas at arctrix.com
Sat Apr 2 04:03:26 CEST 2005


On Fri, Apr 01, 2005 at 06:57:26PM -0700, Neil Schemenauer wrote:
> This is what I currently have:
> 
>         stmt = FunctionDef(decorator* decorators, identifier name,
>                            arguments args, stmt* body)
>              | ...
> 
>         decorator = (identifier name, arglist* args)
> 
>         
>         arglist = ArgList(expr* args, keyword* keywords, expr? starargs,
>                           expr? kwargs)

Argh, I should have included Call instead of FunctionDef:

        expr = Call(expr func, arglist args) 
             | ...

Sorry.

  Neil


More information about the Compiler-sig mailing list