HQ99+LUFTBALLONS

From Esolang
Jump to navigation Jump to search

HQ99+LUFTBALLONS is an HQ9+-derivative made by Tetrapyronia. It uses balloons to build the code. The accumulator is initally 0 and the stack is initally empty. The second-last line is a looping sequence of HQ99+LUFTBALLONS.

Commands

H: print "Hello, World!"
Q: print source code
9: print lyrics of 99 Luftballons
+: add 1 to accumulator
L: drop down 1 line
U: print Unicode character corresponding to accumulator value (control characters are printed as spaces)
F: print (accumulator value)!
T: halt
B: if accumulator = 1, jump up 1 line
A: add top 2 stack items, no-op if <2 stack items
O: output accumulator
N: Add input to accumulator
S: swap top 2 stack items
<newline>: print '/n'

Balloons

Every commands comes paired with a balloon. An example program: (adds 1 to accumulator)

=========
oooo ooo
||||o|||o
|||||||||
HQ99+LUFT
=========

Once the program starts, all balloons float up until they hit the ceiling (=s):

=========
ooooooooo
|||||||||
||||+|||T
HQ99 LUF
=========

All |o=(space) are removed to get:

+T
HQ99LUF

Example Programs

Hello, World!

=
o
|
H
=

Truth-machine

========================================
 ooooo oo oooo oooooo o  oooooooooooooo
o|||||o||o|||| |||||| |oo||||||||||||||
||||||||||||||o||||||o|||||||||||||||||o
||||||||||||||||||||||||||||||||||||||||
HQ99+LUFTBALLONSHQ99+LUFTBALLONSHQ99+LUF
========================================

See also