{"url":"https://computeralgebra.hatenablog.com/entry/2024/10/27/225626","height":"190","categories":["\u81ea\u7531\u30e2\u30ce\u30a4\u30c9\u306e\u30a4\u30c6\u30ec\u30fc\u30bf\u30fc"],"provider_url":"https://hatena.blog","version":"1.0","published":"2024-10-27 22:56:26","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcomputeralgebra.hatenablog.com%2Fentry%2F2024%2F10%2F27%2F225626\" title=\"\u81ea\u7531\u30e2\u30ce\u30a4\u30c9\u306e\u30a4\u30c6\u30ec\u30fc\u30bf\u30fc(10) - \u975e\u5c02\u9580\u7684\u30b7\u30f3\u30ae\u30e5\u30e9\u30ea\u30c6\u30a3\u30fc\u7814\u7a76\u6240\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u975e\u5c02\u9580\u7684\u30b7\u30f3\u30ae\u30e5\u30e9\u30ea\u30c6\u30a3\u30fc\u7814\u7a76\u6240","author_name":"computeralgebra","image_url":"https://m.media-amazon.com/images/I/41EZ5GV0P4L._SL500_.jpg","width":"100%","title":"\u81ea\u7531\u30e2\u30ce\u30a4\u30c9\u306e\u30a4\u30c6\u30ec\u30fc\u30bf\u30fc(10)","type":"rich","description":"\u81ea\u7531\u30e2\u30ce\u30a4\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u4f5c\u6210(Python\u7248 5) \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c \u69cb\u6587\u89e3\u6790\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002prog.eval() \u306b\u3088\u3063\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 from lark import Lark parser = Lark(grammar, parser=\"lalr\") custom_transformer = CustomTransformer() src = \"def fib(x, y) = x & fib(y, x + y);\\nfib(0, 1)\" prog: Program = custom_transformer.transform(parser\u2026","blog_url":"https://computeralgebra.hatenablog.com/","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/computeralgebra/"}