I want use coffeescript function syntax to write python lambda expression
so I modified the Grammar file.
```
atom: ('(' [yield_expr|testlist_comp|vararglist] ')' |
'[' [testlist_comp] ']' |
'{' [dictorsetmaker] '}' |
NAME | NUMBER | STRING+ | '...' | 'None' | 'True' | 'False')
trailer: '(' [arglist] ')' | '[' subscriptlist ']' | '.' NAME | '->' text
```
but when I write
```
(x,y=1)->x+y
```
the parser doesn't go into vararglist.
any help?
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com