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
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
headfuck-1.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
headfuck-1.1-py3-none-any.whl
(4.4 kB
view hashes)