<?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>Algebraic Effects</anon>
    <anon>言語処理系</anon>
  </categories>
  <description>前回「任意のハンドラを組み合わせてインタプリタを作るといったComposabilityも持たせることができる」と書いた。今回はそのComposable Interpreter実装への準備段階として、前回のコードをリファクタしてeval関数とeffect handlerをある程度分離した形にする。 大まかに言って変更箇所は二点： インタプリタ拡張のeval2、eval3の中で定義されているhandlerをeval関数の外に出す Int, Add, SubなどもExtensionエフェクトを使ったインタプリタ拡張として表現する eval関数からhandlerを出す 前回のコードをみると、eval2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2023%2F01%2F04%2F095849&quot; title=&quot;OCaml 5.0のEffect HandlersでExtensible Interpreter 続 - 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>2023-01-04 09:58:49</published>
  <title>OCaml 5.0のEffect HandlersでExtensible Interpreter 続</title>
  <type>rich</type>
  <url>https://zehnpaard.hatenablog.com/entry/2023/01/04/095849</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
