skx/monkey

Add regular expression support

skx opened this issue · 1 comments

skx commented

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 commented

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