Nah
Jump to navigation
Jump to search
Nah is a turing complete esolang made by User:Robotosaurus6502 on December 23 2024, It's stack base and has normal memory that can be accessed using the Get and Set commands, This was created as a joke in the esolang channel on the Truttle1 discord server.
Commands
The number a "Nah"s before a per "Yeah" determines the number, So
Nah Nah Nah Yeah Nah Yeah
would be come
3, 1
Here's the list of commands
Number | Name | Definition |
---|---|---|
0-9 | Push | Pushes 0-9 |
10 | Add | Pops two values, Adds them, And then pushes the result |
11 | Subtract | Pops two values, Subtracts the first one from the second one, And then pushes the result |
12 | Delete | Deletes the top value |
13 | Swap | Swaps the top two values |
14 | Duplicate | Duplicates the top value |
15 | Output | Pops a value and then outputs it as a Unicode character |
16 | Input | Takes a character from the user and pushes it as a Unicode value |
17 | Jump | Pops a value and jumps to it zero base |
18 | Positive | Pops a value and pushes 1 if it was greater than 0, Else pushes 0 |
19 | Zero | Pops a value and pushes 1 if it equaled 0, Else pushes 0 |
20 | Negative | Pops a value and pushes 1 if it less than 0, Else pushes 0 |
21 | If Skip | Pops a value, And skips the next command if it equaled 1 |
22 | Set | Pops two values, And then Sets a address in memory addressed by the first value to the second value |
23 | Get | Pops a value, And then uses that value as a address to get a value from memory |
Example programs
Cat program
Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Yeah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Yeah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Yeah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Yeah Yeah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Yeah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Yeah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Nah Yeah
Notes
This page was made in a Rush so there's not much