{"categories":["OCaml","\u8a00\u8a9e\u51e6\u7406\u7cfb"],"provider_url":"https://hatena.blog","version":"1.0","blog_title":"Arantium Maestum","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2019%2F06%2F11%2F090829\" title=\"ocamllex\u306elexer\u3068menhir\u306eparser\u306e\u9593\u306b\u4efb\u610f\u306eOCaml\u30b3\u30fc\u30c9\u306b\u3088\u308b\u5909\u63db\u3092\u633f\u5165\u3059\u308b - Arantium Maestum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","blog_url":"https://zehnpaard.hatenablog.com/","type":"rich","published":"2019-06-11 09:08:29","title":"ocamllex\u306elexer\u3068menhir\u306eparser\u306e\u9593\u306b\u4efb\u610f\u306eOCaml\u30b3\u30fc\u30c9\u306b\u3088\u308b\u5909\u63db\u3092\u633f\u5165\u3059\u308b","url":"https://zehnpaard.hatenablog.com/entry/2019/06/11/090829","author_name":"zehnpaard","height":"190","width":"100%","image_url":null,"author_url":"https://blog.hatena.ne.jp/zehnpaard/","description":"OCaml\u3067\u30d1\u30fc\u30b5\u3092\u66f8\u304f\u5834\u5408 lexer\u3092ocamllex\u3067\u66f8\u304f \u305d\u306elexer\u3092\u53d7\u3051\u53d6\u308bparser\u3092menhir\u3067\u66f8\u304f \u3068\u3044\u3046\u306e\u304c\u6700\u8fd1\u306e\u9244\u677f\u306e\u3088\u3046\u3060\u3002 let lexbuf = Lexing.from_channel stdin in let exp = Parser.f Lexer.f lexbuf in print (eval exp) \u3068\u3044\u3046\u3088\u3046\u306a\u6d41\u308c\u3002 ocamllex\u3082menhir\u3082\u69cb\u6587\u304c\u666e\u901a\u306eOCaml\u3067\u306f\u306a\u304f\u3001\u3044\u3063\u305f\u3093\u72ec\u81ea\u69cb\u6587\u3067\u66f8\u304b\u308c\u305f.mll/.mly\u30d5\u30a1\u30a4\u30eb\u3092\u4e21\u30c4\u30fc\u30eb\u3067OCaml\u306e.ml\u306b\u5909\u63db\u3057\u3066\u304b\u3089\u666e\u901a\u306eOCaml\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u3057\u3066\u4f7f\u3046\u3002 \u306a\u306e\u3067\u9577\u3089\u304f\u3071\u3063\u3068\u898b\u3069\u3046\u3084\u3063\u3066o\u2026"}