]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Allow NEWLINE* after eval input.
authorGuido van Rossum <guido@python.org>
Wed, 4 Mar 1992 16:41:24 +0000 (16:41 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 4 Mar 1992 16:41:24 +0000 (16:41 +0000)
Grammar/Grammar

index a93d3e224fd71ba70420684ed5de5a4b6902186c..84f289841156e3c8624e9cabd12d1b215374b399 100644 (file)
@@ -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] ')'