Flython

Christopher T King squirrel at WPI.EDU
Mon Aug 16 15:11:56 EDT 2004


On Mon, 16 Aug 2004, Terry Reedy wrote:

> The grammar in the Ref Manual, which is collected together in the above
> file, is intended and used for human comsumption.  The equivalent but not
> identical grammar in a source code file is intended and used for
> parser-generator comsumption.

Ahh... that makes sense.  I assumed they were one in the same; 
ref/grammar.txt was just more readily accessible at the time (read: I was 
lazy).

> I don't know whether AST trees exactly match the parser grammarr or if they
> effectively follow a third form, hopefully also exactly equivalent.

A quick glance through Grammar/Grammar shows that it seems to match up 
exactly to the AST trees, though I'll have to play with it to be sure.

Thanks!




More information about the Python-list mailing list