jflex lexer problem

From: Aless (natre_dev_at_NetexploraPtoCom.nospam)
Date: 08/28/04


Date: Sat, 28 Aug 2004 16:33:01 +0000 (UTC)

hi

i am working on a simple lexical analyzer with jflex

what i want is to remove the comments of a code of the form:
{ coment }
i build this patterns:

coment = "{"[^{]"}"
....
...

{coment} { stringout += ""}

stringout is where i save the formated text. It removes the comments but
instead of the comment it puts a blank line in the output like:

some code
{this is
    a comment}
more code

is formated to

some code

more code

how can i remove the comments and the blank lines completely?

thanks

--
Aless