Brainfuck interpreter

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Interpret a Brainfuck program. EOF returns 0. Cells wrap around, but memory pointer does not. A ! character separates the program from input.

See http://esolangs.org/wiki/BF for spec and examples.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

Sample output:

Hello World!

Sample input:_

,[.,]!Input happens character by character.

Sample output:

Input happens character by character.

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs310.02352014/07/11 22:54:100B / 18B / 12B
2leonid310.02392014/07/16 09:56:260B / 18B / 10B
3jpl310.02362014/07/17 04:20:130B / ?B / ?B
4Histocrat (cheat)320.02272014/07/15 23:35:210B / 19B / 11B
5kaki310.04542014/12/02 15:31:550B / 18B / 11B

Perl _

RankUserSizeTimeDateStatistics
1mitchs300.02152014/07/11 22:50:440B / 15B / 14B
2teebee300.02262014/07/12 02:16:220B / 15B / 14B
3test1300.02372014/07/14 00:35:510B / ?B / ?B
4brx300.02162014/07/17 07:58:520B / 15B / 14B
5whio300.02162014/08/08 02:45:460B / 15B / 14B

Python _

RankUserSizeTimeDateStatistics
1mitchs410.07262014/07/11 16:51:470B / 27B / 12B
2hallvabo410.05712014/07/16 09:40:340B / 27B / 12B
3leonid410.06682014/07/16 09:49:500B / 27B / 12B
4rolf410.07432014/07/26 01:55:020B / 27B / 12B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs380.39932014/07/11 16:53:560B / 24B / 13B

Scheme _

RankUserSizeTimeDateStatistics
1kaki510.03862014/12/02 15:24:490B / 24B / 26B

JavaScript _

RankUserSizeTimeDateStatistics
1_nderscore520.02852014/07/12 00:43:500B / 37B / 13B
2teebee520.03112014/07/12 07:47:250B / 37B / 13B

Lua _

RankUserSizeTimeDateStatistics
1Hendrik480.08412014/07/26 16:21:150B / 30B / 15B
2teebee480.02152014/07/26 18:02:310B / 30B / 15B

BASIC _

RankUserSizeTimeDateStatistics
1teebee540.02162014/08/02 11:17:400B / 31B / 19B

K _

RankUserSizeTimeDateStatistics
1teebee280.02162014/07/27 03:10:120B / 14B / 13B

C _

RankUserSizeTimeDateStatistics
1mitchs460.02262014/07/11 23:14:220B / 27B / 18B
2teebee460.01082014/07/17 07:40:550B / 27B / 18B

Haskell _

RankUserSizeTimeDateStatistics
1henkma380.02172014/07/25 03:02:080B / 30B / 6B
2cojna380.02632014/07/26 14:27:170B / 30B / 6B
3nooodl600.02802014/07/26 01:40:490B / ?B / ?B

AWK _

RankUserSizeTimeDateStatistics
1mitchs280.02102014/07/16 22:30:420B / 17B / 10B
2teebee280.02112014/07/17 06:27:240B / 17B / 10B
3llhuii280.02102014/07/17 09:38:260B / 17B / 10B

sed _

RankUserSizeTimeDateStatistics
1teebee230.02222014/07/30 16:48:320B / 13B / 7B
2mitchs230.02112014/08/05 18:19:540B / 13B / 7B

xgawk _

RankUserSizeTimeDateStatistics
1mitchs280.02192014/07/16 22:30:190B / 17B / 10B
2teebee280.03012014/07/17 06:31:550B / 17B / 10B
3llhuii280.02142014/07/17 09:38:380B / 17B / 10B

R _

RankUserSizeTimeDateStatistics
1teebee640.26182014/08/08 04:20:210B / 44B / 19B
2NikNakk4300.30912014/08/08 03:34:440B / ?B / ?B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)470.03502014/07/11 16:26:211B / 10B / 35B
2mitchs (cheat)450.02222014/08/12 12:48:462B / 10B / 32B

GolfScript _

RankUserSizeTimeDateStatistics
1nooodl230.03332014/07/17 06:52:530B / ?B / ?B
2whio230.04512014/08/08 08:04:410B / 13B / 9B
3JWinslow23 (I am such a cheater)600.03782014/07/20 09:40:350B / 47B / 8B

FlogScript _

RankUserSizeTimeDateStatistics
1nooodl80.06352014/07/25 04:34:010B / ?B / ?B
2NikNakk210.47472014/08/08 03:40:250B / ?B / ?B
3milieu70.07422014/08/11 14:05:020B / ?B / ?B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik330.02252014/08/04 13:07:020B / 20B / 12B
2Hendrik250.10762014/08/11 00:36:310B / 15B / 9B

Vim _

RankUserSizeTimeDateStatistics
1udioica210.02242017/05/30 04:51:141B / 17B / 2B

Groovy _

RankUserSizeTimeDateStatistics
1teebee401.74572014/07/26 07:30:040B / 24B / 15B

Logo _

RankUserSizeTimeDateStatistics
1teebee420.02242014/07/27 08:44:060B / 30B / 5B

Language Ranking_

RankLangUserSizeScore
1FlogScriptmilieu710000
2Vimudioica213333
3GolfScriptnooodl233043
4sedteebee233043
5BurlesqueHendrik252800
6xgawkmitchs282500
7AWKmitchs282500
8Kteebee282500
9Perlmitchs302333
10Rubymitchs312258
11Python3mitchs381842
12Haskellhenkma381842
13Groovyteebee401750
14Pythonmitchs411707
15Logoteebee421666
16Brainfuckmitchs (cheat)451555
17Cmitchs461521
18LuaHendrik481458
19Schemekaki511372
20JavaScript_nderscore521346
21BASICteebee541296
22Rteebee641093

return top