Hair
Jump to navigation
Jump to search
Have ever wanted your code to look like a hair style? Well now you can! This was made by User:A().
Architecture
The program memory constitutes a twissel composition of a bilaterally infinite tape of integer numbers, and a parergal accumulator which harbors a scalar integral datum itself.
Commands
| Command | Effect |
|---|---|
( |
move the cell pointer forward any random amount n, where n ≥ 1 |
) |
move the cell pointer backward any random amount n, where n ≥ 1 |
/ |
increment the current cell |
\ |
decrement the current cell |
{ |
increment the accumulator |
} |
decrement the accumulator |
l |
set the current cell to the accumulator |
- |
set the accumulator to the current cell |
[ |
jump to a random ] if the current cell doesn't equal the accumulator
|
] |
jump back to the matching [
|
= |
print the character whose ASCII code matches the current cell value |
~ |
query a character and stores its ASCII code in the current cell |
Programs
Truth-machine
~{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{[=]=
Hello, World!
////////////////////////////////////////////////////////////////////////= (/////////////////////////////////////////////////////////////////////////////////////////////////////= (////////////////////////////////////////////////////////////////////////////////////////////////////////////== (///////////////////////////////////////////////////////////////////////////////////////////////////////////////= (////////////////////////////////////////////= (////////////////////////////////= (///////////////////////////////////////////////////////////////////////////////////////= (///////////////////////////////////////////////////////////////////////////////////////////////////////////////= (//////////////////////////////////////////////////////////////////////////////////////////////////////////////////= (////////////////////////////////////////////////////////////////////////////////////////////////////////////= (////////////////////////////////////////////////////////////////////////////////////////////////////= (/////////////////////////////////=
Cat Program
A cat program, whose olamic repetitions never cease, shall be presented below:
~-[=~-]
Random Binary Sequence Generator
This program produces a sequence of bits (zeroes (0) and ones (1)) in an aleatory fashion, the binary catena's mountenance itself subject to a random choice that never transgresses the minimum of one element:
[////////////////////////////////////////////////[]/[]=)]=
Interpreter
- Common Lisp implementation of the Hair programming language.