source: trunk/Examples/Others/wc.b

Last change on this file was 11, checked in by chronos, 12 years ago
  • Added: Some other examples from web.
File size: 532 bytes
Line 
1>>>+>>>>>+>>+>>+[<<],[
2 -[-[-[-[-[-[-[-[<+>-[>+<-[>-<-[-[-[<++[<++++++>-]<
3 [>>[-<]<[>]<-]>>[<+>-[<->[-]]]]]]]]]]]]]]]]
4 <[-<<[-]+>]<<[>>>>>>+<<<<<<-]>[>]>>>>>>>+>[
5 <+[
6 >+++++++++<-[>-<-]++>[<+++++++>-[<->-]+[+>>>>>>]]
7 <[>+<-]>[>>>>>++>[-]]+<
8 ]>[-<<<<<<]>>>>
9 ],
10]+<++>>>[[+++++>>>>>>]<+>+[[<++++++++>-]<.<<<<<]>>>>>>>>]
11[Counts lines, words, bytes. Assumes no-change-on-EOF or EOF->0.
12Daniel B Cristofani (cristofdathevanetdotcom)
13http://www.hevanet.com/cristofd/brainfuck/]
Note: See TracBrowser for help on using the repository browser.