[Tutor] parsing--is this right?

Paul Tremblay phthenry@earthlink.net
Mon, 10 Jun 2002 12:20:38 -0400


I have just stumbled across the concept of parsing and parsing
grammars, and wondered if I am using the right tool.

I haved downloaded and installed plex in order to parse a rtf
document. The rtf looks like this:

{\footnote {\i an italicized word} {\i maybe another italicized
word} text }

In order to parse this text, I use a counter to count the number
of open and closed curly brackets. I am following the tutorial in
doing this.

However, I am wondering if plex does things the wrong way. 

If I understand things correctly, you should not have to count
brackets. A parser should use the grammar to understand what
state you are in. 

I have looked at another example using the rtf example of another
parser, mxTextTools. This parser does not count tags at all.

I like plex because it was the only parser that I could get to
work! However, I am wondering if it lacks the power a parser
should have, and if I should devote my time to a better tool.

Thanks

Paul


-- 

************************
*Paul Tremblay         *
*phthenry@earthlink.net*
************************