Alphamation
Jump to navigation
Jump to search
Alphamation is joke language.
Memory
Alphamation uses a counter, which is an integer and which is initialized to zero.
Syntax
Each character in an Alphamation program is its own command, except for @
; the number of @
s before a command changes its meaning (there can be up to three before a single command).
Commands
Command | No @ s |
1 @ |
2 @ s |
3 @ s
|
---|---|---|---|---|
& |
Execute a Mirror-machine | Nop | Nop | Nop |
+ |
Print Hello,world!
|
Print hello world.
|
Exit the program | Print !dlrow,olleH
|
- |
Execute a cat program | Execute a reverse cat program | Read a line of input and discard it | Set the console's foreground to gray, and execute a reverse cat program |
* |
Set the console's background colour to white and its foreground colour to white | Set the console's background colour to white and its foreground colour to red | Set the console's background colour to magenta and its foreground colour to dark red | Set the console's background colour to dark yellow, write Ç to the console, and then set the console's foreground colour to black
|
/ |
Reset the console's colours | Set the console's background colour to white and its foreground colour to green | Set the console's background colour to blue and its foreground colour to cyan | Set the console's background colour to green and its foreground colour to dark green |
; |
Increment the counter | Double the counter | Set the counter to 255 | Multiply the counter the counter by four, then increment it |
: |
Decrement the counter | Halve the counter | Set the counter to 65535 | Floor-divide the counter by four, then increment it |
All other characters (including ones prefixed by 1-3 @
s), as well as instances of four consecutive @
s, are ignored.
Examples
Hello, World!
+
Cat
-
Reverse cat
@-