1.1 --- a/pyparser/data/Grammar-Lichen Sun Feb 26 14:29:36 2017 +0100
1.2 +++ b/pyparser/data/Grammar-Lichen Sun Feb 26 21:47:56 2017 +0100
1.3 @@ -48,7 +48,7 @@
1.4 exec_stmt: 'exec' expr ['in' test [',' test]]
1.5 assert_stmt: 'assert' test [',' test]
1.6
1.7 -compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | classdef
1.8 +compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | funcdef | classdef
1.9 if_stmt: 'if' test ':' suite ('elif' test ':' suite)* ['else' ':' suite]
1.10 while_stmt: 'while' test ':' suite ['else' ':' suite]
1.11 for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite]
1.12 @@ -57,8 +57,6 @@
1.13 ['else' ':' suite]
1.14 ['finally' ':' suite] |
1.15 'finally' ':' suite))
1.16 -with_stmt: 'with' with_item (',' with_item)* ':' suite
1.17 -with_item: test ['as' expr]
1.18 # NB compile.c makes sure that the default except clause is last
1.19 except_clause: 'except' [test [('as' | ',') test]]
1.20 suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT