Genivia / RE-flex

A high-performance C++ regex library and lexical analyzer generator with Unicode support. Extends Flex++ with Unicode support, indent/dedent anchors, lazy quantifiers, functions for lex and syntax error reporting and more. Seamlessly integrates with Bison and other parsers.
https://www.genivia.com/doc/reflex/html
BSD 3-Clause "New" or "Revised" License
504 stars 85 forks source link

Drop RTTI requirement #161

Closed sgothel closed 1 year ago

sgothel commented 1 year ago

1st of all thank you for your work.

I tested your project within this little test project calc_infix2rpn.

After compiling your library w/ -fPIC I also needed to move from dynamic_cast to static_cast to allow not using RTTI, i.e. -fno-rtti. no_rtti.patch.txt

Not sure how to inject this patch using an option and w/o an ugly macro, so I just hard-patched it for now.

+++

I added the cmake integration file FindREflex.cmake in above project calc_infix2rpn, as it was posted here by KFAFSP, it is working well.

sgothel commented 1 year ago

@KFAFSP tagging you for FindREflex.cmake, see above

genivia-inc commented 1 year ago

Thank you for the feedback. This change is fine and will be part of the next update.