HASSL
Jump to navigation
Jump to search
Paradigm(s) | Imperative |
---|---|
Designed by | Ethan T. Stanger |
Appeared in | 2022 |
Memory system | Stack-Based |
Dimensions | One-Dimensional |
Computational class | Unknown |
Reference implementation | HASSL |
File extension(s) | .hassl |
HASSL (Hexadecimal, ASCII, Symbolic, and Stack-Based Language) is a stack-based esoteric programming language created in 2023 by Ethan T. Stanger.
Language summary
HASSL programs begin by defining a number of states. These states can be any of the single hexadecimal digits (0-9, A-F), and can be written anywhere in the program. Execution starts with the first 0 found in the program, and from there on commands are run one character at a time.
Command | Action |
---|---|
0-9, A-F | Define a state |
$ | Select a state |
& | Go to the selected state |
^ | Push a value to the selected stack |
v | Pop a value from the selected stack |
+ | Add the top two values of the selected stack |
- | Subtract the top two values of the selected stack |
< | Select the left stack and hex digit |
> | Select the right stack and hex digit |
* | Increment the selected hex digit |
. | Reset the selected hex digit to 0 |
~ | Set both hex digits to a random value |
?, ! | Conditionals |
p | Print an ASCII character |
n | Print a hexadecimal number |
g | Get a line of user input |
# | Get the size of the selected stack |
@ | Terminate the program |