Cookie
Jump to navigation
Jump to search
Cookie is an esoteric programming language made by Ello, me who does not want to be deleted :D
Base Syntax
Cookie has 8-bit integers, 16-bit integers and strings as cookies(variables) their names are as follows:
8-bit integer | Plain 16-bit integer| Oatmeal Raisin string | Milk Dunked
other than that, Cookie also has an additional array called the Cooking Tray
the glaze used for adding, can be 5 types as well
Vanilla Glaze adds the value to the 8-bit integer Chocolate Glaze adds the value to the 16-bit integer and Strawberry glaze adds the string to the string
the knife used for subtracting has two types specifically for strings
Knife, cuts off the end of the string Reverse Knife, cuts off the start of the string
ALSO THE STRINGS CAN SPAN MULTIPLE LINES
Commands
let [variable type example: Plain] [variable name] cookie be [number or string] add [number or string] [type of glaze, example: Vanilla] glaze to the [variable name] cookie cut off [number] from [Variable name] cookie with a [Knife Type] (for strings) cut off [number] from [Variable name] cookie (for integers) put [variable name] cookie on Cookie tray take [variable name] cookie out of the Cookie tray bake the cookies on Cookie tray (outputs the numbers or strings from the cookies in order from first cookie put in to last cookie put in, if you bake the cookie again, it will output the cookie's numbers or strings again, NOT burnt cookie) eat [variable name] cookie from the tray (can only be done after cookie was baked once, baking a cookie again will make it taste bad and print "Burnt Cookie" into the console, eating the cookie will permanently remove it, the program cannot end without all the cookies being eaten) break up [variable name] cookie into [number] pieces (divides the value in the cookie by the number, if done more than 5 times in a row to one cookie, it will say "Cookie Crumbled" and the cookie will become dust, trying to interact with it in any way will output 0) spill [number] times more glaze onto [variable name] cookie (multiplies the value in the cookie by that number, if done more than 5 times in a row to one cookie, it will say "Goo" and trying to interact with the cookie in any way will just output "Goop") end the cooking repeat [number] times: repeat end
Example:"Hello World!"
this should print "Hello World!"
let Milk Dunked helloworld cookie be "Hello World!" put helloworld cookie on Cookie tray bake the cookies on Cookie tray eat helloworld cookie from the tray end the cooking
Example:99 bottles of beer
this should print the 99 bottles of beer program
let Plain beeramount cookie be 99 let Milk Dunked beertext cookie be " bottles of beer on the wall, " let Plain beeramount2 cookie be 99 let Milk Dunked beertext2 cookie be " bottles of beer, Take one down, pass it around, " let Plain beeramount3 cookie be 99 let Milk Dunked beertext3 cookie be " of beer on the wall. " put beeramount cookie on Cookie tray put beertext cookie on Cookie tray put beeramount2 cookie on Cookie tray put beertext2 cookie on Cookie tray put beeramount3 cookie on Cookie tray put beertext3 cookie on Cookie tray repeat 99 times: bake the cookies on Cookie tray take beeramount cookie out of the Cookie tray take beertext cookie out of the Cookie tray take beeramount2 cookie out of the Cookie tray take beertext2 cookie out of the Cookie tray take beeramount3 cookie out of the Cookie tray take beertext3 cookie out of the Cookie tray cut off 1 from beeramount cookie cut off 1 from beeramount2 cookie cut off 1 from beeramount3 cookie put beeramount cookie on Cookie tray put beertext cookie on Cookie tray put beeramount2 cookie on Cookie tray put beertext2 cookie on Cookie tray put beeramount3 cookie on Cookie tray put beertext3 cookie on Cookie tray repeat end eat beeramount cookie from the tray eat beertext cookie from the tray eat beeramount2 cookie from the tray eat beertext2 cookie from the tray eat beertext3 cookie from the tray eat beeramount3 cookie from the tray end the cooking
Implementation
There is NO original implementation for Cookie, but, you party ppl are welcome to make one! :D