Ruby ã®æ£è¦è¡¨ç¾ã ã㧠Brainfuck ã¤ã³ã¿ããªã¿ãä½ããã¨ãã§ãã¾ãããæ£è¦è¡¨ç¾ã®å®è¡ã¯ =~ ã ããªã®ã§ãã«ã¼ããªã©ãæ£è¦è¡¨ç¾ã®å é¨ã§å®è¡ãã¦ã¾ãã https://github.com/shinh/hack/blob/master/bf_rb_reg/bf.rb ã¤ã¾ãã©ããããã¨ãã§ãããã¨ããã¨ã BF_REG ã¨ãã Regexp 㨠BF_SUFFIX ã¨ããæååå®æ°ããã£ã¦ã bf ã¨ããæååã«æ ¼ç´ããã Brainfuck ã®ã³ã¼ãã BF_REG =~ bf + BF_SUFFIX ã§å®è¡ãããã¨ãã§ãã¾ããåºå㯠$~['o0'], $~['o1'], ... ã«å ¥ã£ã¦ããã®ã§ã output = '' 256.times do |i| o = $~["o#{i}"] break if !o output += o end çãªã³ã¼ãã§åãåºããã¨ãã§ã
8æã®é»ç³ãããåçã³ã³ãã¹ãã§ã主å¬ããé森çã®é»ç³ãããå®è¡å§å¡ä¼ããæé«è³ã®é»ç³å¸é·è³ãå å®ããå¾ãä¸è»¢ãã¦åãæ¶ãããã¨ã16æ¥ãåãã£ããå å®å¾ãä½åã«åã£ã津軽æè¸ããèãå°å¥³ã¯èªæ®ºãã浪岡ä¸å¦æ ¡2å¹´ã®å¥³åçå¾ï¼é森å¸ï¼ã¨åãããå é¨ããã波風ãç«ã¦ãªãæ¹ãããããªã©ç°è«ãåºã¦ãååè°ããã¨ããã å¸é·è³ã«ãã£ããå å®ããåçã¯8æ15æ¥ã«æ®å½±ãçå¾ã¯å25æ¥ã«äº¡ããªã£ããæ®å½±è ã®ç·æ§ï¼é森å¸ï¼ã¯çå¾ã¨é¢èã¯ãªãã亡ããªãåã«å¿åããã¨ããã å®è¡å§ã¯å å®ããä»æ11æ¥ã被åä½ã®è¸ãæãæå±ããå£ä½ã«é£çµ¡ããéããã®çå¾ã¨ææ¡ããé¢ä¿è ã®æ¿è«¾ãããã°è¯ããã¨èããæ®å½±è ãéºæã«äºæ ã説æããæè³ãåçå ¬è¡¨ã®å¿«è«¾ãå¾ã¦ããã ãããã13æ¥å¤ãå®è¡å§ã®æ å½è ã審æ»å¡ãã®ååè°ã®çµæãå å®åãæ¶ãã決ãããç¿14æ¥ãäºåæ¹ãæ®å½±è ã«åè³ã®è¾éãè¦è«ããäºæ¿ãå¾ããéºæã«ãçµç·¯
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}