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
user@domain.invalid - 29 Aug 2004 23:09 GMT
Maybe you should include the prefixing and
postfixing blanks in your pattern.
> hi
>
[quoted text clipped - 30 lines]
> --
> Aless