[Python-checkins] python/nondist/sandbox/ast python.asdl,1.10,1.11

bckfnn@sourceforge.net bckfnn@sourceforge.net
Sun, 14 Apr 2002 03:10:05 -0700


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

Modified Files:
	python.asdl 
Log Message:
Added orelse to TryExcept and body to except. Made name an assign'able.



Index: python.asdl
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/ast/python.asdl,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** python.asdl	14 Apr 2002 09:23:01 -0000	1.10
--- python.asdl	14 Apr 2002 10:10:02 -0000	1.11
***************
*** 24,28 ****
  	      -- 'type' is a bad name
  	      | Raise(expr? type, expr? inst, expr? tback)
! 	      | TryExcept(stmt* body, except* handlers)
  	      | TryFinally(stmt* body, stmt* finalbody)
  	      | Assert(expr test, expr? msg)
--- 24,28 ----
  	      -- 'type' is a bad name
  	      | Raise(expr? type, expr? inst, expr? tback)
! 	      | TryExcept(stmt* body, except* handlers, stmt* orelse)
  	      | TryFinally(stmt* body, stmt* finalbody)
  	      | Assert(expr test, expr? msg)
***************
*** 83,87 ****
  	-- not sure what to call the first argument for raise and except
  
! 	except = (expr type, identifier? name)
  
  	-- XXX need to handle 'def f((a, b)):'
--- 83,87 ----
  	-- not sure what to call the first argument for raise and except
  
! 	except = (expr? type, assign? name, stmt* body)
  
  	-- XXX need to handle 'def f((a, b)):'