<?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>GCC</anon>
  </categories>
  <description>昨日、Rubyのソースコードを見ていたら、構文解析部分はyaccで作られていることがわかった。僕でも電卓くらいなら作れそうだ!!という気分になったので、Flex&amp;Bisonで電卓を作ってみた。電卓といっても計算は正の整数のみ。演算子は+,-,*,/で、()の計算も出来ます。 calc.l Flex(lex)は字句解析担当です。この時点で文字の入力を数値に変換してBisonにreturnします。 %{ #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &quot;calc.tab.h&quot; %} NUMBER [0-9]+ SPACE [\t ] OP [+-/*…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20070507%2F1178537799&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>2007-05-07 20:36:39</published>
  <title> 電卓作ってみた。</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20070507/1178537799</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
