Capuirequiem

Capuirequiem is a esoteric programming language by User:Zzo38 in year 2006. All of the ASCII character 33 to 126 are valid characters. The digits 0 to 9 push it onto the stack. The lowercase letter and apostrophe are valid characters to use as a part of a name. It is stack-based and 3 types: Array, String, Integer. There is no commands for comments, but you can write a string using [ and ] and put Z after to discard the string, then it is like a comment. Capuirequiem is known to be Turing-complete because Underload without output can be compiled into it (there are some pathological Underload programs which produce different output after being compiled).

Examples
Beer program: [99 bottles of beer program]Z 99"n{"m{ "b[ bottles of beer]{ "w[ on the wall]!WC{ "o[ ["n}U48,"n}_KO]X  48,"m}_KO ]{ [ "o}X"b}O"w}O  "o}X"b}O!O  [Take one down, pass it around,]O!O  "m}-DN=[U"n}-"n{Z9]X"m{  10"n}"m},=KU  "o}X"b}O!O!O  1L ]X [No more]O"b}O"w}O

Hello World program: [Hello World!]O

Cat program (forever): IO!L

Cat program (stop at NULL): IDOL

Reverse input (stop as NULL): A0.>[ID"{.>"}L]X <[DP25,6,KL]X [Add 13 to value at position 65 to 77 in the array]Z 65,G[+++++++++++++>DP78,KL]X [Subtract 13 from value at position 78 to 90 in the array]Z 78,G[->DP91,KL]X [Add 13 to value at position 97 to 109 in the array]Z 97,G[+++++++++++++>DP11,0,KL]X [Subtract 13 from value at position 110 to 122 in the array]Z 11,0,G[->DP12,3,KL]X [Get values from input and transform according to ROT13]Z [IGD,O1L]X

Quine program: [91,OO93,O[DX]O]DX

Kimian quine program: ERR

Fibonacci program: [This function output a number in decimal format]Z [ []D/V D /01!\$ 48,_KW\C/ !SB DL Z\O ]"n{ [Print out the fibonacci sequence]Z [1.]O 0"a{1"b{ [ "a}"b}D"a{_KD"b{  "n}X [.]O 1L ]X

Backtracking: [These are the examples of backtracking-INTERCAL, and they have been converted to Capuirequiem.]Z [0]"{ [[1]"{]W "}O \W !O [0]"a{ [2]"b{ 1[Z0]W[U[1]"a{]X 1[Z0]W[U[3]"b{]X "a}O "b}O \W [.]O \W !O [0]"a{ [2]"b{ 1[Z0]W[U[1]"a{]X 1[Z0]W[U[3]"b{]X "a}O "b}O \Z [.]O \W

Input a Capuirequiem program ending in NULL and execute:
 * 1) [IDUWC!L]XZV

Brainfuck interpreter: [ Brainfuck interpreter in Capuirequiem ]Z [Initialize variables]Z A+- "tape{ [] "prog{ [Load program]Z [IDU [Begin loop]Z [D91,=U }91,W[},U]CC{ ]X [End loop]Z [D93,=U }[1L]93,W[X]CCC{ ]X [Tape pointer left]Z [D60,=U }[}<+-{]C{ ]X [Tape pointer right]Z [D62,=U }[}>+-{]C{ ]X [Increment]Z [D43,=U }[}+D{,[)=U}0.{]X]C{ ]X  [Decrement]Z   [D45,=U }[}-D{,[N=U})-.{]X]C{ ]X [Input]Z [D44,=U }[}I.{]C{ ]X [Output]Z [D46,=U }[},O]C{ ]X L]X [Execute program]Z "prog}"tapeX

External resources

 * Implementation in PHP