{"title":"Generalized LR\u6cd5\u3092Haskell\u3067 Part2","provider_name":"Hatena Blog","blog_url":"https://tech-blog.pocket7878.com/","categories":["Haskell"],"published":"2013-05-30 09:23:37","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-blog.pocket7878.com%2Fentry%2F2013%2F05%2F30%2F092337\" title=\"Generalized LR\u6cd5\u3092Haskell\u3067 Part2 - Let&#39;s write \u03b2\" 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":"Let's write \u03b2","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/P/Pocket7878_dev/20130530/20130530092216.png","width":"100%","type":"rich","url":"https://tech-blog.pocket7878.com/entry/2013/05/30/092337","author_name":"Pocket7878_dev","author_url":"https://blog.hatena.ne.jp/Pocket7878_dev/","description":"\u524d\u56de\u306fXML\u98a8\u306b\u6728\u3092\u51fa\u529b\u3059\u308b\u3068\u3044\u3046\u6a5f\u80fd\u3092\u3064\u3051\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u672c\u547d\u306fDOT\u8a00\u8a9e\u306b\u51fa\u529b\u3059\u308b\u4e8b\u3067\u3059\u3002 \u305d\u3063\u3061\u306e\u307b\u3046\u304c\u78ba\u8a8d\u3057\u3084\u3059\u3044\u304b\u3089\u306d\u3002\u3068\u3044\u3046\u308f\u3051\u3067\u4ed8\u3051\u3066\u307f\u307e\u3057\u305f\u3002 \u4ee5\u4e0b\u306f\u5909\u66f4\u3057\u305f\u90e8\u5206\u3060\u3051 -- ParseTree\u3092DOT\u8a00\u8a9e\u3068\u3057\u3066\u51fa\u529b type IndentLevel = Int --- \u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u30b9\u30da\u30fc\u30b9\u3067\u3064\u3051\u308b putIndent :: Handle -> IndentLevel -> IO () putIndent h ident = hPutStr h $ take ident (repeat ' ') --- \u8fba\u3092\u51fa\u529b(\u59cb\u70b9\u306f\u304b\u306a\u3089\u305afork\u3067\u3042\u308b) printEdge :: Handl\u2026","provider_url":"https://hatena.blog","version":"1.0","height":"190"}