reorganized build-ins and implement a circular queue as an example

This commit is contained in:
cozis
2022-08-18 19:01:26 +02:00
parent b5b3a3e315
commit 782985e8b7
36 changed files with 486 additions and 259 deletions
+2 -2
View File
@@ -149,7 +149,7 @@ fun parseString(context: Map) {
while context.cur < count(context.str)
and context.str[context.cur] != '"': {
# TODO: Support special characters such as \n, \t ecc
buffer = strcat(buffer, context.str[context.cur]);
buffer = string.cat(buffer, context.str[context.cur]);
context.cur = context.cur + 1;
}
@@ -228,7 +228,7 @@ fun parseValue(context: Map) {
val, err = parseFalse(context);
else {
val = none;
err = strcat("Unexepected character \"", c, "\" where a value was expected");
err = string.cat("Unexepected character \"", c, "\" where a value was expected");
}
return val, err;
}