Ark
Jump to navigation
Jump to search

Ark: The esolang that is actually kind of useful.
| Character | Function | Status |
|---|---|---|
| : | Terminates the program. | Required |
| @ | Initializes the program. | Required |
| ! | Outputs the next Alphanumeric character in the code. | Output |
| ^ | Outputs the stack; | Output |
| > | Adds the next numeric character to the stack; | Stack Manipulation |
| < | Asks for input and adds it to the stack. | Input/Stack Manipulation |
| + | Add the top two rows in the stack and add the result to the stack; | Math/Stack Manipulation |
| - | Subtract the second row by the top row in the stack and add the result to the stack. | Math/Stack Manipulation |
| * | Multiply the top two rows of the stack and add the result to the stack. | Math/Stack Manipulation |
| / | Divide the top row by the second row in the stack and add the result to the stack. | Math/Stack Manipulation |
| # | Clear the stack. | Stack Manipulation |
| { | Used to initialize a function. (like python's: "def") | Functions |
| } | Used to end the initialization of a function. | Functions |
| [ | Used to initialize a multiple-character addition. | Stack Manipulation |
| ] | Used to end the initialization of a multiple-character addition. | Stack Manipulation |
| ~ | Used to call a function. | Functions |
note: when printing a string like this: !B !L !A !H, you must put a space in between each instruction.