ref: 0083fb4ab61c40d2117948840c5be31bba758eb4
parent: b00a84d15d8e3dcf8a2558d2d3f615c738864125
author: Ori Bernstein <[email protected]>
date: Tue Oct 22 20:31:27 EDT 2013
We no longer generate junk asm. Don't remove it.
--- a/interp.myr
+++ b/interp.myr
@@ -17,8 +17,8 @@
re.thr[0].mstart = std.slalloc(re.nmatch)
re.thr[0].mend = std.slalloc(re.nmatch)
for i = 0; i < re.nmatch; i++
- re.thr[0].mstart[i] = 0
- re.thr[0].mend[i] = 0
+ re.thr[0].mstart[i] = -1
+ re.thr[0].mend[i] = -1
;;
while re.nthr > 0
for i = 0; i < re.nthr; i++
--- a/main.myr
+++ b/main.myr
@@ -3,7 +3,7 @@
const main = {
var found
- match regex.compile("(a|b)*s*")
+ match regex.compile("a*b*")
`std.Success re:
found = regex.exec(re, "a")
std.put("Found = %t: len = %z\n", found, re.strp)
--- a/mk/myr.mk
+++ b/mk/myr.mk
@@ -11,13 +11,11 @@
myrbuild -b $(MYRBIN) $^
OBJ=$(MYRSRC:.myr=.o) $(ASMSRC:.s=.o)
-JUNKASM=$(MYRSRC:.myr=.s)
USE=$(MYRSRC:.myr=.use) $(MYRLIB)
.PHONY: clean
clean:
rm -f $(OBJ)
rm -f $(USE)
- rm -f $(JUNKASM)
rm -f lib$(MYRLIB).a
install: install-bin install-lib