<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bellbind</author_name>
  <author_url>https://blog.hatena.ne.jp/bellbind/</author_url>
  <blog_title>ラシウラ</blog_title>
  <blog_url>https://bellbind.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>Haskellとかでやってる中値演算子の結合や優先度をコード内で指定できるような、自分の言語を作るための実装について考えてみる。たぶん、中値演算子は構文的に区別できるので、パーズ時には優先度や結合度関係なしに式の単調の二項演算子ツリーをつくる。そして評価時には、まず演算子の優先度データベースをつくり、それを元に式ツリーをたどるパーザーを作って、その中で評価させるんだろう。BNF的には exp = infixexp infixexp = uniexp infix infixexp | uniexp uniexp = &quot;(&quot; exp &quot;)&quot; | num infix = &lt;infix pattern…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbellbind.hatenadiary.org%2Fentry%2F20070519%2F1179564014&quot; title=&quot; 優先順位を自由定義できる中置演算子の実装方法を考えるmemo - ラシウラ&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>2007-05-19 17:40:14</published>
  <title> 優先順位を自由定義できる中置演算子の実装方法を考えるmemo</title>
  <type>rich</type>
  <url>https://bellbind.hatenadiary.org/entry/20070519/1179564014</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
