Headfuck
A Brainfuck-like esoteric programming language based on matrices. This language has all of the usual Brainfuck commands, as well as a few more, bolded below:
- > moves forward in an array
- < moves backward in an array
- + adds one to the value of the current cell in the array
- - removes one from the value of the current cell in the array
- . displays the value of the current cell to the user
- , requests user input to modify the value of the current cell
- [ starts a loop
- ] closes a loop
- ^ moves up in a matrix
- v mves down in a matrix
- # displays the first ten rows of the matrix
- ! reads and interpret the contents of a file
- & dumps the outputs of the code to a file
- * multiplies the value of the current cell by two
- / sets the value of the current cell to zero
- ? sets the value of the current cell to a random ASCII-compatible number
- = sets a variable with the name of the letter after it (e.g. =a creates a variable called a)
- @ sets the value of the current cell to the variable with the name of the letter after it (e.g. @a sets the current cell to a)
Headfuck adds I/O and 2-D arrays on top of the functionalities of basic Brainfuck.
Installing this package via pip3 install headfuck will grant you access to the headfuck and hff commands. headfuck is a live interpreter where you simply type that command and then type your code as input. hff interprets a file that is passed as an argument, e.g. hff file.bf.
Release files for headfuck 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| headfuck-2.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| headfuck-2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / headfuck-2.0.tar.gz
| Download URL | headfuck-2.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34fd6803257a259007665e1bb8b7e387bab794cb638f808b95de4dc4f70d895f
|
|
BLAKE2b-256 checksum How to use checksums |
7be3cbb2369be0ed88508349edfe9f90914761644c01550893d8f45212f597a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.10 Linux/6.2.10-1-MANJARO
|
Release files / headfuck-2.0-py3-none-any.whl
| Download URL | headfuck-2.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44f863b9ea346ff52957d5188b4d58ddb39b1d88ad9f1db8541dd63462278652
|
|
BLAKE2b-256 checksum How to use checksums |
9450173383e077dabddad595dba9c24cbed2df727853f806b28cd13448044070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.10 Linux/6.2.10-1-MANJARO
|