{"id":2885,"date":"2013-08-16T09:08:27","date_gmt":"2013-08-16T00:08:27","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=2885"},"modified":"2013-08-16T09:08:27","modified_gmt":"2013-08-16T00:08:27","slug":"2-1-%e7%ac%ac2%e7%ab%a0%e3%81%ae%e3%81%be%e3%81%88%e3%81%8c%e3%81%8d","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/2885","title":{"rendered":"2.1. \u7b2c2\u7ae0\u306e\u307e\u3048\u304c\u304d"},"content":{"rendered":"<p><a href=\"https:\/\/peta.okechan.net\/blog\/archives\/2836\" title=\"LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5\">LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u65e5\u672c\u8a9e\u8a33<\/a><br \/>\n\u7b2c2\u7ae0 \u4e07\u83ef\u93e1: \u69cb\u6587\u89e3\u6790\u5668\u3068AST\u306e\u5b9f\u88c5<br \/>\n<a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl02.html#chapter-2-introduction\" target=\"_blank\">\u7b2c1\u7bc0 \u7b2c2\u7ae0\u306e\u307e\u3048\u304c\u304d<\/a><\/p>\n<p>&#8220;LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5&#8221;\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u7b2c2\u7ae0\u3078\u3088\u3046\u3053\u305d\u3002<br \/>\n\u3053\u306e\u7ae0\u3067\u306f\u3001\u6211\u3005\u306e\u4e07\u83ef\u93e1\u8a00\u8a9e\u306e\u69cb\u6587\u89e3\u6790\u5668\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u3001\u7b2c1\u7ae0\u3067\u69cb\u7bc9\u3057\u305f\u5b57\u53e5\u89e3\u6790\u5668\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3059\u308b\u3002<br \/>\n\u69cb\u6587\u89e3\u6790\u5668\u3092\u624b\u306b\u5165\u308c\u305f\u3089\u3001\u6b21\u306fAST\uff08\u62bd\u8c61\u69cb\u6587\u6728\u3001Abstract Syntax Tree\uff09\u3092\u5b9a\u7fa9\u3057\u69cb\u7bc9\u3059\u308b\u3002<\/p>\n<p>\u6211\u3005\u304c\u69cb\u7bc9\u3059\u308b\u69cb\u6587\u89e3\u6790\u5668\u306f\u3001\u4e07\u83ef\u93e1\u8a00\u8a9e\u306e\u69cb\u6587\u89e3\u6790\u306e\u305f\u3081\u306b\u518d\u5e30\u4e0b\u964d\u69cb\u6587\u89e3\u6790\uff08Recursive Descent Parsing\uff09\u3068\u3001\u6f14\u7b97\u5b50\u512a\u5148\u9806\u4f4d\u69cb\u6587\u89e3\u6790\uff08Operator-Precedence Parsing\uff09\u306e\u7d44\u307f\u5408\u308f\u305b\u3092\u4f7f\u7528\u3059\u308b\u3002\uff08\u5f8c\u8005\u306f\u4e8c\u9805\u6f14\u7b97\u5f0f\uff08binary expressions\uff09\u306e\u305f\u3081\u306b\u3001\u524d\u8005\u306f\u305d\u306e\u4ed6\u306e\u5168\u3066\u306e\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u3002\uff09<br \/>\n\u69cb\u6587\u89e3\u6790\u5668\u3092\u4f5c\u308b\u524d\u306b\u3001\u305d\u306e\u51fa\u529b\u3067\u3042\u308bAST\u306b\u3064\u3044\u3066\u6b21\u306e\u7bc0\u304b\u3089\u898b\u3066\u3044\u3053\u3046\u3002<\/p>\n<p><em>\u8a33\u6ce8: binary operator\u306f\u4e8c\u9805\u6f14\u7b97\u5b50\u305d\u306e\u3082\u306e\u3092\u3001binary expression\u306f\u4e8c\u9805\u6f14\u7b97\u5b50\u3068\u305d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u542b\u3080\u5f0f\u3092\u8868\u3059\u3093\u3058\u3083\u306a\u3044\u304b\u306a\u3068\u601d\u3046\u3002<br \/>\n\u30b3\u30f3\u30bb\u30f3\u30b5\u30b9\u304c\u5f97\u3089\u308c\u3066\u308b\u3088\u3046\u306a\u8a33\u304c\u5206\u304b\u3089\u306a\u3044\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u3084\u3084\u3053\u3057\u3044\u3051\u3069\u3053\u3053\u3067\u306fbinary expression\u3092\u4e8c\u9805\u6f14\u7b97\u5f0f\u3068\u8a33\u3059\u3002<br \/>\n\u3053\u308c\u306f\u79c1\u304c\u52dd\u624b\u306b\u8003\u3048\u305f\u8a33\u306a\u306e\u3067\u6ce8\u610f\u3002<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p><a href=\"https:\/\/peta.okechan.net\/blog\/archives\/2836\" title=\"LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5\">LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u65e5\u672c\u8a9e\u8a33<\/a><br \/>\n\u7b2c2\u7ae0 \u4e07\u83ef\u93e1: \u69cb\u6587\u89e3\u6790\u5668\u3068AST\u306e\u5b9f\u88c5<br \/>\n<a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl02.html#chapter-2-introduction\" target=\"_blank\">\u7b2c1\u7bc0 \u7b2c2\u7ae0\u306e\u307e\u3048\u304c\u304d<\/a><\/p>\n<p>&#8220;LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5&#8221;\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u7b2c2\u7ae0\u3078\u3088\u3046\u3053\u305d\u3002<br \/>\n\u3053\u306e\u7ae0\u3067\u306f\u3001\u6211\u3005\u306e\u4e07\u83ef\u93e1\u8a00\u8a9e\u306e\u69cb\u6587\u89e3\u6790\u5668\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u3001\u7b2c1\u7ae0\u3067\u69cb\u7bc9\u3057\u305f\u5b57\u53e5\u89e3\u6790\u5668\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3059\u308b\u3002<br \/>\n\u69cb\u6587\u89e3\u6790\u5668\u3092\u624b\u306b\u5165\u308c\u305f\u3089\u3001\u6b21\u306fAST\uff08\u62bd\u8c61\u69cb\u6587\u6728\u3001Abstract Syntax Tree\uff09\u3092\u5b9a\u7fa9\u3057\u69cb\u7bc9\u3059\u308b\u3002<\/p>\n<p>\u6211\u3005\u304c\u69cb\u7bc9\u3059\u308b\u69cb\u6587\u89e3\u6790\u5668\u306f\u3001\u4e07\u83ef\u93e1\u8a00\u8a9e\u306e\u69cb\u6587\u89e3\u6790\u306e\u305f\u3081\u306b\u518d\u5e30\u4e0b\u964d\u69cb\u6587\u89e3\u6790\uff08Recursive Descent Parsing\uff09\u3068\u3001\u6f14\u7b97\u5b50\u512a\u5148\u9806\u4f4d\u69cb\u6587\u89e3\u6790\uff08Operator-Precedence Parsing\uff09\u306e\u7d44\u307f\u5408\u308f\u305b\u3092\u4f7f\u7528\u3059\u308b\u3002\uff08\u5f8c\u8005\u306f\u4e8c\u9805\u6f14\u7b97\u5f0f\uff08binary expressions\uff09\u306e\u305f\u3081\u306b\u3001\u524d\u8005\u306f\u305d\u306e\u4ed6\u306e\u5168\u3066\u306e\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u3002\uff09<br \/>\n\u69cb\u6587\u89e3\u6790\u5668\u3092\u4f5c\u308b\u524d\u306b\u3001\u305d\u306e\u51fa\u529b\u3067\u3042\u308bAST\u306b\u3064\u3044\u3066\u6b21\u306e\u7bc0\u304b\u3089\u898b\u3066\u3044\u3053\u3046\u3002<\/p>\n<p><em>\u8a33\u6ce8: binary operator\u306f\u4e8c\u9805\u6f14\u7b97\u5b50\u305d\u306e\u3082\u306e\u3092\u3001binary expression\u306f\u4e8c\u9805\u6f14\u7b97\u5b50\u3068\u305d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u542b\u3080\u5f0f\u3092\u8868\u3059\u3093\u3058\u3083\u306a\u3044\u304b\u306a\u3068\u601d\u3046\u3002<br \/>\n\u30b3\u30f3\u30bb\u30f3\u30b5\u30b9\u304c\u5f97\u3089\u308c\u3066\u308b\u3088\u3046\u306a\u8a33\u304c\u5206\u304b\u3089\u306a\u3044\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u3084\u3084\u3053\u3057\u3044\u3051\u3069\u3053\u3053\u3067\u306fbinary expression\u3092\u4e8c\u9805\u6f14\u7b97\u5f0f\u3068\u8a33\u3059\u3002<br \/>\n\u3053\u308c\u306f\u79c1\u304c\u52dd\u624b\u306b\u8003\u3048\u305f\u8a33\u306a\u306e\u3067\u6ce8\u610f\u3002<\/em><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[466,467],"class_list":["post-2885","post","type-post","status-publish","format-standard","hentry","category-tech","tag-kaleidoscope","tag-llvm"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/2885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/comments?post=2885"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/2885\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=2885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=2885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=2885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}