nimi pali
Jump to navigation
Jump to search
nimi pali is a language in toki pona.
Commands
toki!
is the command you put to start the program.
mi tawa
is the command you put to end the program.
o toki e
is the print command, for example:
o toki e ni: Hello, world!
would print "Hello, world!"
o kalama
is the input command, that saves the input to the accumulator.
o toki e nanpa
retrieves the memory cell of that number and puts it to the accumulator.
toki ni li awen
saves the accumulator to the memory. An example:
o kalama toki ni li awen o kalama toki ni li awen o kalama toki ni li awen o kalama toki ni li awen o toki e nanpa wan tu o toki e toki ni
would ask the user for input four (tu tu) times, and outputs the third (wan tu) memory cell.
toki ni li ante la[]
acts like BF's square brackets.
Examples
Hello World
toki! o toki e ni: Hello, world! mi tawa
Cat
toki! o toki e ni: o kalama mi tawa!
Truth machine
toki! o kalama toki ni li ante la[ o toki e toki ni ] o toki e toki ni mi tawa
Notes
- The accumulator can hold strings.