Re: [Python-Dev] Modifying Grammar/grammar and other foul acts

2010-04-01 Thread Gregg Lind
:42, schrieb Jeremy Hylton: > > On Sat, Mar 6, 2010 at 11:27 AM, Gregg Lind > wrote: > >> Python-devs, > >> > >> I'm writing to you for some help in understanding the Python grammar. > As an > >> excuse to deep dive into Python's tokeni

Re: [Python-Dev] Modifying Grammar/grammar and other foul acts

2010-03-06 Thread Gregg Lind
Sorry, re: question one, forgive the ill-formed question. I meant more, are the parser rules applied "first matching". Essentially trying to confirm that the parser is "top down" or "bottom up" or whether or not it even matters. Thanks for the tip -- it seems to be exactly what I want. To make

[Python-Dev] Modifying Grammar/grammar and other foul acts

2010-03-06 Thread Gregg Lind
Python-devs, I'm writing to you for some help in understanding the Python grammar. As an excuse to deep dive into Python's tokenizer / grammar, I decided (as a hideous, hideous joke) to want to allow braces where colons are allowed (as flow control). Starting from PEP 306 (and branch r311), I ha