Commit Graph

47 Commits

Author SHA1 Message Date
cubicdaiya cee152670a unify indent style 2014-03-16 07:44:44 +09:00
Tatsuya Matsumoto 71319ac335 fix include guard style. 2014-03-03 00:46:39 +09:00
take_cheeze 78915f9601 support c++ exception 2014-03-01 20:05:29 +09:00
cremno 4507985c3e use mrb_bool, FALSE and TRUE more
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0
but I prefer a type (alias) which emphasizes boolean vars to int.
I changed 1/0 to FALSE/TRUE anyway.
2014-01-31 18:00:36 +01:00
Yukihiro "Matz" Matsumoto a68a517028 refactor parser lineno adjustment; ref #1667 2014-01-31 00:49:46 +09:00
h2so5 36e0925053 more accurate backtrace lineno 2014-01-30 10:08:04 +09:00
Yukihiro "Matz" Matsumoto ed0d9f0066 remove MRB_PARSER_BUF_SIZE configuration; close #1596 2013-11-25 09:48:31 +09:00
Yukihiro "Matz" Matsumoto 3bbf66f9f3 cancel #1565 since it breaks mirb; instead add special treatment to heredocs 2013-11-10 04:32:57 +09:00
Yukihiro "Matz" Matsumoto ec0a94dae6 Merge pull request #1565 from Fleurer/fix1564
nextc(): always return an '\n' at end of input
2013-11-08 17:22:59 -08:00
fleuria fa71403bc5 nextc(): always return an '\n' at end of input
fix #1564
2013-11-08 11:40:26 +08:00
Yukihiro "Matz" Matsumoto 0be572df62 change return value from mrb_generate_code() 2013-11-02 23:20:04 +09:00
FUKUZAWA-Tadashi 8d34e00102 fix bugs on Heredocument
- heredoc in array literal
- heredoc in args
- heredoc in expression expand
2013-09-22 18:14:40 +09:00
Yukihiro "Matz" Matsumoto 12183fa250 rename node->filename to node->filename_index 2013-09-20 06:09:41 +09:00
take_cheeze 0b806ca17b reduce node size 2013-09-02 00:48:07 +09:00
take_cheeze 8082a37748 use uint16_t for line type 2013-09-02 00:48:06 +09:00
take_cheeze 3d1fffbd6b support multiple filename in irep 2013-09-02 00:48:06 +09:00
Yukihiro "Matz" Matsumoto dbd36128ad forget to re-initialize target_class for top-level eval; close #1418 2013-07-30 01:33:02 +09:00
Yukihiro "Matz" Matsumoto 95fb1fd809 mrbc to take multiple files, preserving debug information if -g given; close #1243 2013-05-14 23:39:56 +09:00
Masaki Muranaka 29d84a1635 Separate FILE dependencies with ENABLE_STDIO. 2013-03-24 13:47:54 +09:00
Yukihiro Matz Matsumoto f0ac204f21 Use size_t instead of int. This is for portability. 2013-03-24 00:20:35 +09:00
Masaki Muranaka 4656073b60 Add configuration macro MRB_PARSER_BUF_SIZE. 2013-03-22 16:46:56 +09:00
mattn 1ab4dbcbf3 Backtick operation 2013-03-21 19:45:47 +09:00
FUKUZAWA-Tadashi cdf8114e27 %I %i literal 2013-03-19 00:41:15 +09:00
FUKUZAWA-Tadashi aec3e1c4ff refactor heredoc identifier 2013-03-17 21:27:38 +09:00
FUKUZAWA-Tadashi 44fbfc5184 implement literal %W %w %s
refactor string parsing
2013-03-17 21:27:37 +09:00
Masaki Muranaka 4ad08caca0 Remove stdio.h as it is included in mrbconf.h. 2013-03-16 21:39:52 +09:00
Masaki Muranaka 1ffc9ba325 Define type mrb_bool. It is typedef-ed to _Bool on C99, unsigned int on MSVC.
It is safer than applying 1bit bit-fields to signed int.

For forward compatibility, you should substiture only 1 or 0 for the variable typed mrb_bool.
2013-03-14 15:13:12 +09:00
FUKUZAWA-Tadashi 1af4110f7d implement heredoc 2013-03-03 20:08:13 +09:00
mattn b1a5146ea8 Pluggable Regexp 2013-02-15 04:38:27 +09:00
Cremno feaff10c58 removed declarations of undefined functions 2013-02-03 19:48:41 +01:00
Yukihiro Matsumoto 3e924e887f save debugging lineno info in irep 2012-08-31 11:12:33 +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
Yukihiro Matsumoto dec6751d7a remove BEGIN/END from syntax 2012-08-18 20:51:58 +09:00
Yukihiro Matsumoto 7d02df3016 NaN boxing 2012-08-14 13:16:34 +09:00
Junji Sawada 7bbac9cfdf Rename confusable argument name 2012-07-14 12:15:15 +09:00
Yukihiro Matsumoto 8e1c842b7e simpify mruby/mrbc using context 2012-07-13 15:36:43 +09:00
Yukihiro Matsumoto 9e64e753a2 remove double stdio.h inclusion 2012-07-12 23:59:13 +09:00
Yukihiro Matsumoto fc27f71289 add new function mrb_parser_free() 2012-07-03 21:52:11 +09:00
Yukihiro Matsumoto 137570acf0 capture_errors can be specified by mrbc_context 2012-07-03 21:32:37 +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
Yukihiro Matsumoto ce49d90dc8 modify compiler API; replace mrb_compie_xxx with mrb_load_xxx() that combines compilatoin and execution 2012-07-03 15:26:11 +09:00
Yukihiro Matsumoto 97b1c57600 constify parser input strings 2012-07-03 14:28:19 +09:00
Yukihiro Matsumoto 3be4e91376 remove size_t from parser 2012-07-03 14:27:34 +09:00
Yukihiro Matsumoto aeca23166b remove dependency to node.h and pool.h 2012-05-19 15:52:47 +09:00
Yukihiro Matsumoto 685b4d1c84 fixed a typo 2012-05-18 13:32:47 +09:00
Yukihiro Matsumoto 219162117a move compile.h to mruby/compile.h 2012-05-18 12:54:23 +09:00