Execute HQ9+: Difference between revisions
m
→{{header|11l}}: Void
m (→{{header|Wren}}: Changed to Wren S/H) |
Alextretyak (talk | contribs) m (→{{header|11l}}: Void) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 48:
src = File(:argv[1]).read()
[Char = (() ->
dispatch[Char(‘h’)] = hello
dispatch[Char(‘q’)] = quine
Line 1,068:
See [[Execute HQ9+/E]].
=={{header|EasyLang}}==
<syntaxhighlight>
proc run code$ . .
for c$ in strchars code$
if c$ = "Q"
print code$
elif c$ = "H"
print "Hello, world!"
elif c$ = "9"
for b = 99 downto 1
print b & " bottles of beer on the wall"
print b & " bottles of beer"
print "Take one down, pass it around"
print b & " bottles of beer on the wall"
print ""
.
elif c$ = "+"
acc += 1
print acc
.
.
.
run "HQ9+"
</syntaxhighlight>
=={{header|Ela}}==
|