[antlr-interest] HTML Link grammar

Mark javamark at gmail.com
Wed Jul 14 10:48:55 PDT 2010


Hello,

I am slowly picking up Antlr, and I thought a nice example grammar
would be to process a html page throwing which sends all characters to
the hidden channel apart from any href's.

Ideally the grammar would be written such that it collects the href's
in an array.

I picked this example since I know how to do it in anything but Antlr.

Thoughts anyone?

Regards

Mark


More information about the antlr-interest mailing list