jflex lexer problem
From: Aless (natre_dev_at_NetexploraPtoCom.nospam)
Date: 08/28/04
- Next message: Hal Rosser: "netbeans - or - Eclipse"
- Previous message: Kai Thomsen: "Re: Delphi to bytecode compiler"
- Next in thread: user_at_domain.invalid: "Re: jflex lexer problem"
- Reply: user_at_domain.invalid: "Re: jflex lexer problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Hal Rosser: "netbeans - or - Eclipse"
- Previous message: Kai Thomsen: "Re: Delphi to bytecode compiler"
- Next in thread: user_at_domain.invalid: "Re: jflex lexer problem"
- Reply: user_at_domain.invalid: "Re: jflex lexer problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]