This is a Deadfish Interpreter written in C++20. (Overkill? Probably.) It contains various other operators from a smattering of Deadfish extensions, thus the different name.
It supports .df
and .txt
files being dragged into it/specified as well as a terminal mode when the application is directly opened.
Operator | Explantation |
---|---|
i | Increment the accumulator. |
d | Decrement the accumulator. |
s | Square the accumulator. |
o | Output the accumulator (As a number). |
h | Halt the program. |
r | Square root the accumulator |
c | Output the accumulator as an ASCII character. NOTE: Numbers outside 0-255 do nothing. |
w | Print "Hello, World!" |
; | Reset the accumulator to zero. |
x2 | Multiply the accumulator by 2. |
All command line parameters begin with -
I may add these back, we'll see.
This interpreter exists entirely within a source code file and a single library, so building should be trivial with any program.
This interpreter, library, and its source code are provided under the MIT License. The original language and the superset are in the Public Domain.