summaryrefslogtreecommitdiff
path: root/libregex/redump.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-06-12 12:46:50 -0400
committerOri Bernstein <ori@eigenstate.org>2015-06-12 14:01:54 -0400
commit21b91ad9fa7ae830272dc67fbe3150dc30921702 (patch)
treea674ea3e28f90ba8fa2f4521069a010b4742961e /libregex/redump.myr
parent96c8217e913d8d6de22bbb1aa3624c26e66838fc (diff)
downloadmc-21b91ad9fa7ae830272dc67fbe3150dc30921702.tar.gz
Move fmt to fmt2.
Shit seems to work.
Diffstat (limited to 'libregex/redump.myr')
-rw-r--r--libregex/redump.myr10
1 files changed, 5 insertions, 5 deletions
diff --git a/libregex/redump.myr b/libregex/redump.myr
index 416d8a9..7f7ed40 100644
--- a/libregex/redump.myr
+++ b/libregex/redump.myr
@@ -13,7 +13,7 @@ const main = {args
cmd = std.optparse(args, &opts)
match regex.dbgcompile(cmd.args[0])
| `std.Fail m:
- std.f2fatal("unable to compile regex: {}\n", regex.failmsg(m))
+ std.fatal("unable to compile regex: {}\n", regex.failmsg(m))
| `std.Ok re:
if cmd.args.len > 1
runall(re, cmd.args)
@@ -33,7 +33,7 @@ const runall = {re, files
dump(re, fd)
bio.close(fd)
| `std.None:
- std.f2fatal("failed to open {}\n", f)
+ std.fatal("failed to open {}\n", f)
;;
;;
}
@@ -55,11 +55,11 @@ const show = {mg
match mg
| `std.Some rl:
- std.f2put("Matched: {}\n", rl[0])
+ std.put("Matched: {}\n", rl[0])
for i = 1; i < rl.len; i++
- std.f2put("group {}: {}\n", i, rl[i])
+ std.put("group {}: {}\n", i, rl[i])
;;
| `std.None:
- std.f2put("Match failed\n")
+ std.put("Match failed\n")
;;
}