2013å¹´3æ11æ¥æææ¥ mrubyã®APIãã¹ã æå»: 21:51 mrubyãCã®ããã°ã©ã ã«çµã¿è¾¼ãã§ä½¿ãæ¹æ³ã調ã¹ããä»ã®ã¨ããå ¬å¼ã®ããã¥ã¡ã³ãã¯Hello Worldãããããç¨æããã¦ãªãï¼ æååãç´æ¥å®è¡ #include <mruby .h> int main() { mrb_state* mrb = mrb_open(); mrb_load_string(mrb, "puts 'hello world'"); mrb_close(mrb); return 0; } // å®è¡çµæï¼ // hello world mrb_open()ã§ã³ã³ããã¹ãä½æãmrb_close()ã§çµäº mrb_load_string()ã§å®è¡ 確èªç¨ã¨ãã¦ä½¿ãåã«ã¯ããã ããããã³ã³ãã¤ã«ãå ¥ãã®ã§ä½åº¦ãå®è¡ããã«ã¯åããªãã§ãããã Cè¨èªããmrubyã®é¢æ°ãå¼ã³åºã #incl
{{#tags}}- {{label}}
{{/tags}}