From e47667efb55927968ef667723d54ce654598cba6 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 13 Jul 2017 08:57:31 +0200 Subject: [PATCH] Make the 3.5 grammar more similar to its original. --- parso/python/grammar35.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parso/python/grammar35.txt b/parso/python/grammar35.txt index 96a7271..9acc7f5 100644 --- a/parso/python/grammar35.txt +++ b/parso/python/grammar35.txt @@ -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! -file_input: (NEWLINE | stmt)* ENDMARKER single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE +file_input: (NEWLINE | stmt)* ENDMARKER eval_input: testlist NEWLINE* ENDMARKER decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE @@ -136,7 +136,7 @@ arglist: argument (',' argument)* [','] # to our LL(1) parser. Even though 'test' includes '*expr' in star_expr, # we explicitly match '*' here, too, to give it proper precedence. # Illegal combinations and orderings are blocked in ast.c: -# multiple (test comp_for) arguements are blocked; keyword unpackings +# multiple (test comp_for) arguments are blocked; keyword unpackings # that precede iterable unpackings are blocked; etc. argument: ( test [comp_for] | test '=' test |