summaryrefslogtreecommitdiff
path: root/lib/regex
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-14 23:27:06 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-14 23:27:06 -0800
commitf5a1454387098fa3abb7bf95f4123e1fac85cb7d (patch)
treec5410430516ebf119d8139c8b599732cbd545d51 /lib/regex
parent607b2662bc1093833bfea0c49236f098271cf348 (diff)
downloadmc-f5a1454387098fa3abb7bf95f4123e1fac85cb7d.tar.gz
Initial support for void as an expression.
Diffstat (limited to 'lib/regex')
-rw-r--r--lib/regex/compile.myr6
-rw-r--r--lib/regex/interp.myr2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/regex/compile.myr b/lib/regex/compile.myr
index 77d7814..3cee04b 100644
--- a/lib/regex/compile.myr
+++ b/lib/regex/compile.myr
@@ -189,7 +189,7 @@ const rtinsert = {rt, lo, hi
std.assert(lo.len == hi.len, "range sizes differ")
if lo.len == 0
rt.end = true
- ->
+ -> void
;;
n = rt.ranges.len
@@ -362,7 +362,7 @@ const append = {re, insn
/* instruction dump */
const idump = {re
if !re.debug
- ->
+ -> void
;;
for var i = 0; i < re.proglen; i++
std.put("{}:\t", i)
@@ -394,7 +394,7 @@ const idump = {re
/* AST dump */
const dump = {re, t, indent
if !re.debug
- ->
+ -> void
;;
for var i = 0; i < indent; i++
std.put(" ")
diff --git a/lib/regex/interp.myr b/lib/regex/interp.myr
index f8223eb..dafe582 100644
--- a/lib/regex/interp.myr
+++ b/lib/regex/interp.myr
@@ -229,7 +229,7 @@ const fork = {re, thr, ip, curip, mstart, mend
var thr
if ip == curip /* loop detection */
- ->
+ -> void
;;
thr = mkthread(re, ip)
thr.next = re.runq