<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sonota88</author_name>
  <author_url>https://blog.hatena.ne.jp/sonota88/</author_url>
  <blog_title>memo486</blog_title>
  <blog_url>https://memo88.hatenablog.com/</blog_url>
  <categories>
    <anon>Kotlin</anon>
  </categories>
  <description>Kotlin に入門しています。 まずは何か適当なものを作りながら慣れようということで、四則演算と剰余のみのexprコマンドをRubyで作ってみた を移植してみました。手書きの再帰下降パーサです。 # (100 - 2 - 1) / (1 + 2) % 5 * 3 # =&gt; 97 / 3 % 5 * 3 # =&gt; 32 % 5 * 3 # =&gt; 2 * 3 # =&gt; 6 ## 実行の例 $ kotlin MyExpr.kts -- \( 100 - 2 - 1 \) / \( 1 + 2 \) % 5 \* 3 6 ## 確認のため同じ引数で expr コマンドを実行 $ expr \( 10…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo88.hatenablog.com%2Fentry%2F2020%2F07%2F11%2F120000&quot; title=&quot;四則演算と剰余のみのexprコマンドをKotlinで作ってみた - memo486&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>2020-07-11 12:00:00</published>
  <title>四則演算と剰余のみのexprコマンドをKotlinで作ってみた</title>
  <type>rich</type>
  <url>https://memo88.hatenablog.com/entry/2020/07/11/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
