1 | 99 Bottles of Beer in Urban Mueller's BrainF*** (The actual
|
---|
2 | name is impolite)
|
---|
3 |
|
---|
4 | by Ben Olmstead
|
---|
5 |
|
---|
6 | ANSI C interpreter available on the internet; due to
|
---|
7 | constraints in comments the address below needs to have the
|
---|
8 | stuff in parenthesis replaced with the appropriate symbol:
|
---|
9 |
|
---|
10 | http://www(dot)cats(dash)eye(dot)com/cet/soft/lang/bf/
|
---|
11 |
|
---|
12 | Believe it or not this language is indeed Turing complete!
|
---|
13 | Combines the speed of BASIC with the ease of INTERCAL and
|
---|
14 | the readability of an IOCCC entry!
|
---|
15 |
|
---|
16 | >+++++++++[<+++++++++++>-]<[>[-]>[-]<<[>+>+<<-]>>[<<+>>-]>>>
|
---|
17 | [-]<<<+++++++++<[>>>+<<[>+>[-]<<-]>[<+>-]>[<<++++++++++>>>+<
|
---|
18 | -]<<-<-]+++++++++>[<->-]>>+>[<[-]<<+>>>-]>[-]+<<[>+>-<<-]<<<
|
---|
19 | [>>+>+<<<-]>>>[<<<+>>>-]>[<+>-]<<-[>[-]<[-]]>>+<[>[-]<-]<+++
|
---|
20 | +++++[<++++++<++++++>>-]>>>[>+>+<<-]>>[<<+>>-]<[<<<<<.>>>>>-
|
---|
21 | ]<<<<<<.>>[-]>[-]++++[<++++++++>-]<.>++++[<++++++++>-]<++.>+
|
---|
22 | ++++[<+++++++++>-]<.><+++++..--------.-------.>>[>>+>+<<<-]>
|
---|
23 | >>[<<<+>>>-]<[<<<<++++++++++++++.>>>>-]<<<<[-]>++++[<+++++++
|
---|
24 | +>-]<.>+++++++++[<+++++++++>-]<--.---------.>+++++++[<------
|
---|
25 | ---->-]<.>++++++[<+++++++++++>-]<.+++..+++++++++++++.>++++++
|
---|
26 | ++[<---------->-]<--.>+++++++++[<+++++++++>-]<--.-.>++++++++
|
---|
27 | [<---------->-]<++.>++++++++[<++++++++++>-]<++++.-----------
|
---|
28 | -.---.>+++++++[<---------->-]<+.>++++++++[<+++++++++++>-]<-.
|
---|
29 | >++[<----------->-]<.+++++++++++..>+++++++++[<---------->-]<
|
---|
30 | -----.---.>>>[>+>+<<-]>>[<<+>>-]<[<<<<<.>>>>>-]<<<<<<.>>>+++
|
---|
31 | +[<++++++>-]<--.>++++[<++++++++>-]<++.>+++++[<+++++++++>-]<.
|
---|
32 | ><+++++..--------.-------.>>[>>+>+<<<-]>>>[<<<+>>>-]<[<<<<++
|
---|
33 | ++++++++++++.>>>>-]<<<<[-]>++++[<++++++++>-]<.>+++++++++[<++
|
---|
34 | +++++++>-]<--.---------.>+++++++[<---------->-]<.>++++++[<++
|
---|
35 | +++++++++>-]<.+++..+++++++++++++.>++++++++++[<---------->-]<
|
---|
36 | -.---.>+++++++[<++++++++++>-]<++++.+++++++++++++.++++++++++.
|
---|
37 | ------.>+++++++[<---------->-]<+.>++++++++[<++++++++++>-]<-.
|
---|
38 | -.---------.>+++++++[<---------->-]<+.>+++++++[<++++++++++>-
|
---|
39 | ]<--.+++++++++++.++++++++.---------.>++++++++[<---------->-]
|
---|
40 | <++.>+++++[<+++++++++++++>-]<.+++++++++++++.----------.>++++
|
---|
41 | +++[<---------->-]<++.>++++++++[<++++++++++>-]<.>+++[<----->
|
---|
42 | -]<.>+++[<++++++>-]<..>+++++++++[<--------->-]<--.>+++++++[<
|
---|
43 | ++++++++++>-]<+++.+++++++++++.>++++++++[<----------->-]<++++
|
---|
44 | .>+++++[<+++++++++++++>-]<.>+++[<++++++>-]<-.---.++++++.----
|
---|
45 | ---.----------.>++++++++[<----------->-]<+.---.[-]<<<->[-]>[
|
---|
46 | -]<<[>+>+<<-]>>[<<+>>-]>>>[-]<<<+++++++++<[>>>+<<[>+>[-]<<-]
|
---|
47 | >[<+>-]>[<<++++++++++>>>+<-]<<-<-]+++++++++>[<->-]>>+>[<[-]<
|
---|
48 | <+>>>-]>[-]+<<[>+>-<<-]<<<[>>+>+<<<-]>>>[<<<+>>>-]<>>[<+>-]<
|
---|
49 | <-[>[-]<[-]]>>+<[>[-]<-]<++++++++[<++++++<++++++>>-]>>>[>+>+
|
---|
50 | <<-]>>[<<+>>-]<[<<<<<.>>>>>-]<<<<<<.>>[-]>[-]++++[<++++++++>
|
---|
51 | -]<.>++++[<++++++++>-]<++.>+++++[<+++++++++>-]<.><+++++..---
|
---|
52 | -----.-------.>>[>>+>+<<<-]>>>[<<<+>>>-]<[<<<<++++++++++++++
|
---|
53 | .>>>>-]<<<<[-]>++++[<++++++++>-]<.>+++++++++[<+++++++++>-]<-
|
---|
54 | -.---------.>+++++++[<---------->-]<.>++++++[<+++++++++++>-]
|
---|
55 | <.+++..+++++++++++++.>++++++++[<---------->-]<--.>+++++++++[
|
---|
56 | <+++++++++>-]<--.-.>++++++++[<---------->-]<++.>++++++++[<++
|
---|
57 | ++++++++>-]<++++.------------.---.>+++++++[<---------->-]<+.
|
---|
58 | >++++++++[<+++++++++++>-]<-.>++[<----------->-]<.+++++++++++
|
---|
59 | ..>+++++++++[<---------->-]<-----.---.+++.---.[-]<<<]
|
---|
60 |
|
---|