[Python-checkins] python/dist/src/Grammar Grammar, 1.47.2.2, 1.47.2.3

nascheme at users.sourceforge.net nascheme at users.sourceforge.net
Fri Apr 15 04:18:28 CEST 2005


Update of /cvsroot/python/python/dist/src/Grammar
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7321/Grammar

Modified Files:
      Tag: ast-branch
	Grammar 
Log Message:
Implement the new 'class foo(): pass' syntax.  Tweak the grammar.mak file so
graminit.c can be built on Windows machines.  Closes SF patch #1176019.


Index: Grammar
===================================================================
RCS file: /cvsroot/python/python/dist/src/Grammar/Grammar,v
retrieving revision 1.47.2.2
retrieving revision 1.47.2.3
diff -u -d -r1.47.2.2 -r1.47.2.3
--- Grammar	7 Jan 2005 06:57:41 -0000	1.47.2.2
+++ Grammar	15 Apr 2005 02:18:25 -0000	1.47.2.3
@@ -99,7 +99,7 @@
 testlist_safe: test [(',' test)+ [',']]
 dictmaker: test ':' test (',' test ':' test)* [',']
 
-classdef: 'class' NAME ['(' testlist ')'] ':' suite
+classdef: 'class' NAME ['(' [testlist] ')'] ':' suite
 
 arglist: (argument ',')* (argument [',']| '*' test [',' '**' test] | '**' test)
 argument: [test '='] test [gen_for] # Really [keyword '='] test



More information about the Python-checkins mailing list