[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New line character is not matched in flex++ scanner

From: Krishna Murthy Gudipati
Subject: New line character is not matched in flex++ scanner
Date: Wed, 05 Jan 2005 10:40:00 +0530

Hello Friends,

Greetings !!

I have  a peculiar problem with the flex++.

I have a set of regular expressions for flex which includes rule to
recognise the new line character like :

[\n]          { printf("ENDLINE"); }

Initially we have used the flex to generate 'C' scanner and the scanner
could recognize the new line characters in the input file. But due to some
reentrant issues we moved to flex++ and generated C++ scanner. The problem
is the flexx++ generated scanner is not recognizing the '\n' character at
the end of the line in the input file. I am really wondering what is this
problem. As such there is no difference in the definition of regular
expressions which are defined for flex and flex++.

Please help me in this regard.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]