Re: boost::regex: regex meta data or AST for regex?
Seth <[email protected]> Thu, 21 Jan 2021 02:09:55 +0100
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
Op 19-01-2021 om 19:07 schreef Frank Bergemann:
> Hi Seth,
>
> isn't Xpressive about static regexes at compile time, plus a wrapping
> for both: dynamic _and_ static regexes?
> How can that help to create an AST for a dynamic regular expression
> (string)?
It actually cannot (see https://stackoverflow.com/a/7659255/85371) but
it might do what you were hoping to achieve - I don't claim I understood
much of the goal.
Also, that's why I linked to the other answer there because it DOES
create an AST from dynamic regulare expressions (string).
https://stackoverflow.com/a/21419351/85371.
Right off the bat I sense confusion in the name ("RegexSplitter" -
regexes aren't split, they're _parsed_) and the way you attack the
grammar (which appears to be more about scanning than parsing?). Instead
of me poring over your code and making sense of your code you can look
at mine for inspiration
Sorry I can't be of more active help.
Good luck,
Seth