Pyparsing Question
castironpi
castironpi at gmail.com
Fri May 16 14:01:16 EDT 2008
On May 16, 10:45 am, Ant <ant... at gmail.com> wrote:
> Hi Paul,
>
> > LineStart *really* wants to be parsed at the beginning of a line.
> > Your textline reads up to but not including the LineEnd. Try making
> > these changes.
>
> > 1. Change textline to:
>
> > textline = pp.Combine(
> > pp.Group(pp.Word(pp.alphas, pp.printables) + pp.restOfLine)) +
> > \
> > pp.LineEnd().suppress()
>
> Ah - so restOfLine excludes the actual line ending does it?
>
> > 2. Change comb to:
>
> > comb = head + parser
>
> Yes - I'd got this originally. I added the garbage to try to fix the
> problem and forgot to take it back out! Thanks for the advice - it works
> fine now, and will provide a base for extending the list format.
>
> Thanks,
>
> Ant...
There is a possibility that spirals can come from doubles, which could
be non-trivially useful, in par. in the Java library. I won't see a
cent. Can anyone start a thread to spin letters, and see what the
team looks like? I want to animate spinners. It's across
dimensions. (per something.) Swipe a cross in a fluid. I'm draw
crosses. Animate cubes to draw crosses. I.e. swipe them.
More information about the Python-list
mailing list