Re: Need help parsing with pyparsing...

2007-10-23 Thread Hendrik van Rooyen
"Just Another Victim of the Ambient Morality" wrote: > FAHRENHEIT 451 2000 Copies Sold > 1984 Book Of The Year > > The last example is actually okay but the first one is honestly > ambiguous. hey - Fahrenheit 451 - if my memory serves me correctly, by Ray Bradbury, is a classic of SF. - f

Re: Need help parsing with pyparsing...

2007-10-23 Thread Hendrik van Rooyen
"Paul McGuire" wrote: > By the way, are these possible data lines?: > > A Line With No Upper Case Words > A LINE WITH NO TITLE CASE WORDS > SOME UPPER CASE WORDS A Title That Begins With A One Letter Word That last one is a killer, and comes under the heading of "cruel and unusual". try this

Re: Need help parsing with pyparsing...

2007-10-22 Thread Just Another Victim of the Ambient Morality
"Paul McGuire" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Oct 22, 4:18 am, "Just Another Victim of the Ambient Morality" > <[EMAIL PROTECTED]> wrote: >> I'm trying to parse with pyparsing but the grammar I'm using is >> somewhat >> unorthodox. I need to be able to pars

Re: Need help parsing with pyparsing...

2007-10-22 Thread Paul McGuire
On Oct 22, 4:18 am, "Just Another Victim of the Ambient Morality" <[EMAIL PROTECTED]> wrote: > I'm trying to parse with pyparsing but the grammar I'm using is somewhat > unorthodox. I need to be able to parse something like the following: > > UPPER CASE WORDS And Title Like Words > > ...in

Re: Need help parsing with pyparsing...

2007-10-22 Thread Paul McGuire
On Oct 22, 4:18 am, "Just Another Victim of the Ambient Morality" <[EMAIL PROTECTED]> wrote: > I'm trying to parse with pyparsing but the grammar I'm using is somewhat > unorthodox. I need to be able to parse something like the following: > > UPPER CASE WORDS And Title Like Words > > ...in

Need help parsing with pyparsing...

2007-10-22 Thread Just Another Victim of the Ambient Morality
I'm trying to parse with pyparsing but the grammar I'm using is somewhat unorthodox. I need to be able to parse something like the following: UPPER CASE WORDS And Title Like Words ...into two sentences: UPPER CASE WORDS And Title Like Words I'm finding this surprisingly hard to do