ã¯ããã« Rubyç¨ã®ãã¼ãµã¸ã§ãã¬ã¼ã¿ãParslet ã¨ãããã®ãè¦ã¤ããã®ã§ã ç°¡åãªç·´ç¿ã¨ãã¦ç®è¡æ¼ç®ã®ãã¼ãµãä½ã£ã¦ã¿ã¾ããã å æ¸ä¹é¤ã¨å°ä½ç®ã»ç´¯ä¹ï¼+-*/%^ï¼ãããã³æ¬å¼§ã使ã£ãæ°å¼ã®æååãå ¥åãã¦ãå¤ãæµ®åå°æ°ç¹æ°ã§è¨ç®ã§ãã¾ãã Parsletã®åºæ¬çãªä½¿ãæ¹ã¯ Get Started ãåèã«ãªãã¾ããã æ¹é ãã¼ãµã§æååãHashã¨Arrayã®çµã¿åããã«åå² ãã¼ã¹çµæããASTãæ§ç¯ ASTãè©ä¾¡ ãã¼ãµ ã¾ããParslet::Parserã¯ã©ã¹ãç¶æ¿ãã¦ããã¼ã¹ãè¡ãã¯ã©ã¹ãç¨æãã¾ãã ã«ã¼ã«ã¯BNFã®æ§ã«è¨è¿°ãããã¨ãã§ãã¾ãã Parsletã®ä»çµã¿ã¨ãã¦ããã¼ã¹ãããçµæã¯Hashã¨Arrayã®çµã¿åããã¨ãã¦åºåããã¾ãã class Parser < Parslet::Parser #ã«ã¼ã«ãæå®ãã rule(:lparen) { st
{{#tags}}- {{label}}
{{/tags}}