-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Add support for regex expressions #125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replaced the replacement string handling for $replace with a new parser for the match groups. I think there are too many sledge cases to do it reliably with splitting/etc. those tests pass now, haven't gotten to the failing tests using replacement functions.
Remaining test cases are passing. Evaluating the Value::Lambda (for the "replace with function call" syntax) apparently returns another Value::Lambda. So, I reused the trampoline loop from a different part of the evaluator to repeatedly evaluate until reaching a final result. |
Add support for regex expressions #96