dcsimg
How to print skipped portion of the input ?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kishore_Tigalapalli
Posted On:   Monday, August 22, 2005 06:34 AM

I have this comment part in the parser ML_COMMENT :      "/*"      (      options {generateAmbigWarnings=false;}      :          { LA(2)!='/' }? '*'      |     ' ' ' ' {newline();}      |     ' ' {newline();}      |     ' ' {newline();}      |     ~('*'|' '|' ')      )*      "*/"      {$setType(Token.SKIP);}      //{newline();}      ; Is there any way I can print my comment to the screen ?? Thanks, Kishore    More>>

I have this comment part in the parser



ML_COMMENT :

     "/*"

     (

     options {generateAmbigWarnings=false;}

     :

         { LA(2)!='/' }? '*'

     |     '
' '
' {newline();}

     |     '
' {newline();}

     |     '
' {newline();}

     |     ~('*'|'
'|'
')

     )*

     "*/"

     {$setType(Token.SKIP);}

     //{newline();}

     ;



Is there any way I can print my comment to the screen ??



Thanks,

Kishore

   <<Less
About | Sitemap | Contact