summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-07-05 20:05:43 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-07-05 20:05:43 (GMT)
commit690959f1454a0db9115bbdc0140a67eeec79e0d2 (patch)
treea2f05153de0e10db80bdf3516899e73d7b7f258f /Grammar
parent9273f80982bb228450eddc46eab473989ab03d97 (diff)
downloadcpython-690959f1454a0db9115bbdc0140a67eeec79e0d2.zip
cpython-690959f1454a0db9115bbdc0140a67eeec79e0d2.tar.gz
cpython-690959f1454a0db9115bbdc0140a67eeec79e0d2.tar.bz2
untabify
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/Grammar12
1 files changed, 6 insertions, 6 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar
index 51e7f22..740d7be 100644
--- a/Grammar/Grammar
+++ b/Grammar/Grammar
@@ -11,9 +11,9 @@
# "How to Change Python's Grammar"
# Start symbols for the grammar:
-# single_input is a single interactive statement;
-# file_input is a module or sequence of commands read from an input file;
-# eval_input is the input for the eval() and input() functions.
+# single_input is a single interactive statement;
+# file_input is a module or sequence of commands read from an input file;
+# eval_input is the input for the eval() and input() functions.
# NB: compound_stmt in single_input is followed by extra NEWLINE!
single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
file_input: (NEWLINE | stmt)* ENDMARKER
@@ -68,9 +68,9 @@ while_stmt: 'while' test ':' suite ['else' ':' suite]
for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite]
try_stmt: ('try' ':' suite
((except_clause ':' suite)+
- ['else' ':' suite]
- ['finally' ':' suite] |
- 'finally' ':' suite))
+ ['else' ':' suite]
+ ['finally' ':' suite] |
+ 'finally' ':' suite))
with_stmt: 'with' with_item (',' with_item)* ':' suite
with_item: test ['as' expr]
# NB compile.c makes sure that the default except clause is last