summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-24 22:01:12 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-24 22:01:12 -0800
commit14fd8b9e92ffe32275aba6f30dd8edf4531c6a19 (patch)
tree9dbf70b2c06ffa15da7930dd2259b021ed05d0ec /mbld
parent77a5bd52ac777a95a22395227f29084e49569370 (diff)
downloadmc-14fd8b9e92ffe32275aba6f30dd8edf4531c6a19.tar.gz
Land char iterators.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/parse.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbld/parse.myr b/mbld/parse.myr
index 425e225..8c02775 100644
--- a/mbld/parse.myr
+++ b/mbld/parse.myr
@@ -650,7 +650,7 @@ const matchc = {p, c
if p.rest.len == 0
-> false
;;
- (chr, s) = std.striter(p.rest)
+ (chr, s) = std.strstep(p.rest)
if c == chr
p.rest = s
-> true
@@ -666,7 +666,7 @@ const peekc = {p
const getc = {p
var c, s
- (c, s) = std.striter(p.rest)
+ (c, s) = std.strstep(p.rest)
p.rest = s
-> c
}