{"id":1074,"date":"2017-01-21T22:47:20","date_gmt":"2017-01-21T13:47:20","guid":{"rendered":"http:\/\/randt.jp\/?p=1074"},"modified":"2017-01-22T15:53:29","modified_gmt":"2017-01-22T06:53:29","slug":"haskellbnfcn3337-raw-string","status":"publish","type":"post","link":"https:\/\/randt.jp\/?p=1074","title":{"rendered":"[haskell][BNFC]n3337 Raw-string"},"content":{"rendered":"<p>n3337\u306eRaw-string\u3092BNFC\u3067\u5b9a\u7fa9\u3059\u308b\u3002<\/p>\n<pre>\r\n{-\r\nUnicode:\r\n\tUnicode scalar value\r\n\t\tBasic Multilingual Plane(BMP) = U+0000 - U+FFFF(*)\r\n\t\tSupplementary Multilingual Plane = U+010000 - U+10FFFF\r\n\t\t*) Reserved U+D800 - U+DFFF for Surrogate Pair encode rule.\r\n\r\n\t=> char\r\n\r\nr-char:\r\n\tAny member of the source character set, except a right parenthesis ) followed\r\n\tby the initial d-char-sequence (which may be empty) followd by a double quote.\r\n\r\n\t=> (char - [\")\"])\r\n\r\nd-char:\r\n\tAny member of the basic source character set except:\r\n\tspace, the left parenthesis (, the right parenthesis ), the backslash \\,\r\n\tand the control characters representing horizontal tab, vertical tab,\r\n\tform feed, and newline.\r\n\r\n\t=> (basic source char - [\"() \\\\\\t\\v\\f\\n\"])\r\n\r\n\t2.3 Character sets\r\n\tThe basic source character set onsists of 96 characters:\r\n\tthe space character, the control characters representing horizontal tab,\r\n\tvertical tab, form feed, and new-line, plus the following 91 graphical characters:\r\n\ta-z, A-Z, 0-9 and  _{} []#() <>%:; .?*+- \/^&|~ !=,\\\" '\r\n\r\n\t=> [\"\\t\\v\\f\\n0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_{}[]#()<>%:;.?*+-\/^&|~!=,\\\\\\\"\\'\"]\r\n-}\r\nLTest. Test::= Raw_string;\r\ntoken Raw_string ({\"u8\"} | [\"uUL\"])? {\"R\\\"\"} ([\"\\t\\n0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_{}[]#()<>%:;.?*+-\/^&|~!=,\\\\\\\"\\'\"] - [\"() \\\\\\t\\n\"])* '(' (char - [\")\"])* ')' ([\"\\t\\n0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_{}[]#()<>%:;.?*+-\/^&|~!=,\\\\\\\"\\'\"] - [\"() \\\\\\t\\n\"])* '\"';\r\n<\/pre>\n<pre>\r\n~$ .\/TestRawStr \r\nu8R\"2sS(\u3042)6wY\"\r\nParse Successful!\r\n\r\n[Abstract Syntax]\r\n\r\nLTest (Raw_string \"u8R\\\"2sS(\\12354)6wY\\\"\")\r\n\r\n[Linearized tree]\r\n\r\nu8R\"2sS(\u3042)6wY\"\r\n~$ \r\n~$ .\/TestRawStr \r\nR\"^^(\u3042\u3042\u3042)^^\"\r\nParse Successful!\r\n\r\n[Abstract Syntax]\r\n\r\nLTest (Raw_string \"R\\\"^^(\\12354\\12354\\12354)^^\\\"\")\r\n\r\n[Linearized tree]\r\n\r\nR\"^^(\u3042\u3042\u3042)^^\"\r\n~$\r\n<\/pre>\n<p>\u3046\u307e\u304f\u30d1\u30fc\u30b9\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8<\/p>\n<ul>\n<li><a href=\"http:\/\/www.open-std.org\/jtc1\/sc22\/wg21\/docs\/papers\/2012\/n3337.pdf\">2.14.5 String literals<\/a><\/li>\n<li><a href=\"http:\/\/program.station.ez-net.jp\/special\/handbook\/cpp\/syntax\/raw-string.asp\" target=\"_blank\">raw \u6587\u5b57\u5217\u3092\u4f7f\u3063\u3066\u30a8\u30b9\u30b1\u30fc\u30d7\u6587\u5b57\u3092\u7701\u7565\u3059\u308b<\/a>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>n3337\u306eRaw-string\u3092BNFC\u3067\u5b9a\u7fa9\u3059\u308b\u3002 {- Unicode: Unicode scalar value Basic Multilingual Plane(BMP) = U+0000 &#8211; U+FFFF(* &#8230;<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/randt.jp\/?p=1074\"><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,133],"tags":[],"class_list":["post-1074","post","type-post","status-publish","format-standard","hentry","category-bnfc","category-haskell","category-19","category-133"],"_links":{"self":[{"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/posts\/1074","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=1074"}],"version-history":[{"count":4,"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/posts\/1074\/revisions"}],"predecessor-version":[{"id":1078,"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/posts\/1074\/revisions\/1078"}],"wp:attachment":[{"href":"https:\/\/randt.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randt.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randt.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}