regexp-tree
regexp-tree copied to clipboard
Parser/generator: implement PCRE mode
Currently we support only JavaScript regexes. However, regexp-tree can be language-agnostic, and support any other formats/modes/syntaxes of regular expressions. Thus, transform
, and traverse
modules can be fully reused for any syntax.
E.g., a named capturing group in PCRE, and Python syntax is:
(?P<foo>bar)
Similarly, we should support other syntax specifics.