ref: 4b9cb1eb53a95b6572ee642e8bdee4a5f30a27d9
parent: 4294b05efc28f9f70ae4c9bd6801080dde546c95
parent: ea53ce07cf24d7dbed6e164271ac61e125e4406c
author: Ori Bernstein <[email protected]>
date: Fri Jan 24 18:05:33 EST 2014
Merge branch 'master' of git+ssh://git.eigenstate.org/git/ori/libregex
--- a/interp.myr
+++ b/interp.myr
@@ -7,6 +7,7 @@
const search : (re : regex#, str : byte[:] -> std.option(byte[:][:]))
;;
+/* Ugly: for performance. std.option() should be used instead when unions get faster. */
const Zthr = 0 castto(rethread#)
const exec = {re, str
@@ -136,8 +137,8 @@
thr.ip++
;;
/*
- Non-consuming. All of these recursively call step() until
- exactly one byte is consumed from the string.
+ Non-consuming. All of these return false, and expect step to be
+ called again until exactly one byte is consumed from the string.
*/
| `Ibol:
trace(re, thr, "\t%z:\tBol\n", thr.ip)