<?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>Essentials of Programming Languages</anon>
    <anon>OCaml</anon>
    <anon>言語処理系</anon>
  </categories>
  <description>前回登場したLETREC言語に型注釈と型検査をつけたCHECKED言語を実装する。 github.com 具体的には無名関数を定義するprocの仮引数、再帰関数を定義するletrecの仮引数と戻り値に対して型注釈を必要とし、その情報を元に型検査する。 型 CHECKEDで使う型は以下のように定義されている： type t = Int | Bool | Proc of t * t 整数と真偽と、あとは任意の二つの型を組み合わせる関数のための再帰型。後者はネストが可能で(Bool -&gt; Bool) -&gt; Intなどといった型を作ったりできる。 型注釈の記述はこんな感じ： letrec int do…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2019%2F06%2F25%2F185155&quot; title=&quot;型推論を実装する　その２　（型検査のある言語を作る） - 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-06-25 18:51:55</published>
  <title>型推論を実装する　その２　（型検査のある言語を作る）</title>
  <type>rich</type>
  <url>https://zehnpaard.hatenablog.com/entry/2019/06/25/185155</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
