The FizzBuzz programming language is a special-purpose language specifically created to solve the FizzBuzz problem.
- http://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ by Imran Ghory
- http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html by Jeff Atwood
It is not suitable for the 99 Bottles of Beer web site. I may eventually devise a hybrid of the FizzBuzz and 99 programming languages.
The language definition is relatively straightforward.
A FizzBuzz program consists of a single text file.
On each line, everything from a
#character to the end of the line is ignored, i.e., comments are introduced by
#characters. (Unlike some other languages,
#characters within character constants and string literals are not an issue.)
After comments are stripped, leading and trailing white space are ignored.
Empty lines are ignored.
Anything not ignored is a syntax error.
- A syntactically valid FizzBuzz program, when executed, prints exactly 100 lines of output as specified by the FizzBuzz problem.
This distribution includes a FizzBuzz interpreter
fizzbuzz, written in Perl 5,
another implementation of the interpreter,
fizzbuzz_interp.c written in C,
two sample FizzBuzz program,
empty.fizzbuzz, and a sample output
fizzbuzz.fizzbuzz.out. The interpreter can read its input either
from a file named on the command line, or from standard input if no
arguments are given. The interpreter implements a language extension,
permitting multiple input files to be treated as a single FizzBuzz program;
this extension is not supported by the language definition, as no
actual use for it has been discovered.
For your convenience, most systems already include a sample FizzBuzz program,
/dev/null (on Unix-like systems),
MS-DOS and Windows),