[Python-Dev] funcdef grammar production (original) (raw)

Greg Ewing greg at cosc.canterbury.ac.nz
Mon Mar 15 18:54:52 EST 2004


Michael Hudson <mwh at python.net>:

Um, you do realise that this BNF is purely documentational? The real one is Grammar/Grammar in the source distribution, and lots of things that you might expect to happen there actually happen inside the compiler.

And even if something could be done in the parser, it might be desirable to leave it to the compiler if it can produce a more helpful error message.

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg at cosc.canterbury.ac.nz +--------------------------------------+



More information about the Python-Dev mailing list