Brainf*ck

Make Brainf*ck interpreter.
Read Brainf*ck code as first line of stdin,
and read input characters as second line of stdin.

http://wikipedia.org/wiki/Brainfuck

Commands

> : inc pointer
< : dec pointer
+ : inc byte
- : dec byte
. : output byte
, : accept one byte
[ : if the byte at the data pointer is zero,
	jump it forward after the matching ] 
] : if the byte at the data pointer is nonzero,
	jump it back after the matching [

IN

+++++++++[>++++++++>+++++++++++>+++++<<<-]>.>++.+++++++..+++.>-.------------.<++++++++.--------.+++.------.--------.>+.
<no input>

OUT

Hello, world!

IN

+++++++++[>++++++++>+++++++++++>+++++<<<-]>.>+-.+++++++..+++.>-.------------.<++++++++.--------.+++.------.--------.>+.
<no input>

OUT

Hcjjm, umpjb!

IN

+++++++++[>++++++++>+++++++++++>+++++<<<-]>.>++.+++-+++..+++.>-.------------.<++++++++.--------.+++.------.--------.>+.
<no input>

OUT

Hejjm, umpjb!

IN

+++++++++[>++++++++>+++++++++++>+++++<<<-]>.>++.+++-+++..+++.>-.----+-------.<++++++++.--------.+++.------.--------.>+.
<no input>

OUT

Hejjm,"umpjb#

IN

+++[>+++<-]>[>,+++.<-]
Brainf*ck

OUT

Eudlqi-fn

IN

+++[>+++<-]>[>,+-+.<-]
Brainf*ck

OUT

Csbjog+dl
Login to submit solution


65 symbols pyth
Mon Nov 14 14:28:55 2016 Sait2000
 .vCim-id64^964 2cCM"඾莻槫胨蒲㢽䧎㮼棭⿳⿍痪ⷍ自ⷱ礎枾薾㛩㶰滩诪㮹䬌磭㶰緓枰䫪㮹䬌嗯僝蒰玱㏪械㛀"3^4 8
66 symbols pyth
Mon Nov 14 14:14:53 2016 Sait2000
 .vCim-id64^964 2cCM"෫埩㰆㣬椃昇⾻㫌䮾㧫檲炲䫸枰䬄枰滚诪㰈㮹曀ⷱ朎枾薾㛚㶰緓枰䫪㮹䬌嗯僝蒰玱㏪械㛀"3^4 8
67 symbols pyth
Mon Nov 14 14:06:07 2016 Sait2000
 .vCim-id64^964 2cCM"棚曑㦻槫胨蒲㢽䧎㮼棭⿳⿍痪ⷍ自ⷱ堎枾薾㛩㶰滩诪㰈㮹埀⸀僪ⷍ枾㛘ⷶ⺶柫ⶹ㶲燯僝蒾菗"3^4 8
68 symbols pyth
Mon Nov 14 13:59:26 2016 Sait2000
 .vCim-id64^964 2cCM"෫埩墻槫胨蒲㢽䧎㮼棭⿳⿍痪ⷍ自ⷱ堎枾薾㛩㶰滩诪㰈㮹埀⸀僪ⷍ枾㛗ⷶ⺶柫ⶹ㶲燍哯僝蒾菛"3^4 8
76 symbols pyth
Mon Nov 14 14:24:54 2016 Sait2000
 .v+\[sXw"+-<>.,[]"c"=hZ =tZ ak~Z.x.)Y0 aY~Z.)=|k]0 pCZ =Z.)=|H_CMw f!&Z[ )0
78 symbols pyth
Mon Nov 14 14:13:49 2016 Sait2000
 [JY.v+\[sXw"+-<>.,[]"c"=hZ =tZ aJ~Z.x.)Y0 aY~Z.x.)J0 pCZ =Z.)=|H_CMw f!&Z[ )0
81 symbols pyth
Mon Nov 14 14:04:53 2016 Sait2000
 [JYA,+\[sXw"+-<>.,[]"c"=hZ =tZ aJ~Z.x.)Y0 aY~Z.x.)J0 pCZ =Z.)H f!&Z[ )0"d_CMw.vG
82 symbols pyth
Mon Nov 14 08:11:02 2016 Sait2000
 [JYK+\[sXw"+-<>.,[]"c"=hZ =tZ aJ~Z.x.)Y0 aY~Z.x.)J0 pCZ =Z.)G f!&Z[ )0"d=G_CMw.vK
94 symbols pyth
Thu Nov 3 19:13:18 2016 Sait2000
 .v.ZCim-id64^964 2cCM"හᐬᶁ枻䕚듾稛镏䆌㯲㗒䓂乡䴪῿ተ鐸ར盘ื瑇䑢邹࿒蚥ᔏ픕搶렿醹䝁䄠賩끖譢飸⠪뗖垬볌䨴ᴪ卾㒔텠ꂵ䲑揓㋬ᔃἳ翞"3 66433
102 symbols pyth
Sat Oct 29 16:03:18 2016 Sait2000
 .v.ZCim-i%Vd[16=T64T)T=T5698cCM"㬽䛢囐럂⾔吕偩㹛숻颂㰎쀥獆왼弞퉘禒鋌앇♵趉ᴣ로ꝟ⧶萅㠶킶굙쯰쳊ꥤ㺖毸硊뀱跾抪藊渐㞁ꪢꀍ㇆暜网䩾꾏溽蝛묯㩦傾뒊㶶ᦵ嶴贷塺닜颕斓銿귻"3*T9
103 symbols pyth
Sat Oct 29 07:37:55 2016 Sait2000
 .v.ZCim-i+%hd16td64=T5698cm%Cd64"㬽䛢囐럂⾔吕偩㹛숻颂㰎쀥獆왼弞퉘禒鋌앇♵趉ᴣ로ꝟ⧶萅㠶킶굙쯰쳊ꥤ㺖毸硊뀱跾抪藊渐㞁ꪢꀍ㇆暜网䩾꾏溽蝛묯㩦傾뒊㶶ᦵ嶴贷塺닜颕斓銿귻"3*T9
104 symbols pyth
Sat Oct 29 07:24:42 2016 Sait2000
 .v.ZCim-i+%hd16td64=T5665cm%Cd64"媫⣐煃ꟺꒌ⬚텋劯뵯쩩槟⡏ᙑꉆ距숏칫씾頚ᴭ⛳⨎⛝駳皏쿢볟⾂㶕궳ⳏ躮⌙뫤뗐ᵝ팲벑軴꧂뺸풇䃌ậ쒑뫺䮿娫ἤꋭ捌㗟꾽㩏ᴽ좘뱓똢肼匹숑ꙥ샔稬꒘"3*T9
105 symbols pyth
Sat Oct 29 07:16:27 2016 Sait2000
 .v.ZCim-i+%hd16td64=T9853cm%Cd64"⚀䵶퇽톾辒餯蘼嶱璀㼿䁂瘮殽䖌궷惷萾橃ꌏ煇寨骆轘㾿楪疴倆흼䙀䄫꩙鴲缁搩蘇吘⦿篳䋖ㄟ핅悎꧀涜㾇榼훻㐦嵞네堪뤺劫뒶褀祢释ꅙ靥沃棓⡺鹀Ⲻ力㎏"3*T5
108 symbols pyth
Sat Oct 29 07:11:29 2016 Sait2000
Lim-i+%hd16td64=T9853cm%Cd64b3*T5 .v.ZCy"⚀䵶퇽톾辒餯蘼嶱璀㼿䁂瘮殽䖌궷惷萾橃ꌏ煇寨骆轘㾿楪疴倆흼䙀䄫꩙鴲缁搩蘇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