{"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fh-sakurai.hatenadiary.org%2Fentry%2F20090923%2Fp9\" title=\"\u610f\u5473\u89e3\u6790 - Scala \u3067 TAPL\u3092\u52c9\u5f37\u3057\u3064\u3064 LLVM \u30b3\u30f3\u30d1\u30a4\u30e9\u3092\u4f5c\u308b\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u610f\u5473\u89e3\u6790","blog_url":"https://h-sakurai.hatenadiary.org/","blog_title":"Scala \u3067 TAPL\u3092\u52c9\u5f37\u3057\u3064\u3064 LLVM \u30b3\u30f3\u30d1\u30a4\u30e9\u3092\u4f5c\u308b\u65e5\u8a18","image_url":null,"type":"rich","author_name":"h_sakurai","url":"https://h-sakurai.hatenadiary.org/entry/20090923/p9","author_url":"https://blog.hatena.ne.jp/h_sakurai/","published":"2009-09-23 00:00:08","categories":[],"height":"190","width":"100%","description":"\u6700\u5f8c\u306b\u3001\u610f\u5473\u89e3\u6790\u3092\u884c\u3046\u30af\u30e9\u30b9\u3092\u4f5c\u308a\u307e\u3059\u3002 class Calc def initialize @parser = Parser.new end def evalute src exp = @parser.parse(src) execute(exp) end def execute exp if exp.instance_of?(Array) case exp[0] when \"+\" execute(exp[1]) + execute(exp[2]) when \"-\" execute(exp[1]) - execute(exp[2]) when \"*\" execute(exp[1]) * ex\u2026","version":"1.0","provider_url":"https://hatena.blog"}