<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakaBox</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakaBox/</author_url>
  <blog_title>ボクノス</blog_title>
  <blog_url>https://boxnos.hatenablog.com/</blog_url>
  <categories>
    <anon>Scheme</anon>
  </categories>
  <description>僕はSchemerなので、演算子の優先順位とかよくわかりません。だから、悪の中置記法を前置に変えてしまえばハッピーになると思うんだよ。 と思ったけど、これが結構むじぃ。 まずは定義。 式 ::= 項 ([+-] 項)* 項 ::= 因子 ([*-] 因子)* 因子 ::= 数 | '(' 式 ')'定義どうりに書いてけばいいんだけど、 左側の項を見たとき、残りは何か、その結果は何か。という情報が必要になる。 つまり、その場でリストに挿入出来ないので、多値というか継続というかが必要になる。スタックでもよさげ。 しかも、「([+-] 項)*」というように連続がある。 結構めんどい。 (define…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20080430%2F1209542765&quot; title=&quot; 中置記法から前置記法の変換 - ボクノス&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>2008-04-30 17:06:05</published>
  <title> 中置記法から前置記法の変換</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20080430/1209542765</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
