Re: Python 3 grammar, function parameters

2010-07-13 Thread Junkman
A-ha! Thank you very much, Chris. Much appreciated. :-) Jay Chris Rebert wrote: > On Mon, Jul 12, 2010 at 3:32 PM, Junkman wrote: >> Greetings to Python users, >> >> I'm trying to parse Python code using the grammar supplied with the >> documentation set, and have a question on the grammar fo

Re: Python 3 grammar, function parameters

2010-07-12 Thread Chris Rebert
On Mon, Jul 12, 2010 at 3:32 PM, Junkman wrote: > Greetings to Python users, > > I'm trying to parse Python code using the grammar supplied with the > documentation set, and have a question on the grammar for function > parameters: > > funcdef: 'def' NAME parameters ['->' test] ':' suite > paramet

Python 3 grammar, function parameters

2010-07-12 Thread Junkman
Greetings to Python users, I'm trying to parse Python code using the grammar supplied with the documentation set, and have a question on the grammar for function parameters: funcdef: 'def' NAME parameters ['->' test] ':' suite parameters: '(' [typedargslist] ')' typedargslist: ((tfpdef ['=' test]