Move test scripts into test-scripts

This commit is contained in:
2025-01-08 13:29:40 +01:00
parent 3a857e8980
commit 45b5ba897b
11 changed files with 0 additions and 0 deletions

View File

@ -1,9 +0,0 @@
#!/usr/bin/env curly
1
abs
out
neg
out
abs
out
end

View File

@ -1,14 +0,0 @@
#!/usr/bin/env curly
\deze
\deze
>hetzelfde
geq
\niet hetzelfde
out
>klaar
gto
:hetzelfde
\hetzelfde!
out
:klaar
end

View File

@ -1,23 +0,0 @@
#!/usr/bin/env curly
3
=cnt
\Hello, world
enl
=hello
\
=result
:loop
$result
$hello
cat
=result
$cnt
dec
=cnt
$cnt
0
>loop
ggt
$result
out
end

View File

@ -1,97 +0,0 @@
#!/usr/bin/env curly
>main
gto
:find
=i
=term
=text
$i
:loop
=_
$text
$i
dup
$term
len
add
slc
=part
$i
dup
inc
=i
$i
$text
len
$term
len
sub
>not-found
ggt
$part
$term
>loop
gne
ret
:not-found
neg
ret
:replace-all
=replacement
=quest
=target
\
=result
0
=from
:replace-loop
$target
$quest
$from
>find
fun
=pos
$pos
0
>replace-done
glt
$result
$target
$from
$pos
slc
$replacement
cat
cat
=result
$pos
$quest
len
add
=from
>replace-loop
gto
:replace-done
$result
$target
$from
$target
len
slc
cat
ret
:main
\Bananen hangen in warme landen aan de bananenboom.
\an
\@|\|
>replace-all
fun
out
=_
$target
\en
\un
>replace-all
fun
out
end

View File

@ -1,53 +0,0 @@
#!/usr/bin/env curly
>main
gto
:gcd
=v
=u
$u
$v
>gcd-loop
gge
$u
=t
$v
=u
$t
=v
:gcd-loop
$v
0
>gcd-ret
gle
$v
=t
$u
$v
mod
=v
$t
=u
>gcd-loop
gto
:gcd-ret
$u
ret
:lcm
=b
=a
$a
$a
$b
>gcd
fun
div
$b
mul
ret
:main
21
6
>lcm
fun
out
end

View File

@ -1,23 +0,0 @@
#!/usr/bin/env curly
3
=cnt
\Hello, world!
enl
=hello
\
=result
:loop
$result
$hello
cat
=result
$cnt
dec
=cnt
$cnt
0
>loop
ggt
$result
out
end

View File

@ -1,5 +0,0 @@
#!/usr/bin/env curly
\we-zijn-er-bijna.txt
rev
out
end

View File

@ -1,42 +0,0 @@
#!/usr/bin/env curly
>main
gto
:slicer
=step
=to
=from
=str
$from
=i
\
=result
:loop
$result
$str
$i
idx
cat
=result
$i
$step
add
=i
$i
$str
len
>loop
glt
$result
ret
:main
\Avans Hogeschool
=text
$text
0
$text
len
2
>slicer
fun
out
end

View File

@ -1,7 +0,0 @@
#!/usr/bin/env curly
\abcdefghijklm
3
6
slc
out
end

View File

@ -1,14 +0,0 @@
#!/usr/bin/env curly
\Syntax error below
out
:lbl1
42
\hey
:lbl2
yo dude
56
# random shit
89
:lbl3
\this is it, then
end

View File

@ -1,8 +0,0 @@
#!/usr/bin/env curly
\What's your name?
out
\Hello,
inp
cat
out
end