[antlr-interest] HTML Link grammar
Jim Idle
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.
Jim
> -----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
>
> 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
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address
More information about the antlr-interest
mailing list