ãMarkeZineãã主å¬ãããã¼ã±ãã£ã³ã°ã»ã¤ãã³ããMarkeZine DayããMarkeZine AcademyããMarkeZine ãã¬ãã¢ã ã»ããã¼ãã® ææ°æ å ±ãã¯ãããæ§ã ãªã¤ãã³ãæ å ±ãã¾ã¨ãã¦ãç´¹ä»ãã¾ãã MarkeZine Day
ANTLRï¼ANother Tool for Language Recognitionï¼ã¨ã¯ãLL(*)æ§æ解æã«åºã¥ããã¼ãµã¸ã§ãã¬ã¼ã¿ã§ããï¼ãã¼ã¸ã§ã³3.xã¯LL(*)ã2.xã¾ã§ã¯LL(k)ï¼ãPCCTSï¼Purdue Compiler Construction Tool Setï¼ã®å¾ç¶ã¨ãã¦1989å¹´ã«éçºãããç¾å¨ãæ´»çºã«éçºãç¶ãã¦ãããä¸å¿ã¨ãªã£ã¦ããã®ã¯ããµã³ãã©ã³ã·ã¹ã³å¤§å¦ã® Terence Parr ææã§ããã ANTLR ã¯LRæ³ã«åºã¥ãããã¼ãµã¸ã§ãã¬ã¼ã¿ã¨ç«¶åé¢ä¿ã«ããã"ANT(i)-LR"ï¼åLRï¼ã¨èªããã®ãå¶ç¶ã§ã¯ãªã[è¦åºå ¸]ã ANTLR ã¯ãã¼ãµã ãã§ãªãã¬ããµã¼ããã³ããªã¼ãã¼ãµãçæå¯è½ã§ããã ææ³ã®è¨è¿°æ¹æ³ã¯ãEBNFã«ä¼¼ãå½¢å¼ã¨ãªã£ã¦ããã 4.7 ç¾å¨ãANTLR 㯠JavaãPython (2ã¨3)ãC#ãJavaScriptãG
ããã°ã©ãã«è³ªåãåãã¦åºåãç¾å ´ã æéçã«å³ãããçãæéã§ä»æ§ãç解ãã éçºã«çæããªãã¦ã¯ãããªãç¶æ³ã ã£ãã¨ãã¾ãã ãã®ãããªã¨ãã«ä»æ§ç解ãå¹ççã«è¡ãããã® ç¥èã®æ´çæ¹æ³ã¯ããã¾ãããï¼ å人çãªæ¹æ³ãã ãã¤ã³ããããã®ãããªåã«ã¯ããæ¹æ³ã大æè¿ã§ãã ãªããã®è³ªåã¯ãæ¼ ç¶ã¨ãã質åã§ãã®ã§ å®ç§ãªåçã¯ãªãã¨æã£ã¦ãã¾ãã ã§ãããåçã®ä¸ã¤ä¸ã¤ã«ãã£ã¨æå³ãããã¾ãã®ã§ æãã¦ããã ãããå®ãããé¡ããã¾ãã
ãã¼ãµã¸ã§ãã¬ã¼ã¿ãANTLRã¡ã¿è¨èªããLexer, Parser, Tree-Parserãçæããããã¨ãã§ãããJavaã§åããã¿ã¼ã²ããè¨èªã¯C#,C++,Java,PythonãANTLR 3.0ã¯éçºä¸ã§ãANTLRã¡ã¿è¨èªã®ä»æ§ãå¤ãããã¿ã¼ã²ããè¨èªã«C,Objective C, Ruby, LISP, Perl6, PHP, Oberonãå ãããããªãªã¼ã¹ã¯ã¾ã å ã«ãªããããæ¥æ¬èªã®æ å ±ãã»ã¨ãã©ãªãã ANTLR Parser Generator http://www.antlr.org/ ç°å¢ ç°å¢ã¯ä»¥ä¸ã®éãã¨ããã Fedora Core 6 bash JDK 1.6.0_01 ã¿ã¼ã²ããè¨èªã¯Javaã¨C++ gijã ã¨ãã¾ããããªãã£ãã®ã§ãSunã®ãµã¤ãããJDKããã¦ã³ãã¼ããã¦ã¤ã³ã¹ãã¼ã«ãã¦ããå¿ è¦ãããã ãã«ã 以ä¸ã®æé ã§è¡ã£ãã $ cd
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}