<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aereal</author_name>
  <author_url>https://blog.hatena.ne.jp/aereal/</author_url>
  <blog_title>Sexually Knowing</blog_title>
  <blog_url>https://this.aereal.org/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>Go の text/scanner はレキサを書く面倒な仕事の大半をいいかんじにしてくれて本質的なコードに取り組みやすくとても便利。 しかしはてな記法や Markdown のように、行全体が単なるテキストではなくいくつかのパターンからなる文法のレキサを書くときは、パターン中に明示的に改行を含めたい。 どういうことかというと: line: inlines CR みたいに書きたい。 しかし scanner.Scan が改行を含む空白文字をスキップしてしまうので改行をトークナイズする、ということができない。 結論からいうと Scanner.Scan は Scanner.Whitespace というフ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthis.aereal.org%2Fentry%2F2017%2F02%2F27%2F104611&quot; title=&quot;Go の text/scanner で改行をトークナイズしたいときは - Sexually Knowing&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>2017-02-27 10:46:11</published>
  <title>Go の text/scanner で改行をトークナイズしたいときは</title>
  <type>rich</type>
  <url>https://this.aereal.org/entry/2017/02/27/104611</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
