Booè¨èªã«ã¤ãã¦ã¨åè¨èªã§æ¸ãããããã°ã©ã ã®å®è¡ã«é¢ãã¦
Booã«ã¤ãã¦
Booã¯å
±éè¨èªåºç¤(CLI)ã®å®è£
(Monoã.NET Framework)ä¸ã§(OSãã¢ã¼ããã¯ãã£ã«ä¾åããã«)åä½ããããã°ã©ã ãè¨è¿°ããããã®è¨èªå(Booè¨èª)ã§ãããåè¨èªã§æ¸ãããããã°ã©ã ãæ±ããã¼ã«ç¾¤ã§ããã(ã©ã¤ãã©ãªå«ã)ãã©ã¤ã»ã³ã¹ã¯BSDã¹ã¿ã¤ã«(本文)ãBooè¨èªã¯Pythonã«è¿ãææ³ã¨ããç¹å¾´ããã(åä¸ã§ã¯ãªã)ã
Pythonã¨ã¯ç°ãªãã®ã§ãPythonã«ä»å±ããã¢ã¸ã¥ã¼ã«ç¾¤ã¯å©ç¨ã§ããªãããMono/.NETã®åºæ¬ã¯ã©ã¹ã©ã¤ãã©ãªã¨Mono/.NETåãè¨èªãã¤ã³ãã£ã³ã°ãå©ç¨ã§ããGtkï¼ã®ãããªGUIãã¼ã«ãããã使ç¨ã§ããã
æ¨æºã®ææ³ã¨ãã¦(Perlã®ããã«)æ£è¦è¡¨ç¾ã«ããå¦çããµãã¼ããã¦ãã(åºæ¬ã¯ã©ã¹ã©ã¤ãã©ãªã®æ£è¦è¡¨ç¾ã®æ©è½ã使ç¨å¯)ã
ãã¼ã«ã¯ãbooãã¨ããååã®ãã£ã¹ããªã®ããã±ã¼ã¸ã«ãªã£ã¦ããå ´åãå¤ãã®ã§ãã¤ã³ã¹ãã¼ã«ããã«ã¯ãããæ¤ç´¢ãã¦è¿½å ããã
å®è¡
Booè¨èªã§æ¸ãããããã°ã©ã ã«ã¯2ã¤ã®å®è¡æ¹æ³ãããã
ããã°ã©ã ãMono/.NETã¢ã»ã³ããªã«ã³ã³ãã¤ã«(ã³ã³ãã¤ã©boocã®ä½¿ç¨)
Booè¨èªã®ã³ã¼ããMono/.NETã¢ã»ã³ããªã«ã³ã³ãã¤ã«ãã¦å®è¡ããæ¹æ³ã§boocãç¨ãããã³ã³ãã¤ã«ããã¢ã»ã³ããªã®èµ·åæéã¯å¾è¿°ã®booiãç¨ããå ´åãããçã(Pythonã¹ã¯ãªããããã¯æéãããã)ã
æ¨æºã§ã¯ã³ã³ãã¤ã«æã«ã³ã³ãã¤ã©ã®ãã¼ã¸ã§ã³ã表示ãããããã表示ããªãããã«ããã«ã¯-nologoãªãã·ã§ã³ãä»ããã
(ã³ã³ãã¤ã«) $ booc -nologo ([ãªãã·ã§ã³...]) [.booãã¡ã¤ã«...] -out:[åºåãã¡ã¤ã«] (å®è¡) $ mono [åºåãã¡ã¤ã«]
ã½ã¼ã¹ãã¡ã¤ã«ãè¤æ°ã®å ´åãé¢æ°ãã¯ã©ã¹ã®å®ç¾©ä»¥å¤ã®(ã¡ã¤ã³)å¦çãè¨è¿°ã§ããã®ã¯1ã¤ã®ãã¡ã¤ã«ã®ã¿ãè¤æ°ãã¡ã¤ã«ã«ã¡ã¤ã³å¦çãè¨è¿°ããã¨ã³ã³ãã¤ã«ã¨ã©ã¼ãBCE0029: More than one entry point found.ãã«ãªãã
åä¸ãã¡ã¤ã«ã®ããã°ã©ã ãç´æ¥å®è¡(ã¤ã³ã¿ããªã¿booiã®ä½¿ç¨)
booiãç¨ããã¨ãã³ã³ãã¤ã«ãããã«ç´æ¥åä¸ãã¡ã¤ã«ã®ããã°ã©ã ãå®è¡ãããã¨ãã§ãããããã°ã©ã ã®èµ·åã«æéããããããã³ã³ãã¤ã«ã¨å®è¡ã¨ãã2段éã®æéããããã«æ¸ã¿ãããã°ã©ã è¨è¿°ã®ä½æ¥æ®µéã«é©ããã
.booãã¡ã¤ã«ã®1è¡ç®ã
#! /usr/bin/booi
ã¨ããä¸ã§ãã¡ã¤ã«ã«å®è¡å±æ§ãä»ããã¨ããã®ãã¡ã¤ã«ããã®ã¾ã¾å®è¡ãããã¨ãã§ããã
ãããã¯booiã³ãã³ããç´æ¥å®è¡ãã¦å¼æ°ã«ã½ã¼ã¹ãã¡ã¤ã«ã®å ´æãæå®ããã
$ booi [.booãã¡ã¤ã«]
ã·ã§ã«(対話åã¤ã³ã¿ããªã¿booish)
Pythonã®ãããªã·ã§ã«(対話åã¤ã³ã¿ããªã¿)ãBooã«ãåå¨ãããããã¯booishã¨ããã³ãã³ãã§èµ·åããã
çµäºããã«ã¯ã/qãããquit()ããå
¥åå¾Enterãæ¼ãã
ã½ã¼ã¹ãã³ã³ãã¤ã«ããå ´åã®Mono/.NETã¢ã»ã³ããªã®ä¾åãã¡ã¤ã«
boocã§ã³ã³ãã¤ã«ãããMono/.NETã¢ã»ã³ããªã¯ãä¸é¨ã®æä½éæ§æã®å ´åãé¤ãã¦åºæ¬çã«Mono/.NETã¢ã»ã³ããªBoo.Lang.dllã«ä¾åãããã·ã¹ãã (GAC:Global Assembly Cacheã®ä¸)ã«ãããã¤ã³ã¹ãã¼ã«ããã¦ããã°ç¹ã«ä½ãããã«åä½ããã¤ã³ã¹ãã¼ã«ããã¦ããªãã¦ãå®è¡ãã¡ã¤ã«ã®ã¢ã»ã³ããª(.exeãã¡ã¤ã«)ã¨åããã£ã¬ã¯ããªã«ãã®ãã¡ã¤ã«ãããã°åä½ããã
é¢é£è¨äº:
使ç¨ãããã¼ã¸ã§ã³:
- Boo 0.9.2.3383