summaryrefslogtreecommitdiff
path: root/Grammar
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-02-09 05:32:43 +0000
committerGuido van Rossum <guido@python.org>2007-02-09 05:32:43 +0000
commit452bf519a70c3db0e7f0d2540b1bfb07d9085583 (patch)
tree0dd96bd72a24f8e5330f8b1e778a0ee68b7c7c2d /Grammar
parent21298cfea6eedfe4318cd26c5afb12b766070851 (diff)
downloadcpython-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/Grammar4
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