Commit Graph

39 Commits

Author SHA1 Message Date
Masamitsu MURASE 213477df2d Modify argument of mrbc_filename. 2012-08-18 22:14:47 +09:00
Yukihiro Matsumoto 7bf4142c42 mruby should read from stdin if no argument given as cruby does 2012-08-15 09:31:59 +09:00
Yukihiro Matsumoto 5f11890d04 mruby should accept "-" as stdin 2012-08-15 09:31:13 +09:00
suzukaze d648970bc8 fixed showing no 'Usage'. 2012-08-14 23:50:39 +09:00
Max Anselm 50b9f54a65 Make void casts explicit.
(Forgot a couple files)
2012-07-29 20:11:08 -04:00
Yukihiro Matsumoto 42cfe5c9f3 make mruby work even when DISABLE_STDIO is set 2012-07-17 23:51:57 +09:00
Yukihiro Matsumoto c8700c4a21 remove Syntax OK if syntax isn't ok; close #368 2012-07-15 16:23:55 +09:00
Yukihiro Matsumoto 72f7c51bc0 mruby should print error properly 2012-07-14 15:39:53 +09:00
Yukihiro Matsumoto 83ccb715b2 mruby: print Syntax OK on -c 2012-07-14 07:45:24 +09:00
Yukihiro Matsumoto 8e1c842b7e simpify mruby/mrbc using context 2012-07-13 15:36:43 +09:00
Yukihiro Matsumoto bbec03bb7a add missing (empty) default for swtch; close #364 2012-07-13 14:35:18 +09:00
Yukihiro Matsumoto 85a0cad905 use new function mrb_parser_free() 2012-07-03 21:54:08 +09:00
Yukihiro Matsumoto 65096c4c1b add context to parser, that would hold local variable info, filename, and line number. mrbc_context argument has been added to mrb_parse_xxx() functions. Normally, you just to need to add NULL (or 0) to the last argument of the above functions. 2012-07-03 20:59:07 +09:00
NARUSE, Yui 03d32796b4 Support mruby -e'p 1'.
mruby supports already -e 'p 1' (-e, space, command), but hadn't
supported no space version.
2012-06-14 07:56:07 +09:00
Jon 2fff59dc86 Check mrb_open return value for NULL 2012-06-03 11:11:35 -04:00
Mitchell Blank Jr d1cd10421f change example code to do mrb_close()
I was hoping this would cause valgrind to complain less, but there is still
a lot of memory leaked (does mrb_close() actually free all of the managed
blocks?)  Anyway this helps somewhat and is good practice
2012-05-22 01:03:54 -07:00
mattn 751d391aab don't close stdin. 2012-05-18 15:36:18 +09:00
Yukihiro Matsumoto f7406435f3 mruby should read from stdin when no argument given 2012-05-18 14:51:27 +09:00
Yukihiro Matsumoto f81ddf9025 terminate programs after showing version/copyright 2012-05-18 14:49:09 +09:00
Yukihiro Matsumoto f4bacab18b rename ruby_show_version to mrb_show_version 2012-05-18 14:45:05 +09:00
Yukihiro Matsumoto 219162117a move compile.h to mruby/compile.h 2012-05-18 12:54:23 +09:00
Yukihiro Matsumoto a18fb01b03 new API for parser 2012-05-18 11:03:43 +09:00
Yukihiro Matsumoto e67c03529d Merge branch 'master' of github.com:mruby/mruby 2012-05-17 23:49:12 +09:00
Yukihiro Matsumoto 434ed1ed7c compile error should contain line number 2012-05-17 23:46:55 +09:00
nkshigeru bd485b5940 avoid passing NULL to fopen 2012-05-17 15:54:34 +09:00
roco 4ec6d41f16 rm whitespace 2012-04-30 14:29:19 -07:00
Yukihiro Matsumoto c8f8f8396c initialize ARGV when program is specified by -e 2012-04-27 18:31:02 +09:00
mattn 6d02f784ac add ARGV. 2012-04-27 15:06:38 +09:00
mattn de7a596a2a use mrb_free(). 2012-04-26 11:14:19 +09:00
Yukihiro Matsumoto 0486c48b1a do not use strdup(3) that use malloc(3) inside; should use mrb_malloc() 2012-04-26 08:43:05 +09:00
Yukihiro Matsumoto e26bf08e39 tools/mruby: multiple -e should concatenate command line args 2012-04-25 22:57:12 +09:00
Yukihiro Matsumoto 140b9cad8b Merge branch 'master' of github.com:mruby/mruby 2012-04-25 11:50:21 +09:00
Yukihiro Matsumoto 86946043c3 disclose mrb_top_self() and use it in mruby.c 2012-04-25 11:50:03 +09:00
Yukihiro "Matz" Matsumoto 68b76fcdec Merge pull request #50 from mattn/e_flag
add -e flag.
2012-04-24 19:39:59 -07:00
mattn bc41445714 add -e flag. 2012-04-25 10:16:38 +09:00
mattn 2c64c712db return 0 if code is generated. 2012-04-25 09:43:10 +09:00
Yukihiro Matsumoto 8b367098ac move header files {irep,dump,cdump,ritehash}.h to /include/mruby 2012-04-24 17:41:28 +09:00
Patrick Hogan c8c90d3644 Fixed typos in usage message. 2012-04-20 09:22:30 -05:00
mimaki e0d6430f63 add mruby sources 2012-04-20 09:39:03 +09:00