Bitfuck
Jump to navigation
Jump to search
Bitfuck is a boolfuck equivalent with only 4 characters. It is similar to RISBF, but operating only on bits.
Commands
Bitfuck's state as a Boolfuck derivative conditions a parity in the tally, albeit not the designation, of both command sets. A listing and juxtaposition shall thus be provided below.
Command | Description | Boolfuck equivalent |
---|---|---|
*
|
Toggle bit | +
|
<
|
Move pointer left | <
|
>
|
Move pointer right | >
|
!
|
Start of the following two-character sequence commands: | |
!!
|
Output bit at pointer | ;
|
!*
|
Input bit at pointer | ,
|
!<
|
Jump past the matching !> if bit at pointer is 0
|
[
|
!>
|
Jump back to the matching !<
|
]
|
Examples
Hello, world!
This program prints the text “Hello, world!”:
!!!!!!*!!*!!!!*!!*!! *!!*!!*!!*!!!!*!!!!*!! !!!!*!!!!*!!*!!!!*!! !!!!*!!!!*!!*!!!!*!! *!!!!!!!!*!!*!!!!*!! !!!!*!!!!*!!*!!*!!!! !!!!!!!!!!*!!*!!!! *!!!!!!*!!*!!!!!!*!! *!!!!!!!!*!!*!!!!*!! !!*!!*!!!!*!!!!!!*!! !!!!*!!!!*!!*!!!!*!! !!!!*!!*!!!!*!!!!*!! *!!*!!!!!!!!*!!*!!!! !!*!!*!!*!!
Cat program
The following program implements an infinitely repeating cat program:
* !< > !* !! !* !! !* !! !* !! !* !! !* !! !* !! !* !! < !>
See also
Other languages operating on bits (implemented only):
Interpreter
- Common Lisp implementation of the Bitfuck programming language.