summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2019-07-31 17:36:01 -0700
committerOri Bernstein <ori@markovcorp.com>2019-07-31 17:36:01 -0700
commitcf50193c7dc0c13d373d60982e7cb95168e0167e (patch)
treed69e9b2bccacd5efd72515c8e68353e5a1fe335d
parent5362f2f03b9ca372fa7900861d07a9858b9dccb0 (diff)
downloadmc-master.tar.gz
Fix bug in dump code: Stray '{', wrong args.HEADmaster
-rw-r--r--lib/regex/compile.myr2
-rw-r--r--lib/regex/interp.myr2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/regex/compile.myr b/lib/regex/compile.myr
index 3d56bb7..f4eefaf 100644
--- a/lib/regex/compile.myr
+++ b/lib/regex/compile.myr
@@ -227,7 +227,7 @@ const rtdump = {rt, ind
rtdump(rt.link[i], ind + 1)
;;
indent(ind)
- std.put("}\n")
+ std.put("}}\n")
}
const indent = {ind
diff --git a/lib/regex/interp.myr b/lib/regex/interp.myr
index 6db8495..0ec7b29 100644
--- a/lib/regex/interp.myr
+++ b/lib/regex/interp.myr
@@ -468,7 +468,7 @@ const within = {re, str
const itrace = {re, thr, inst
match inst
- | `Ibyte b: std.put("\t{}.{}:\tByte ({})\n", thr.tid, thr.ip, thr.tid, thr.ip, b)
+ | `Ibyte b: std.put("\t{}.{}:\tByte ({})\n", thr.tid, thr.ip, b)
| `Irange (lo, hi): std.put("\t{}.{}:\tRange {}, {}\n", thr.tid, thr.ip, lo, hi)
| `Ilbra m: std.put("\t{}.{}:\tLbra {}\n", thr.tid, thr.ip, m)
| `Irbra m: std.put("\t{}.{}:\tRbra {}\n", thr.tid, thr.ip, m)