toki pona pi toki sitelen nanpa
Jump to navigation
Jump to search
toki pona pi toki sitelen nanpa (literally "toki pona programming language") is an esolang by User:Hammy based on toki pona.
Commands
it's basically python but translated into toki pona. output is translated to toki pona if it isn't in toki pona. also there is labels and goto now
Examples
Hello world
Normal:
kule e nimi("toki, mun!")
Using the ASCII syllabary:
qr e Nm((.::toki, mun!::.))
Truth machine
Normal:
sin 'num' li ijo pi ante pi tomo insa
la 'num' li wan:
nimi 'jump':
kule e nimi('num')
'jump' kepeken lawa pi lete
la 'num' li ala:
kule e nimi(ala)
ASCII:
C .:num:. l iJ P AE P tO !s L .:num:. l 1 : Nm .:jump:. : qr e Nm((.:num:.)) .:jump:. GBg Lw P rE L .:num:. l aL : qr e Nm((.:num:.))