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 List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
