[antlr-interest] case-insensitive parsing
Jim Idle
jimi at temporal-wave.com
Thu Apr 23 08:15:59 PDT 2009
Bob Sole wrote:
> Hi Andreas,
>
> Unfortunately that won't help me in this case, because I still need to
> be able to parse the contents of the comments. The overall aim is to
> extract Javadoc-style tags such as "@param" from the comment section
> and match them to procedure parameters, e.g.
>
> /** this procedure does nothing much
> @param aString this is a string
> @param anInt this is a number
> */
You need to do this with a separate island grammar called from your
lexer, it will be too difficult to do this in the one gramamr as they
are essentially two different languages.
Jim
More information about the antlr-interest
mailing list