[antlr-interest] HTML Link grammar
jimi at temporal-wave.com
Wed Jul 14 12:21:31 PDT 2010
HTML is not a good target for parsing with ANTLR, you have to do it all in the lexer basically. I would pick something simpler to get going. There are quite a few sample grammars you can download and manipulate.
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Mark
> Sent: Wednesday, July 14, 2010 10:49 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] HTML Link grammar
> 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?
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
More information about the antlr-interest