Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse regex to SimpleRegex #7

Open
soasme opened this issue Sep 2, 2017 · 1 comment
Open

Parse regex to SimpleRegex #7

soasme opened this issue Sep 2, 2017 · 1 comment

Comments

@soasme
Copy link
Member

soasme commented Sep 2, 2017

The proposal here is to parse and analyse the structure of regex expression to SimpleRegex expression.
It was enlightened an email sent by Adalbert Arsen. I endorse this plan because it's quite educative for regex learners & sounds like a good tool to debug complicated regex expression.

@Clara-Brandt
Copy link

I see that this issue is about 4 years old now, and I'm not sure if anyone is currently working on this project, but I've written some python and javascript code that does essentially this (it's kind've like a simple compiler). It works in most simple cases (there's just a couple of SRL flags and keywords that aren't implemented) but sometimes has to resort to using the "raw" method where certain meanings can't be translated. There are also cases where I had to translate to a more complicated SRL expression because a simple translation wasn't possible (character classes with a mix of ranges and elements.) Since I've been exploring a lot of potential regex cases I've come across some SRL bugs along the way, I'll open a separate issue for those. Please let me know if you have any interest in collaborating!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants