blogãã£ãã«æ¸ãã¦ãªã... 2.5å¹´ã§110件... åã ããJSã®Scannerãèªãã ãããã®ã楽ããã£ãã®ã§ãã, id:miya2000 ããããã®ãcommentãåé¤ããprogramãã¨ãã話ãåºãã¨ãã«, çµå±JSã®lexerã¨ãããã®ã¯åä½ã§ã¯çæã§ããParserã¨å¯çãã¦ãã(主ã«RegExpã¨RegExpã¨RegExpã®ããã§ã)ã¨ãããã¨ãããã, èªåã§ãæ¸ãããã¨ããèããæµ®ããã§ãã¦C++ã§ãã£ã¨æ¸ãã¦ãã¾ãã. ASTæ§ç¯ã¾ã§ã§ãã¦, jqueryãªã©ãparseæå + jsonå½¢å¼ã®treeã«ã·ãªã¢ã©ã¤ãºããç¨åº¦ã«ãªã£ãã®ã§ãã, ãã£ãããªã®ã§LLVMã¸ã®bridgeã¨ãæ¤è¨ãã¦ãã¾ã. LLVMãããããã¼. Constellation/iv · GitHub ã§, Constellation's gist: 387832 â Gist ãã
C++ ã®ç¹å¾´ã®ã²ã¨ã¤ã§ããæ¼ç®åãªã¼ãã¼ãã¼ãããã®ç²ã極ããã®ã Boost Lambda (ç¡åé¢æ°) 㨠Boost Spirit (æ§æ解æ) ã§ã¯ãªããã¨æã£ã¦ãã¾ããJavaScript ã§ã¯ç¡åé¢æ°ã使ããã®ã§ Lambda ã«é¢ãã¦ã¯éã«åã£ã¦ããã¨ãè¨ãã¾ãããSpirit ã¯ãããè¡ãã¾ãããJavaScript 2 ã§æ¼ç®åãªã¼ãã¼ãã¼ãããµãã¼ããããã®ãªããã£ã¬ã³ã¸ãã¦ã¿ããããªãªã©ã¨æã£ã¦ããããã«ãªã£ã¦ãã¾ããã ããããä¸é¨ã§ãã¼ãµãã¼ã ãèµ·ãã£ã¦ããã¨ããã®ãåããPerl 6 Rules ãã¤ãã¤ãã¨çºãã¦ãããã¡ãæ£è¦è¡¨ç¾ã®ã¡ã¿æåã使ãã°ææ³å®ç¾©ããããã«æ¸ããã®ã§ã¯ã¨æãè³ãã¾ãããããã§å®éã« JavaScript ã§ãã¼ãµã¸ã§ãã¬ã¼ã¿ãä½ããSpirit ã«ãããã£ã¦ Gin (ã¸ã³) ã¨åã¥ãã¦ã¿ã¾ããã ææ³å®ç¾© æ£è¦è¡¨ç¾ãªãã©ã«ã使ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}