[antlr-interest] Noob question about HTML.g
Sean Walker
lists at surfmy.net
Mon Jun 28 08:40:41 PDT 2004
I'm a complete noob and I'm trying to get a handle on ANTLR. The docs
are great, but a bit overwhelming and I'm looking for a place to start
to find out how to do the following.
I've read through the HTML.g C# example that comes with the tarball and
found that it is very similar to what I need. Basically, I need to
examine an HTML file, break it down into a logical tree that I can
manipulate, adding, deleting, and altering content on the fly. If I have
<div class="test">Stuff here</div> I would want to replace "Stuff here"
with something else depending upon the name given to "class". This
requires that I get at the values of ATTR in HTML.g at the parser level,
if I am correct. This also requires building a tree that contains all
these nodes. I have looked at the tree docs and can't understand them,
so I don't even know if I'm heading in the wrong direction or not. I
basically understand the syntax of a grammar, but much of it eludes me
as of yet.
Oh, I've never worked with any tools of this sort before. I mean it when
I say complete noob. ;)
Thanks!
--
Sean Walker
http://sean.surfmy.net/
http://sacwifi.net/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list