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

Add regular expression support #53

Closed
skx opened this issue Nov 7, 2019 · 1 comment · Fixed by #54
Closed

Add regular expression support #53

skx opened this issue Nov 7, 2019 · 1 comment · Fixed by #54
Assignees

Comments

@skx
Copy link
Owner

skx commented Nov 7, 2019

This should work:

 if ( "Steve" ~= /steve/i ) {
       ..

We should also see:

  print( type( /foo/ ) ) ;   -> "regexp"

(So it is a distinct type, not a string.)

@skx skx self-assigned this Nov 7, 2019
@skx
Copy link
Owner Author

skx commented Nov 7, 2019

Most of the difficulty here is in the parser; the actual job is easy enough.

@skx skx mentioned this issue Nov 9, 2019
@skx skx closed this as completed in #54 Nov 11, 2019
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

Successfully merging a pull request may close this issue.

1 participant