I need to create a regex parser for a project and I am using ANTLR v3 to do this. I am trying to find an up-to-date, Perl6-like regex grammar. Does anyone have a source? Googling for this has been difficult for some reason.
By no means a complete coverage of Perl 6 PCRE's grammar, but it's a start: https://github.com/bkiers/PCREParser
A bit of a late update, I know, but it may be of interest to future visitors of this Q&A.
I've updated the grammar to conform more closely to the PCRE specs. Before delving in the code on Github, you can give the generated parser a test on the page: pcreparser.appspot.com
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With