Add string operations

This commit is contained in:
2025-12-01 12:28:15 +11:00
parent 995c1d984b
commit 6d782d65b7
4 changed files with 65 additions and 6 deletions

11
tests/string.grnd Normal file
View File

@@ -0,0 +1,11 @@
input &str
getstrsize $str &size
set &idx 0
@loop
getstrcharat $str $idx &char
println $char
add 1 $idx &idx
equal $idx $size &cond
if $cond %loopend
jump %loop
@loopend