https://github.com/phase/cod
C implementation of the esoteric programming language Deadfish with some additions
https://github.com/phase/cod
esoteric-interpreter esoteric-language esoteric-programming-language
Last synced: 12 months ago
JSON representation
C implementation of the esoteric programming language Deadfish with some additions
- Host: GitHub
- URL: https://github.com/phase/cod
- Owner: phase
- License: mit
- Created: 2015-04-24T18:53:04.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-25T19:40:21.000Z (almost 11 years ago)
- Last Synced: 2025-01-24T22:31:51.945Z (about 1 year ago)
- Topics: esoteric-interpreter, esoteric-language, esoteric-programming-language
- Language: C
- Homepage:
- Size: 195 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cod
C implementation of Deadfish
Requires GCC to build, or you can use any other C compiler.
Deadfish Commands:
* `i` - Increment value by 1
* `d` - Decrement value by 1
* `s` - Square value
* `o` - Output ASCII value
cod Commands:
* `b` - Binary Two's Complement the value
* `q` - Square root the value
* `r` - Right shift value
* `l` - Left shift value
* `&` - Turn value into the value's pointer
* `n` - Print number
* `e` - Erase the value
* `4` - Decrement the value to zero, while printing each ASCII value along the way
* `5` - Do the same as `4`, except reset the value to it's original number afterwards
* `6` - Do the same as `4`, except go upwards to the square of the value
##Use
`build` cod. You can run the new `cod.exe` without any arguments to get a cli, or import a file use `cod file.df`. An example is in `hello.df`.