2011-07-01ãã1ã¶æéã®è¨äºä¸è¦§
Groovy ASTå¤æã«ããã³ã³ãã¤ã«æã¡ã¿ããã°ã©ãã³ã°ã«ã¤ãã¦ã調æ»ãç¶ç¶ãã¦ãã¾ããä»æ¥ã¯ãç°¡åãªã³ã¼ããæ¸ãã¦ã¿ã¾ãããã³ã³ãã¤ã«ä¸ã« AST å¤æãè¡ããä»»æã®ã¡ã½ãããã¡ã¢åã§ãã¾ããã¨ãããã使ç¨ä¾ãã @Memoized def fib(n) { if (n <= 1) â¦
Groovy ã§ã¯ãAST ãã«ã¸ã¥ã¢ã«ã«å¤æã§ããã¨èãã¾ããããµã¤ã³ã¼ãããªãã§ãããã¨ãããã¨ã§ããããªã AST å¨ãã調ã¹ã¦ãã¾ããã§ãä¸ã¤çåããint + int ã®è¨ç®ã§ããããã¤ã左辺å¤ã®ã³ã³ããã¹ãã int ãè¦æ±ãã¦ããã®ã«ããªãã§ä¸å Object ã«â¦