Fix the grammar, with Reinhold's approval.

This commit is contained in:
Guido van Rossum 2005-05-11 21:29:16 +00:00
parent b8122feb32
commit cd4723bc31
1 changed files with 8 additions and 5 deletions

View File

@ -81,11 +81,14 @@ Changes to the grammar
would have to become
try_stmt: ('try' ':' suite (except_clause ':' suite)+
['else' ':' suite] ['finally' ':' suite] |
'try' ':' suite (except_clause ':' suite)*
['else' ':' suite] 'finally' ':' suite)
try_stmt: 'try' ':' suite
(
(except_clause ':' suite)+
['else' ':' suite]
['finally' ':' suite]
|
'finally' ':' suite
)
Implementation