[Python-checkins] python/nondist/sandbox/ast python.asdl,1.16,1.17

bckfnn@sourceforge.net bckfnn@sourceforge.net
Thu, 18 Apr 2002 11:55:41 -0700


Update of /cvsroot/python/python/nondist/sandbox/ast
In directory usw-pr-cvs1:/tmp/cvs-serv22589

Modified Files:
	python.asdl 
Log Message:
Added some toplevel productions. Names are taken from the compiler
package.

The 'Suite' production is an experiment that so far have been very useful
for Jython, I'm not yet sure that it should stay.



Index: python.asdl
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/ast/python.asdl,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** python.asdl	18 Apr 2002 18:49:33 -0000	1.16
--- python.asdl	18 Apr 2002 18:55:38 -0000	1.17
***************
*** 4,7 ****
--- 4,12 ----
  {
  	mod = Module(stmt* body)
+ 	    | Interactive(stmt body)
+ 	    | Expression(expr body)
+ 
+ 	    -- not really an actual node but usefull in Jython's typesystem.
+ 	    | Suite(stmt* body)
  
  	stmt = FunctionDef(identifier name, arguments args, stmt* body)