Colonoscopy

From Esolang
Jump to: navigation, search

Colonoscopy is a joke esoteric programming language created by Dom Davis. It is identical to Brainfuck, except that the instructions are constructed of semi-colons and braces (;, {, and }) and each command is terminated with a ;. It represents another in a long line of trivial Brainfuck command substitutions. As such, it is a member of the TrivialBrainfuckSubstitution family of programming languages. It's creation was in reaction to the partial, or complete lack of semi-colons in many languages, and jokes about hiding all the braces in languages that use them. Colonoscopy is designed as a final resting place for these unloved characters.

Commands

Brainfuck Colonoscopy Description
> ;} Move the pointer to the right
< ;{ Move the pointer to the left
+ ;;} Increment the memory cell under the pointer
- ;;{ Decrement the memory cell under the pointer
. ;;;} Output the character signified by the cell at the pointer
, ;;;{ Input a character and store it in the cell at the pointer
[ {{ Jump past the matching }} if the cell under the pointer is 0
] }} Jump back to the matching {{

Note: each command must be followed by a ; in a Colonoscopy program.

Hello, world! program

;;};;;};;;};;;};;;};;;};;;};;;};{{;;};;;};;;};;;};;;};{{;;};;;};;;};;};;;};;;};;;};;};;;};;;};;;};;};;;};;{;;{;;{;;{;;;{;}};;};;;};;};;;};;};;;{;;};;};;;};{{;;{;}};;{;;;{;}};;};;};;;;};;};;;{;;;{;;;{;;;;};;;};;;};;;};;;};;;};;;};;;};;;;};;;;};;;};;;};;;};;;;};;};;};;;;};;{;;;{;;;;};;{;;;;};;;};;;};;;};;;;};;;{;;;{;;;{;;;{;;;{;;;{;;;;};;;{;;;{;;;{;;;{;;;{;;;{;;;{;;;{;;;;};;};;};;;};;;;};;};;;};;;};;;;};

External resources