Closed harshakm-50063 closed 1 year ago
I was out of town, so thank you for your patience.
yytext
is always an 8 bit string.char32_t*
data into a std::stringstream
perhaps? There are ways to define a stream that can be used with reflex::Input
see e.g. reflex/include/reflex/input.h for examples.yyscanner
generated. There is a #define yyscanner this
in flexlexer.h to enable reflex to be used with legacy Flex and lex code. But if the compiled legacy code has yyscanner
variables or arguments then those need to be changed. Thank you for your response.
Since I posted this issue, we have moved away from Flex compatibility based options to directly using reflex. Few issues have got solved due to that. Regarding point (3), the reflex still generates the complete class declaration in header as well as cpp file. however, cpp file has implementation as well. This we have been able to overcome using some header order, where we ensure that the generated .cpp never includes the generated header (While generated header is used by our other code). Regarding point (4), unused macros are NOT errors. they are produced as warnings. But we have compiler setting with -Wall where all warnings are produced and we have a stringent standard to have a clean compilation with zero warnings. Again, currently, by doing a dummy usage of these macros in .l file (Which gets generated, we have been able to resolve this issue.
All other points have got solved due to non-flex compatibility mode we have moved to.
Thanks again for your response.
Regards, Harsha Kodnad
Hi,
We have been having few issues and hence some clarifications on using reflex for our projects.
Regards, Harsha Kodnad Tally Solutions Pvt. Ltd.