[Python-Dev] add new lambda syntax (original) (raw)
Pynix Wang pynix.wang at gmail.com
Fri Jun 28 16:31:29 CEST 2013
- Previous message: [Python-Dev] Classes with ordered namespaces
- Next message: [Python-Dev] add new lambda syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20130628/60ed2cc9/attachment.html>
- Previous message: [Python-Dev] Classes with ordered namespaces
- Next message: [Python-Dev] add new lambda syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]