馴æã¿ã®ããã°ã©ãã³ã°è¨èªã«æ°ãããã¼ã¸ã§ã³ãåºã¦ãããããããçç±ãä»ãã¦ãªããªãå¦ã°ãªãã®ã人ã®å¸¸ããããªãããªã¼ãªãã¦è¨ã£ã¦ããéã¯ã ããããããªããã ã
ãããªä¸Twitterã§éèªãWeb+DB Pressãã«Scala3ã®è¨äºãåºã¦ããäºãç¥ã£ã俺ã¯éæ»æ¬å±ã«å¯ã£ã¦è³¼å ¥ã«æåãããåå¯ã£ãã¨ãã¯ç½®ãã¦ãªãã£ããã©æè¿å ¥è·ããã®ããªï¼
æ¬ãéãã¦ã¿ãã¨èªã¿å£ãæ»ããã§Scala 3ã®åºæ¬çãªããå£ã¯è¦ãã¦ãã¾ã£ãããã¨ã¯å®éã«æãåããã ãã ãã¨ããããéèªãéèªãã¦ã¿ããããªã¨ãã¼ã¸ããããå§ããã¨ãããã°ã©ãã³ã°è¨èªã®å¦çç³»ãä½ãç¹éãç®ã«é£ã³è¾¼ãã§ãããããã¯ãããããªãããªãã§ããæ½è±¡æ§ææ¨ã¨ã¤ã³ã¿ããªã¿ãããã¦æ§æ解æå¨ãä½ã£ã¦ãããã«ãªè¨èªå¦çç³»ãå®è£ ãããã¨ãããã®ããããçãããããã®è¨äºã§ã¯Javaã使ã£ã¦ãããã©ãScala 3ã§åãã¦ã¿ããã!!
ASTã¨ã¤ã³ã¿ããªã¿å®è£ ãã
ããæã£ã¦ããã¯å®è£
ããã®ã¯ç°¡åã ã£ããã¨ããã®ããå¦çç³»ãå®è£
ããã«ããã£ã¦é¿ãã¦ã¯éããªãASTã®å®è£
ããScala 3ã§æ°ãã«è¿½å ãããenum
ã®ã¦ã¼ã¹ã±ã¼ã¹ã¨ãã¦å®ç§ã ã£ãããã ãASTã¯ããã¦ãADTã§å®è£
ããããã©ãã©ãå®è£
ãé²ãã§ãããã¤ã³ãã³ãè¨æ³ã§è¦ãç®ããã£ãããã¦æ°æã¡ãè¯ãã
ããããããã§ASTã¨ã¤ã³ã¿ããªã¿ãå®è£ ããèªåã¯éä¹ã®è¨ç®ããããã¾ããé¢æ°ãåä½ããããã¨ãã§ããã
ããããï½ pic.twitter.com/9eGvbgNkGx
— è¶è²ã¼ããã (@windymelt) 2021å¹´11æ13æ¥
ã´ã¤ã¹ï½ pic.twitter.com/hH6VqIMQaC
— è¶è²ã¼ããã (@windymelt) 2021å¹´11æ13æ¥
ãâ¦ããã®ã¾ã¾ ä»ãèµ·ãã£ãäºã話ããï¼
— è¶è²ã¼ããã (@windymelt) 2021å¹´11æ13æ¥
ãæ¬å±ã§Web+DB Pressãè³¼å ¥ããã¨æã£ããScala3ã§èªä½ããã°ã©ãã³ã°è¨èªãå®è£ ãã¦ãããâ¦â¦
ãªâ¦ãä½ãè¨ã£ã¦ããã®ããããããã¼ã¨æããã
ããããä½ããããã®ããããããªãã£ãâ¦https://t.co/m9B07x4Y3c
çéã§Scala 3ã®ãã£ããã¢ããã«æåã !
PEGã§æ§æ解æãã(WIP)
ããããªãããASTã¨ã¤ã³ã¿ããªã¿ãä½ã£ãã ãã§ã¯è¨èªå¦çç³»ãä½ã£ãã¨ã¯è¨ããªããã¾ã æ§æ解æå¨ãå®è£ ãã¦ããªãããã ãè¨äºã§ã¯æ§æ解æææ³ã¨ãã¦PEGã使ã£ã¦ãããããScalaã§ãåãPEGãã¼ãµã³ã³ããã¼ã¿ãæ¢ãã¦ã¿ãã¨ä¸è¦ä½¿ããããªå¥´ããããã
600+ Starãã¤ãã¦ãããå質ã«å¿é ã¯ãªãããã ãããã使ãå§ããç¬éåé¡ã«ã¶ã¡å½ãã£ã!! ãã®ã©ã¤ãã©ãªã¯ãã¯ãã使ã£ã¦ãã¦ãScala 2ç³»åã§ããåããªãã©ã¤ãã©ãªã ã£ã!! ãã®ã¾ã¾ããScala 3ã諦ãããããã®ã©ã¤ãã©ãªã諦ãããããªãããã®ã¾ã¾çµãããªã®ãã»ã»ã»
ããã¨ä¿ºã®é ã«å¦æ¡ããsbtã§ãã«ãããã¸ã§ã¯ãç·¨æãçµãã°ãããã ãæ©é俺ã¯sbtã®é£è§£ãªããã¥ã¡ã³ããèªã¿ãªãããªãã¨ããã¼ãµé¨åãå¥ããã¸ã§ã¯ãã«åé¢ãããã¨ã«æåããã ããããã°ããã¸ã§ã¯ãæ¯ã«Scalaã®ãã¼ã¸ã§ã³ãå¤ãã¤ã¤ãã¯ã©ã¹ãã¹ãéãããã«ã§ããããã¡ã½ãããå¼ã³åºããã!
ã§è²ã
è¦å´ããªããparboiled2
ã®ä½¿ãæ¹ãç解ãã¦æ§æ解æå¨ãä½ããã¨ã«æåããã
ãã¨ã¯ãã¼ãµå´ãçæããæ§æ解æçµæã¨ã¤ã³ã¿ããªã¿å´ã«å®è£
ãã¦ããAST(enum
ã§æ¸ããã¦ã)ã¨ããã¾ãå¤æãã¦ããå¿
è¦ããããã ãã©ãparboiled2
ãScala 3ã§åããªãæ¬å½ã¯ãããªãã¨å¿
è¦ãªããã ããªã»ã»ã»ã¨æãã¤ã¤ãªãã¨ãã³ã¼ããæ¸ãã¦ããã
æ¬å½ã¯parboiled2
ã«PRæããããã©Scala 3ã®ãã¯ãã®æ¸ãæ¹ãªãã¦ãããããã!!
(ã¤ã¥ã)