{"width":"100%","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/E_Mattsan/","height":"190","author_name":"E_Mattsan","type":"rich","categories":["\u3081\u3082","Ruby","PEG"],"provider_name":"Hatena Blog","description":"http://treetop.rubyforge.org/index.html https://github.com/nathansobo/treetop calc.tt grammar Arithmetic rule additive multitive r:( op:[+-] multitive )* { def to_i r.elements.reduce(multitive.to_i) do |s, e| s.send(e.op.text_value, e.multitive.to_i) end end } end rule multitive primary r:( op:[*/%]\u2026","title":"\u30d1\u30fc\u30b5\u3001\u306a\u3093\u3069\u3067\u3082","blog_url":"https://blog.emattsan.org/","published":"2013-08-15 23:19:42","version":"1.0","url":"https://blog.emattsan.org/entry/20130815/1376576382","blog_title":"\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20130815%2F1376576382\" title=\"\u30d1\u30fc\u30b5\u3001\u306a\u3093\u3069\u3067\u3082 - \u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}