{"id":1066,"date":"2017-01-18T23:48:40","date_gmt":"2017-01-18T14:48:40","guid":{"rendered":"http:\/\/randt.jp\/?p=1066"},"modified":"2017-01-18T23:48:40","modified_gmt":"2017-01-18T14:48:40","slug":"haskellbnfc%e3%81%a7unicode%e3%82%92%e6%89%b1%e3%81%88%e3%82%8b%e6%a7%98%e3%81%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/randt.jp\/?p=1066","title":{"rendered":"[haskell]BNFC\u3067Unicode\u3092\u6271\u3048\u308b\u69d8\u306b\u3059\u308b"},"content":{"rendered":"<p>BNFC\u306echar\u306f0\u301c255\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3057\u304b\u6271\u3048\u306a\u3044\u3002\u3053\u308c\u3092Unicode\u306e\u7bc4\u56f2\u306b\u5e83\u3052\u308b\u3002<\/p>\n<pre>\r\n$ git diff\r\ndiff --git a\/source\/src\/BNFC\/Backend\/Haskell\/CFtoAlex3.hs b\/source\/src\/BNFC\/Backend\/Haskell\/CFtoAlex3.hs\r\nindex 054d576..e2b744f 100644\r\n--- a\/source\/src\/BNFC\/Backend\/Haskell\/CFtoAlex3.hs\r\n+++ b\/source\/src\/BNFC\/Backend\/Haskell\/CFtoAlex3.hs\r\n@@ -63,7 +63,7 @@ cMacros = [\r\n   \"$s = [a-z\\\\222-\\\\255] # [\\\\247]    -- small isolatin1 letter FIXME\",\r\n   \"$d = [0-9]                -- digit\",\r\n   \"$i = [$l $d _ ']          -- identifier character\",\r\n-  \"$u = [\\\\0-\\\\255]          -- universal: any character\"\r\n+  \"$u = [\\\\x0000-\\\\x10FFFF]          -- universal: any character\"\r\n   ]\r\n \r\n rMacros :: CF -> [String]\r\n$\r\n<\/pre>\n<pre>\r\n$ cat R_char.cf\r\nLTest. Test::= R_char_sequence;\r\ntoken R_char_sequence (char - [\")\"])+;\r\n$\r\n<\/pre>\n<pre>\r\n$ .\/TestRChar \r\n\u3042\u3044\u3046\u3048\u304a\r\nParse Successful!\r\n\r\n[Abstract Syntax]\r\n\r\nLTest (R_char_sequence \"\\12354\\12356\\12358\\12360\\12362\")\r\n\r\n[Linearized tree]\r\n\r\n\u3042\u3044\u3046\u3048\u304a\r\n$\r\n<\/pre>\n<p>\u3046\u307e\u304f\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BNFC\u306echar\u306f0\u301c255\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3057\u304b\u6271\u3048\u306a\u3044\u3002\u3053\u308c\u3092Unicode\u306e\u7bc4\u56f2\u306b\u5e83\u3052\u308b\u3002 $ git diff diff &#8211;git a\/source\/src\/BNFC\/Backend\/Haskell\/CFtoAle &#8230;<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/randt.jp\/?p=1066\"><span>Continue reading<\/span><i class=\"crycon-right-dir\"><\/i><\/a> <\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[145,137,19],"tags":[],"class_list":["post-1066","post","type-post","status-publish","format-standard","hentry","category-bnfc","category-haskell","category-19"],"_links":{"self":[{"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/posts\/1066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/randt.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1066"}],"version-history":[{"count":1,"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/posts\/1066\/revisions"}],"predecessor-version":[{"id":1067,"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/posts\/1066\/revisions\/1067"}],"wp:attachment":[{"href":"https:\/\/randt.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randt.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randt.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}