An esoteric programming language similar to Brainfuck
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file headfuck-2.0.tar.gz.
File metadata
- Download URL: headfuck-2.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.2.10-1-MANJARO
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34fd6803257a259007665e1bb8b7e387bab794cb638f808b95de4dc4f70d895f
|
|
| MD5 |
8bbe56ef677e07d6e83d2fb202c1bc34
|
|
| BLAKE2b-256 |
7be3cbb2369be0ed88508349edfe9f90914761644c01550893d8f45212f597a8
|
File details
Details for the file headfuck-2.0-py3-none-any.whl.
File metadata
- Download URL: headfuck-2.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.2.10-1-MANJARO
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44f863b9ea346ff52957d5188b4d58ddb39b1d88ad9f1db8541dd63462278652
|
|
| MD5 |
e2d646a87e1f37c19f9264bc90820896
|
|
| BLAKE2b-256 |
9450173383e077dabddad595dba9c24cbed2df727853f806b28cd13448044070
|