4 releases
0.1.3 | Aug 24, 2024 |
---|---|
0.1.2 | Aug 24, 2024 |
0.1.1 | Aug 24, 2024 |
0.1.0 | Aug 24, 2024 |
#166 in Programming languages
22KB
590 lines
Numlang
An esoteric programming language that uses hexadecimal.
Usage
Install the compiler with cargo install --locked numlang
. Get help using numlang --help
.
Syntax
Basic Operations
1 -> Move pointer right by one
2 -> Move pointer left by one
3 -> Increment value by one
4 -> Decrement value by one
File I/O
5 -> Read byte from stdin to pointer location
6 -> Print current byte to stdout
7 -> Print bytes in stack to stdout
Stack Manipulation
8 -> Add current byte to stack
9 -> Remove newest item from stack
a -> Clear stack
b -> Write stack length to current byte
Looping
c -> Open loop
d -> Close loop