Boy, do I feel sheepish. Yes, what I wanted were Literals. That
clarifies things greatly. Thank you.
Also, I went browsing around further, and found on O'reilly's CodeZoo:
Most of the methods in the pyparsing module are very easy to figure
out. Forward() might not be as obvious. To get going with
Sorry, got a bit of formatting wrong. Messed up what I was really
trying to point out.
container_tag << Group(open_tag + OneOrMore(container_tag | content)
# ^name^recursive reference
--
http://mail.python.org/mailman/listinfo/python-list
Looks like the fundamental error was in my understanding.
Boy, do I feel sheepish. Yes, what I wanted were Literals.
That clarifies things greatly. Thank you.
Also, I went browsing around further, and found on O'reilly's CodeZoo:
Most of the methods in the pyparsing module are very easy to figure
"the.theorist" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey, I'm trying my hand and pyparsing a log file (named l.log):
> FIRSTLINE
>
> PROPERTY1 DATA1
> PROPERTY2 DATA2
>
> PROPERTYS LIST
> ID1 data1
> ID2 data2
>
> ID1 data11
>
Hey, I'm trying my hand and pyparsing a log file (named l.log):
FIRSTLINE
PROPERTY1 DATA1
PROPERTY2 DATA2
PROPERTYS LIST
ID1 data1
ID2 data2
ID1 data11
ID2 data12
SECTION
So I wrote up a small bit of code (named p.py):
from pyparsing im