summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorS. Gilles <sgilles@math.umd.edu>2017-11-05 04:11:27 -0500
committerOri Bernstein <ori@eigenstate.org>2017-11-05 20:52:12 -0800
commitf8f5b71ca85fed63d295f50e3f45ba3230edaead (patch)
tree2dc6c605daf0bb9735a3b197596a8ccae519029d /mbld
parenta2a63e13a470401d10625a0d5be163767adb7e46 (diff)
downloadmc-f8f5b71ca85fed63d295f50e3f45ba3230edaead.tar.gz
Implement graphemestep
And change 'strstep' to 'charstep' for consistency, now that it has a sibling function.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/parse.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbld/parse.myr b/mbld/parse.myr
index 0f1d053..96e47d5 100644
--- a/mbld/parse.myr
+++ b/mbld/parse.myr
@@ -732,8 +732,8 @@ const skipspace = {p
const matchc = {p, c
var chr, s
- /* safe to use at eof: strstep returns (-1, "") */
- (chr, s) = std.strstep(p.rest)
+ /* safe to use at eof: charstep returns (-1, "") */
+ (chr, s) = std.charstep(p.rest)
if c == chr
p.rest = s
-> true
@@ -749,7 +749,7 @@ const peekc = {p
const getc = {p
var c, s
- (c, s) = std.strstep(p.rest)
+ (c, s) = std.charstep(p.rest)
p.rest = s
-> c
}