bug-bison
[Top][All Lists]
Advanced

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

New line character is not matching in flex++ scanner


From: Krishna Murthy Gudipati
Subject: New line character is not matching in flex++ scanner
Date: Tue, 04 Jan 2005 10:55:55 +0530

Hello Laurence,

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"); }

We have used the flex and bison to generate 'C' scanner and parser and it
could recognize new characters in the input file. But due to some reentrant
issues we moved to flex++ and bison++ and generated C++ scanner and parser.
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 is because as such there is not difference id the
definition of regular expressions and the grammar which is defined for
flex/binson and flex++/bison++.

Please help me in this regard.

Regards,
Krishna






reply via email to

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