Kelvin Sherlock
ce1a36eba5
add regular expression support for evaluate, if, etc.
...
eg:
evaluate abc =~ /(abc)®4/ # sets the '@4' environment variable.
evaluate abc !~ /[aA]bc/
MPW regular expressions are converted to c++11 std::regex regular expressions and evaluated.
Sadly, the // regular expression syntax interferes with unix-paths (if the / count is odd). quoting or ∂-escaping the /s is therefore necessary.
file globbing is not yet implemented.
2022-11-22 17:22:49 -05:00
Kelvin Sherlock
fdf33c69b7
token support for regular expression strings /.../ and \...\. Also tokenizer support for =~ and !~ operators.
2022-11-02 21:42:25 -04:00
Kelvin Sherlock
f125b533f7
Squashed commit of the following:
...
commit f0944a89f27e44b1764988806e655f09764e80df
Author: Kelvin Sherlock <ksherlock@gmail.com>
Date: Tue Aug 30 12:24:08 2016 -0400
exit throws execution of input error w/ possible 0 value. catch it.
commit 9e7f9c1ae049aa26513413f4767268b47ee22e98
Author: Kelvin Sherlock <ksherlock@gmail.com>
Date: Tue Aug 30 12:23:21 2016 -0400
builtins - more consistent argument handling.
commit be4c1c902f5a3a3f01e92ae52c7d6cc5d8731b65
Author: Kelvin Sherlock <ksherlock@gmail.com>
Date: Tue Aug 30 12:23:01 2016 -0400
.
commit 68d0c29fec112c6e7bc3a672b41eb7eb758a8941
Author: Kelvin Sherlock <ksherlock@gmail.com>
Date: Tue Aug 30 12:22:51 2016 -0400
exit command.
commit 25b0a7f7da9220b03026123bb5072c2da1d73fde
Author: Kelvin Sherlock <ksherlock@gmail.com>
Date: Tue Aug 30 12:21:16 2016 -0400
builtin quit command.
2016-08-30 12:25:43 -04:00
Kelvin Sherlock
f8c596668f
lunix/gcc updates.
2016-08-05 22:00:48 -04:00
Kelvin Sherlock
47af010ba5
mpw errors
2016-07-27 14:04:57 -04:00
Kelvin Sherlock
322a32af65
support for Loop ... End, Break, and Continue.
2016-06-15 23:01:03 -04:00
Kelvin Sherlock
0dfecbd520
control-c support
2016-02-05 13:19:20 -05:00
Kelvin Sherlock
6d9e5dc78c
throw error for {exit}
2016-02-02 16:19:13 -05:00