Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e785fbc

Browse files
committed
Allow NEWLINE* after eval input.
1 parent d8b1d37 commit e785fbc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Grammar/Grammar

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
# Change log:
44

5+
# 27-Feb-92:
6+
# Allow NEWLINE* after eval input
7+
58
# 16-Jan-92:
69
# Added '*' as alternative for '+' in varargs syntax
710
# (Not sure which alternative is better yet.)
@@ -62,7 +65,7 @@
6265
single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
6366
file_input: (NEWLINE | stmt)* ENDMARKER
6467
expr_input: testlist NEWLINE
65-
eval_input: testlist ENDMARKER
68+
eval_input: testlist NEWLINE* ENDMARKER
6669

6770
funcdef: 'def' NAME parameters ':' suite
6871
parameters: '(' [varargslist] ')'

0 commit comments

Comments
 (0)