Commit Graph

102 Commits

Author SHA1 Message Date
Yukihiro Matsumoto 76f28241f1 "mrbc -" should take input from stdin; close #489 2012-10-16 20:54:06 +09:00
Yukihiro Matsumoto cf2bd3469a preserve script file name 2012-10-05 10:55:29 +09:00
Yukihiro Matsumoto 70916d030c script file name should not be in ARGV 2012-10-04 14:56:24 +09:00
Yukihiro Matsumoto 0d9b91083b specify know capacity of an array 2012-10-04 14:39:44 +09:00
Yukihiro Matsumoto af8f039b90 mruby should exit with 0 on success 2012-09-30 08:41:36 +09:00
Daniel Bovensiepen f6a9846d0e Fix writing errors in Makefiles 2012-09-10 23:25:50 +08:00
Yukihiro "Matz" Matsumoto e8ae210c25 Merge pull request #451 from monaka/pr-print-usage
[xpcat] Print usage in the parameter error.
2012-09-04 14:13:53 -07:00
Masaki Muranaka 71672494c8 Costmetic change. 2012-09-05 03:11:13 +09:00
Masaki Muranaka 8a7678a8dc Print usage in case using -o without outputfile. 2012-09-05 03:10:11 +09:00
Masaki Muranaka 4854f21c08 Remove some redundant memset(). 2012-09-05 02:56:32 +09:00
Masaki Muranaka 75da995489 Fix not to use memset() in structure inizialization. 2012-09-05 02:55:25 +09:00
Masaki Muranaka a1876bc22b Reset last_code_line instead of ruby_code. 2012-09-05 02:50:34 +09:00
Yukihiro Matsumoto dabe3ca0c7 mirb would terminate on quit in the continuing line 2012-09-03 15:34:22 +09:00
Masamitsu MURASE 8720816c0f Set filename in mrbc.c. 2012-08-26 19:21:44 +09:00
Yukihiro Matsumoto 15725eb4f6 file/line info passed to codegen; argument type of mrb_generate_code() has changed 2012-08-22 22:36:44 +09:00
Masamitsu MURASE 213477df2d Modify argument of mrbc_filename. 2012-08-18 22:14:47 +09:00
Joseph McCullough e7b61c65bb Don't exit if 'exit' or 'quit' are in quote blocks 2012-08-17 19:51:38 -05:00
Joseph McCullough 618f25bfe2 'exit' and 'quit' cause exit regardless of open block 2012-08-17 18:19:06 -05: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
Yukihiro Matsumoto 1ff6dfd081 should not leave open code on syntax errors; close #413 2012-08-01 17:52:14 +09:00
Yukihiro "Matz" Matsumoto ff707384c3 Merge pull request #407 from silverhammermba/cpp
C++ compatibility
2012-07-29 17:42:17 -07:00
Max Anselm 50b9f54a65 Make void casts explicit.
(Forgot a couple files)
2012-07-29 20:11:08 -04:00
Yuichiro MASUI ef993d7549 Added mrbc support output to stdout 2012-07-29 20:58:02 +09:00
Yukihiro Matsumoto fdc224ff2f remove unused label; close #381 2012-07-18 14:43:14 +09:00
Yukihiro Matsumoto 42cfe5c9f3 make mruby work even when DISABLE_STDIO is set 2012-07-17 23:51:57 +09:00
Yukihiro Matsumoto 6ea5c6b517 make mirb work even when DISABLE_STDIO is set 2012-07-17 23:46:48 +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 5938956171 mrbc: better cleanup before exit 2012-07-14 07:39:50 +09:00
Yukihiro Matsumoto e380692224 mrb_load_xxx to return undef + mrb_undef_p 2012-07-14 07:38:43 +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 fc27f71289 add new function mrb_parser_free() 2012-07-03 21:52:11 +09:00
Yukihiro Matsumoto a1af20baa9 use mrbc_context; free parser for each iteration; close #312 2012-07-03 21:49:06 +09:00
Yukihiro Matsumoto a7b8a94e48 refactor mirb code 2012-07-03 21:29:46 +09:00
Yukihiro Matsumoto 39689441e7 add context arg to mrb_parser_parse() 2012-07-03 21:13:10 +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
Daniel Bovensiepen 83e5999d7e Make CFLAG choices in Makefiles more flexible 2012-06-18 11:22:05 +08: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
Jon 6f4eda7401 Simplify CMake mruby object library
Also removes an unnecessary build target from the CMake generated
build and project files.
2012-05-27 20:27:11 -04:00
Jon 3be28e0b73 Remove unnecessary mrb_init_ext definition 2012-05-27 14:44:13 -04:00
Jon 105c11b7f6 Clean and DRY up the basic Makefiles 2012-05-23 13:19:40 -04:00
Jon 44f2c59a61 Teach mirb another way to quit 2012-05-23 12:17:42 -04:00
Yukihiro "Matz" Matsumoto 9a64598121 Merge pull request #180 from mitchblank/master
call mrb_close() in tools and test programs
2012-05-22 11:01:29 -07:00
Jon 9f89da6eef Add native and cross compiling CMake build support 2012-05-22 10:50:28 -04:00