1.1 --- a/pyparser/data/Grammar-Lichen Mon Jan 08 00:13:18 2018 +0100
1.2 +++ b/pyparser/data/Grammar-Lichen Mon Jan 08 00:30:23 2018 +0100
1.3 @@ -11,10 +11,13 @@
1.4
1.5 funcdef: 'def' NAME parameters ':' suite
1.6 parameters: '(' [varargslist] ')'
1.7 +# NOTE: Remove * and ** support.
1.8 varargslist: ((fpdef ['=' test] ',')*
1.9 ('*' NAME [',' '**' NAME] | '**' NAME) |
1.10 fpdef ['=' test] (',' fpdef ['=' test])* [','])
1.11 -fpdef: NAME | '(' fplist ')'
1.12 +# NOTE: Replace with flat parameter lists?
1.13 +# Supporting .name for attribute assignment convenience.
1.14 +fpdef: NAME | '.' NAME | '(' fplist ')'
1.15 fplist: fpdef (',' fpdef)* [',']
1.16
1.17 stmt: simple_stmt | compound_stmt