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

2010-04-01 Thread Nick Coghlan
Gregg Lind wrote: > Thank you for the advice everyone. This seed has finally born (rotten) > fruit at: > > http://writeonly.wordpress.com/2010/04/01/whython-python-for-people-who-hate-whitespace/ > http://bitbucket.org/gregglind/python-whython3k/ Nicely done :) Cheers, Nick. -- Nick Coghlan

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

2010-04-01 Thread Gregg Lind
Thank you for the advice everyone. This seed has finally born (rotten) fruit at: http://writeonly.wordpress.com/2010/04/01/whython-python-for-people-who-hate-whitespace/ http://bitbucket.org/gregglind/python-whython3k/ On Fri, Mar 12, 2010 at 4:13 AM, Georg Brandl wrote: > Am 09.03.2010 14:42,

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

2010-03-12 Thread Georg Brandl
Am 09.03.2010 14: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 tokenizer / grammar, I decided (as a >> hideous, hideous joke) to

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

2010-03-09 Thread 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 tokenizer / grammar, I decided (as a > hideous, hideous joke) to want to allow braces where colons are allowed (as

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

2010-03-06 Thread Greg Ewing
Gregg Lind wrote: 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. I think pgen would complain if you had two

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

2010-03-06 Thread Guido van Rossum
On Sat, Mar 6, 2010 at 10:26 AM, Gregg Lind wrote: > 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. That's

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

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

2010-03-06 Thread Martin v. Löwis
> 1.) I assume the Grammar/grammar is read top to bottom. Confirm? Confirm - but this is not surprising: *any* source file is typically read from top to bottom. Randoma access reading is typically done for binary files, only. So you must be asking something else, but I can't guess what that mig

[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