From 6626600c6a1697b0858a0264c39079df46bd8362 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Mon, 28 Sep 2020 14:11:51 +0200 Subject: [PATCH] added more files in between, expanded code significantly --- code/4812-9-6727.txt | 41 ++++++++ code/AasHgsho.txt | 95 +++++++++++++++++++ ...gen-in-warme-losden-aos-de-bososenboom.txt | 90 ++++++++++++++++++ code/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.txt | 67 ++++++++++++- code/we-zijn-er-bijna.txt | 51 ++++++++++ 5 files changed, 342 insertions(+), 2 deletions(-) create mode 100644 code/4812-9-6727.txt create mode 100644 code/AasHgsho.txt create mode 100644 code/Bososen-hosgen-in-warme-losden-aos-de-bososenboom.txt create mode 100644 code/we-zijn-er-bijna.txt diff --git a/code/4812-9-6727.txt b/code/4812-9-6727.txt new file mode 100644 index 0000000..d84f82e --- /dev/null +++ b/code/4812-9-6727.txt @@ -0,0 +1,41 @@ +>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 +\.txt +cat diff --git a/code/AasHgsho.txt b/code/AasHgsho.txt new file mode 100644 index 0000000..1918074 --- /dev/null +++ b/code/AasHgsho.txt @@ -0,0 +1,95 @@ +>main +gto +:find +=i +=term +=text +:loop +$text +$i +$i +$term +len +add +slc +=part +$i +$i +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 +\os +>replace-all +fun +=zin +$zin +dup +7 +idx +\- +>replace-all +fun +\txt +cat diff --git a/code/Bososen-hosgen-in-warme-losden-aos-de-bososenboom.txt b/code/Bososen-hosgen-in-warme-losden-aos-de-bososenboom.txt new file mode 100644 index 0000000..7751774 --- /dev/null +++ b/code/Bososen-hosgen-in-warme-losden-aos-de-bososenboom.txt @@ -0,0 +1,90 @@ +\ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ +=printable-ascii +>main +gto +:shifter +=to-be-shifted +\ +=shifted +0 +=j +:shifter-loop +$shifted +$to-be-shifted +$j +idx +>asc +fun +inc +>chr +fun +cat +=shifted +$j +inc +=j +$j +$to-be-shifted +len +>shifter-loop +glt +$shifted +ret +:asc +=ch +$printable-ascii +$ch +0 +>find +fun +32 +add +ret +:chr +=code +$printable-ascii +$code +32 +sub +idx +ret +: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 +:main +\sws-`miha,qd,mihy,dv +>shifter +fun +rev diff --git a/code/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.txt b/code/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.txt index fdf08f3..8d89109 100644 --- a/code/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.txt +++ b/code/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.txt @@ -1,4 +1,67 @@ -\avans-minor-swa-cpp1 -rot +>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 +214 +68 +>lcm +fun +\- +cat +765 +27 +>gcd +fun +cat +\- +cat +56 +78 +>lcm +fun +cat +rev \.txt cat diff --git a/code/we-zijn-er-bijna.txt b/code/we-zijn-er-bijna.txt new file mode 100644 index 0000000..6954a05 --- /dev/null +++ b/code/we-zijn-er-bijna.txt @@ -0,0 +1,51 @@ +\abcdefghijklmnopqrstuvwxyz +=alfabet +$alfabet +0 +idx +$alfabet +21 +idx +$alfabet +67 +dup +sub +idx +$alfabet +5 +8 +add +idx +$alfabet +9 +2 +mul +idx +\- +cat +cat +cat +cat +cat +\ronim +rev +\- +cat +cat +\verswaren +3 +6 +slc +cat +\ppc- +rev +55 +2 +neg +mod +abs +cat +cat +rot +\.txt +cat