Languages · Turing tarpits2007
HQ9F+
HQ9+ with one more command: F prints FizzBuzz up to the number in the accumulator.
2007 · esolangs.org
Tested with 2 examples and 2 known programs · Test method
Run it
Example
Expected output
1 2 Fizz 4 Buzz
Output
What it is
HQ9F+: HQ9+ plus F, FizzBuzz from 1 up to the accumulator; case-insensitive, as the page's example writes f
How its machine works
Its machine has case-insensitive commands, one accumulator.
HQ9F+ reads no input.
Examples
Example
Expected output
1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz
Output
Quirks
- HQ9F+ ignores case.
- A run stops after 3,000,000 steps.
See also
Also in Turing tarpits
Write your own in Run Convert a program from HQ9F+
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: hq9f.
Command line
shib run hq9f -e '+++++f'shib manual hq9fSource
- Module
langs/dialects/ports.js- Interpreter
langs/dialects/hq9.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org