[antlr-interest] Grammar for block comments?

Jim Idle jimi at temporal-wave.com
Thu Jul 17 14:30:01 PDT 2008


On Fri, 2008-07-18 at 09:08 +1200, Gavin Lambert wrote:

> At 04:37 18/07/2008, Jim Idle wrote:
> >Using input:
> >
> >/* XYZ * */
> >SOME OTHER STUF F*/
> 
> My interpretation of what the OP has been saying is that the 
> problem input involves a group of adjacent asterisks within the 
> comment -- eg. something like this:
> 
> /*  **  */
> 
> or this:
> 
> /********/


Which also works perfectly with the same grammar i posted earlier.

jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080717/eaf5d319/attachment-0001.html 


More information about the antlr-interest mailing list