summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-03-04 16:41:24 (GMT)
committerGuido van Rossum <guido@python.org>1992-03-04 16:41:24 (GMT)
commite785fbcfa7f25feaf3673b9666a80d786e46448c (patch)
treed43dff04bbaaa9e275c0b55e8c4e84eafbf0ef45 /Grammar
parentd8b1d37bd89526509f391c69f33a0c547bd1caf9 (diff)
downloadcpython-e785fbcfa7f25feaf3673b9666a80d786e46448c.zip
cpython-e785fbcfa7f25feaf3673b9666a80d786e46448c.tar.gz
cpython-e785fbcfa7f25feaf3673b9666a80d786e46448c.tar.bz2
Allow NEWLINE* after eval input.
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/Grammar5
1 files changed, 4 insertions, 1 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar
index a93d3e2..84f2898 100644
--- a/Grammar/Grammar
+++ b/Grammar/Grammar
@@ -2,6 +2,9 @@
# Change log:
+# 27-Feb-92:
+# Allow NEWLINE* after eval input
+
# 16-Jan-92:
# Added '*' as alternative for '+' in varargs syntax
# (Not sure which alternative is better yet.)
@@ -62,7 +65,7 @@
single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
file_input: (NEWLINE | stmt)* ENDMARKER
expr_input: testlist NEWLINE
-eval_input: testlist ENDMARKER
+eval_input: testlist NEWLINE* ENDMARKER
funcdef: 'def' NAME parameters ':' suite
parameters: '(' [varargslist] ')'