source: trunk/Examples/Others/BOTTLES.BF

Last change on this file was 11, checked in by chronos, 12 years ago
  • Added: Some other examples from web.
File size: 3.1 KB
Line 
199 Bottles of Beer in Urban Mueller's BrainF*** (The actual
2name is impolite)
3
4by Ben Olmstead
5
6ANSI C interpreter available on the internet; due to
7constraints in comments the address below needs to have the
8stuff in parenthesis replaced with the appropriate symbol:
9
10http://www(dot)cats(dash)eye(dot)com/cet/soft/lang/bf/
11
12Believe it or not this language is indeed Turing complete!
13Combines the speed of BASIC with the ease of INTERCAL and
14the 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@
Note: See TracBrowser for help on using the repository browser.