<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>h_sakurai</author_name>
  <author_url>https://blog.hatena.ne.jp/h_sakurai/</author_url>
  <blog_title>Scala で TAPLを勉強しつつ LLVM コンパイラを作る日記</blog_title>
  <blog_url>https://h-sakurai.hatenadiary.org/</blog_url>
  <categories>
    <anon>OCaml</anon>
    <anon>Camlp4</anon>
  </categories>
  <description>演算子順位法を使って、C言語の２項演算子をパース出来るようにしました。 &amp;と*はポインタ演算に使うので特殊に扱いますが、基本的に記号の連続は１つの演算子として字句解析するようにしました。 (* $ ocamlc -pp camlp4o calc.ml *) open Format type token = | Number of int | Op of string type e = | Num of int | Bin of e * string * e let rec lex = parser | [&lt;' (' '|'\t'|'\r'|'\n'); stream=lex &gt;] -&gt; str…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fh-sakurai.hatenadiary.org%2Fentry%2F20140515%2Fp1&quot; title=&quot; 様々な演算子 - Scala で TAPLを勉強しつつ LLVM コンパイラを作る日記&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>2014-05-15 00:00:00</published>
  <title> 様々な演算子</title>
  <type>rich</type>
  <url>https://h-sakurai.hatenadiary.org/entry/20140515/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
