A tricky lexer...
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Michel_Charpentier
Posted On:   Friday, May 20, 2005 04:05 PM

Hi all,

I'm using a language in which

(*
and
*)
represent comments (nothing unusual here) but
(*<*)
and
(*>*)
represent meta-comments. So, I need to ignore things like:

(* this is a comment *)


but also:

(*<*) this is a comment (*>*)


(For now, I don't care whether comments are "meta" or not.)

I'm struggling with the ANTLR lexer for this kind of comments. Any hint or help is welcome.

Thanks,

MC
About | Sitemap | Contact