diff options
author | Guido van Rossum <guido@python.org> | 2007-02-09 05:32:43 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-09 05:32:43 +0000 |
commit | 452bf519a70c3db0e7f0d2540b1bfb07d9085583 (patch) | |
tree | 0dd96bd72a24f8e5330f8b1e778a0ee68b7c7c2d /Grammar | |
parent | 21298cfea6eedfe4318cd26c5afb12b766070851 (diff) | |
download | cpython-git-452bf519a70c3db0e7f0d2540b1bfb07d9085583.tar.gz |
Essential changes for print function changes.
Lib will be changed in a separate run.
Diffstat (limited to 'Grammar')
-rw-r--r-- | Grammar/Grammar | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar index 2f07b5edd6..7606d6e12a 100644 --- a/Grammar/Grammar +++ b/Grammar/Grammar @@ -38,15 +38,13 @@ vfplist: vfpdef (',' vfpdef)* [','] stmt: simple_stmt | compound_stmt simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE -small_stmt: (expr_stmt | print_stmt | del_stmt | pass_stmt | flow_stmt | +small_stmt: (expr_stmt | del_stmt | pass_stmt | flow_stmt | import_stmt | global_stmt | assert_stmt) expr_stmt: testlist (augassign (yield_expr|testlist) | ('=' (yield_expr|testlist))*) augassign: ('+=' | '-=' | '*=' | '/=' | '%=' | '&=' | '|=' | '^=' | '<<=' | '>>=' | '**=' | '//=') # For normal assignments, additional restrictions enforced by the interpreter -print_stmt: 'print' ( [ test (',' test)* [','] ] | - '>>' test [ (',' test)+ [','] ] ) del_stmt: 'del' exprlist pass_stmt: 'pass' flow_stmt: break_stmt | continue_stmt | return_stmt | raise_stmt | yield_stmt |