<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ytqwerty</author_name>
  <author_url>https://blog.hatena.ne.jp/ytqwerty/</author_url>
  <blog_title>Note</blog_title>
  <blog_url>https://ytqwerty.hatenadiary.org/</blog_url>
  <categories>
    <anon>OCaml</anon>
    <anon>Parser</anon>
  </categories>
  <description>エラーリカバリで無限ループしてました。 こんな感じの文法があったとして。 start := x e x ::= w x x ::= x y x ::= z 最初にwを与えるとこうなります。(startはスタック) x ::= w * x | * w x x ::= * x y x ::= * z そこへ、eが来ると、エラーリカバリによって現在の状態で待っている記号のいずれかが補われます。 wまたはyが選ばれてしまうと無限ループ。wが選ばれないための修正として、coreに含まれないルールはリカバリの対象から外しました。 yが選ばれないための修正として、左再帰はリカバリの対象から外しました。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fytqwerty.hatenadiary.org%2Fentry%2F20080510%2Fp3&quot; title=&quot; Castling修正 - Note&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-05-10 00:00:02</published>
  <title> Castling修正</title>
  <type>rich</type>
  <url>https://ytqwerty.hatenadiary.org/entry/20080510/p3</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
