Fixed issues with the Python3.4 grammar file.

The order of symbols matters. 'file_input' needs to be the first symbol.
This commit is contained in:
Dave Halter
2014-10-17 01:34:47 +02:00
parent ae8969a0d1
commit 19acdd32b7
5 changed files with 27 additions and 13 deletions
+1 -1
View File
@@ -15,8 +15,8 @@
# file_input is a module or sequence of commands read from an input file;
# eval_input is the input for the eval() 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
single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
eval_input: testlist NEWLINE* ENDMARKER
decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE