<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zehnpaard</author_name>
  <author_url>https://blog.hatena.ne.jp/zehnpaard/</author_url>
  <blog_title>Arantium Maestum</blog_title>
  <blog_url>https://zehnpaard.hatenablog.com/</blog_url>
  <categories>
    <anon>OCaml</anon>
    <anon>言語処理系</anon>
  </categories>
  <description>OCamlでocamllexとmenhirを使ったパーサを書き、duneでビルドする場合の構成を調べていて、ようやく少しわかってきたので備忘録的に書き留めておく。 例として整数のたし算をパースして評価する非常に簡単な計算プログラムを実装する。 ディレクトリ構成 . ├── dune-project ├── src │ ├── ast.ml │ ├── parser.mly │ ├── lexer.mll │ └── dune └── bin ├── ex.ml └── dune トップレベル dune-projectが以下のように定義されている： (lang dune 1.0) (using …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2019%2F05%2F29%2F120512&quot; title=&quot;OCamlで言語処理系覚え書き ocamllex/menhirパーサをduneでビルドする - Arantium Maestum&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-05-29 12:05:12</published>
  <title>OCamlで言語処理系覚え書き ocamllex/menhirパーサをduneでビルドする</title>
  <type>rich</type>
  <url>https://zehnpaard.hatenablog.com/entry/2019/05/29/120512</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
