{"title":"\u56db\u5247\u6f14\u7b97","author_url":"https://blog.hatena.ne.jp/h_sakurai/","provider_name":"Hatena Blog","description":"EXTEND\u3092\u4f7f\u308f\u306a\u3044\u3067Camlp4\u4f7f\u3063\u3066\u56db\u5247\u6f14\u7b97\u3092\u4f5c\u308c\u308b\u3068\u3053\u308d\u307e\u3067\u4f55\u6bb5\u968e\u304b\u306b\u5206\u3051\u3066\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002\u4eca\u306focamllex/ulex + menhir \u304c\u3088\u3044\u3089\u3057\u3044\u3093\u3067\u3059\u3051\u3069 \u307e\u3001\u4f7f\u3063\u3066\u307f\u306a\u3044\u3068\u5206\u304b\u3089\u306a\u3044\u3057\u3002 (* $ ocamlc -pp camlp4o test2.ml $ ./a.out *) open Format (* \u5b57\u53e5\u89e3\u6790 *) type token = | Number of float | Op of char let print_token ppf = function | Number n -> fprintf ppf \"Number(%f)@?\" n | Op o ->\u2026","height":"190","width":"100%","blog_url":"https://h-sakurai.hatenadiary.org/","published":"2014-05-12 00:00:00","version":"1.0","url":"https://h-sakurai.hatenadiary.org/entry/20140512/p1","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fh-sakurai.hatenadiary.org%2Fentry%2F20140512%2Fp1\" title=\"\u56db\u5247\u6f14\u7b97 - 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>","type":"rich","image_url":null,"author_name":"h_sakurai","categories":["OCaml","Camlp4"],"blog_title":"Scala \u3067 TAPL\u3092\u52c9\u5f37\u3057\u3064\u3064 LLVM \u30b3\u30f3\u30d1\u30a4\u30e9\u3092\u4f5c\u308b\u65e5\u8a18"}