KRONKSCRIPT

From Esolang
Jump to navigation Jump to search

An Esolang by Zack Umar. Version 1.0.0

What is KRONKSCRIPT?

KRONKSCRIPT is an esoteric programming language based on Kronker Pepikrankenitz. If you do not know of him, you should.

Why is KRONKSCRIPT?

Who doesn't want yet another programming language added into the realm of esolangs? And better yet, who doesn't want one based on the Mr. Kronker Pepikrankenitz, himself? If you couldn't tell. I got bored. :)

How to use KRONKSCRIPT

The idea behind KRONKSCRIPT is memory manipulation (like every other esolang ever, but in Kronk form :D). This is not a golfing language. You can surely try, but... Have fun?

START/EXIT
oh yeah ............................. Start of program
it's all coming together ............ End of program
MEMORY MANIPULATION
righteousness ....................... Move memory pointer to the right
rocks ............................... Move memory pointer to the left
[a] spinach puffs ................... Move memory pointer to [a]
squeaker [data] squeak .............. Store data at current address
that poison ......................... Clears memory at current address
ARITHMATIC
harp [a] [b]......................... Add [a] and [b]
pitchfork [a] [b].................... Subtract [a] and [b]
robe [a] [b] ........................ Multiply [a] and [b]
dress [a] [b] ....................... Divide [a] and [b]
CONDITIONAL STATEMENTS
the poison for kuzco ................ Start of loop
kuzco's poison ...................... Goto start of loop unless current address equals 0
STDIN/STDOUT
squeak squeakity .................... Store user input at current address
squeak squeakin ..................... Prints data at current address

All punctionation: optional. Capitalization: optional. Sanity: optional. Knowing who Kronker Pepikrankenitz is: not optional.

Other Guidelines:

  • Anything before or after the start and end keywords are ignored by the compiler or interpreter.
  • Comments are denoted by `//`
  • Similar to [`brainfuck`](https://esolangs.org/wiki/Brainfuck), the memory block is set to zero and the pointer starts at the left-most memory address.
  • Loops may be nested but need to have corresponding pairs of `the poison for kuzco` and `kuzco's poison`.
  • The memory should be an array of uint8 bytes, but the amount of bytes is up to the discretion of the compiler or interpreter. 30000 bytes is a good baseline (taken from [`brainfuck`](https://esolangs.org/wiki/Brainfuck)).
  • KRONKSCRIPT uses the file extension `.kronk` because I wanted to.