"Intro to Pyparsing" Article at ONLamp

Dave Hansen iddw at hotmail.com
Mon Jan 30 17:39:06 EST 2006


On Mon, 30 Jan 2006 16:39:51 -0500 in comp.lang.python, Peter Hansen
<peter at engcorp.com> wrote:

>Christopher Subich wrote:
>> Using English, because that's the only language I'm fluent in, consider 
>> the sentence:
>> 
>> "The horse raced past the barn fell."
>> 
>> It's just one of many "garden path sentences," where something that 
>> occurs late in the sentence needs to trigger a reparse of the entire 
>> sentence.  
>
>I can't parse that at all.  Are you sure it's correct?  Aren't "raced" 
>and "fell" both trying to be verbs on the same subject?  English surely 
>doesn't allow that forbids that sort of thing. (<wink>)

I had a heck of a time myself.  Try "The horse that was raced..." and
see if it doesn't make more sense.

Regards,
                                        -=Dave

-- 
Change is inevitable, progress is not.



More information about the Python-list mailing list