Regular expressions code generator
-
Hello, I'm looking for a library, that is able convert a regular expression to a c/c++ source code, which will parse an input string. Anyone heard of such a library? Regards, Alex
Don't try it, just do it! ;-)
-
Hello, I'm looking for a library, that is able convert a regular expression to a c/c++ source code, which will parse an input string. Anyone heard of such a library? Regards, Alex
Don't try it, just do it! ;-)
You might try investigating one of the parser generators out there to see if they can be configured to do the job. There is VisualParse (expensive commercial product) and some free ones at ‘sourceforge.net’. If it is an option, I would be tempted to use Regex++ to do the parsing, but I think you know about that already. Note: I have added this to my to-do list, as an expansion of my personal RE parser.
INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra