Commit Graph

192 Commits

Author SHA1 Message Date
Cremno 501df71833 MSVC: compilation works again (+minor style fixes) 2013-09-03 21:15:14 +02:00
take_cheeze d606f9d33f fix line number after first file 2013-09-03 00:29:49 +09:00
take_cheeze 8588c54452 declare variable outside for 2013-09-02 22:12:55 +09:00
take_cheeze 0b806ca17b reduce node size 2013-09-02 00:48:07 +09:00
take_cheeze 3d1fffbd6b support multiple filename in irep 2013-09-02 00:48:06 +09:00
Carson McDonald 7d41835ded Fix return block argument error 2013-08-14 16:56:42 -04:00
Jack Danger Canty 2bf4952284 Adding line numbers to the output of mirb.
Before:

    > "hi"
    hi
    > d
    (mirb):1: undefined method 'd' for main (NoMethodError)
    > d
    (mirb):1: undefined method 'd' for main (NoMethodError)
    > "hi"
    hi
    > "#{'}"
    line 1: unterminated string meets end of file

After

    > "hi"
    hi
    > d
    (mirb):2: undefined method 'd' for main (NoMethodError)
    > d
    (mirb):3: undefined method 'd' for main (NoMethodError)
    > "hi"
    hi
    > "#{'}"
    line 5: unterminated string meets end of file
2013-08-13 09:53:52 -07:00
Cremno 08911d1c82 parse.y: fixed bison 3.0 warning
YACC  src/parse.y -> build/host/src/y.tab.c
src/parse.y:936.1-12: warning: deprecated directive, use ‘%pure-parser’
[-Wdeprecated]
%pure_parser
2013-08-09 03:30:08 +02:00
Cremno 29381bc819 parse.y: don't use strcat 2013-08-07 20:35:38 +02:00
Carson McDonald 5bd60f4662 End loop if nextc is -1 2013-08-02 17:08:55 -04:00
Yukihiro "Matz" Matsumoto 7f282429b0 ci->target_class should be updated as well; #1418 2013-08-01 11:56:20 +09:00
Yukihiro "Matz" Matsumoto 326396a6e3 remove unused mrb_proc_new_with_target() 2013-07-31 00:16:55 +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
fleuria 620e323d15 replace assert with mrb_assert 2013-07-25 03:00:03 +08:00
Takashi Sogabe dfb4d555c4 Avoid read_escape() in case of regexp 2013-06-27 17:15:18 +09:00
Yukihiro "Matz" Matsumoto b01670a3d3 fixed a bug in push back list; close #1298 2013-06-24 00:41:34 +09:00
h2so5 b543046070 Use casting instead of a macro 2013-06-10 07:17:46 +09:00
h2so5 f8df722e92 Replace isupper with a macro in msvc 2013-06-09 23:05:35 +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
Yukihiro "Matz" Matsumoto b7a24de377 change mrb_bug to get mrb_state and %S formatter 2013-05-10 22:11:28 +09:00
Masaki Muranaka f139320635 Revert file access mode to 0644. 2013-04-29 09:25:54 +09:00
arton 513bce35f6 add extern funcs declaration and casts for cimpiling C++ compiler 2013-04-28 15:31:50 +09:00
Daehyub Kim c5712bcb3f use ISXDIGIT instead isxdigit on parser.y:3485 2013-04-20 00:07:37 +09:00
kano4 04fb7a0a3f Define isascii for C99 2013-04-06 21:47:38 +09:00
h2so5 51ef69dee6 Add syntax error for incomplete global variables 2013-04-05 14:59:11 +09:00
h2so5 7331119265 Add syntax error for incomplete instance/class variables 2013-04-05 11:30:13 +09:00
Yukihiro "Matz" Matsumoto cb946da787 Merge pull request #1102 from carsonmcdonald/gvarunderscorefix
Allow globals that start with $_
2013-03-28 19:35:52 -07:00
Carson McDonald 06d7bd69a3 Allow globals that start with $_ 2013-03-28 22:21:37 -04:00
Masaki Muranaka 2b5b161f8b Sort include files. Some redundant includes are removed. 2013-03-29 10:22:31 +09:00
Masaki Muranaka 6848ad6f30 Remove #if 0 ... #endif code. 2013-03-26 15:12:50 +09:00
Masaki Muranaka 29d84a1635 Separate FILE dependencies with ENABLE_STDIO. 2013-03-24 13:47:54 +09:00
Yukihiro Matz Matsumoto 04d9c5ea6b resolve conflict regarding backtick 2013-03-23 11:08:18 +09:00
Masaki Muranaka 4656073b60 Add configuration macro MRB_PARSER_BUF_SIZE. 2013-03-22 16:46:56 +09:00
Yukihiro Matz Matsumoto b547a7ed2c allow backtick as a symbol 2013-03-22 15:53:08 +09:00
Yukihiro "Matz" Matsumoto ab7bd61596 Merge pull request #1040 from mattn/backtick
xquote operator
2013-03-21 23:25:03 -07:00
Masaki Muranaka 0f16b242fc Add an internal function intern_c(). It reduces function call parameter. For maintainability and performance. 2013-03-22 14:25:51 +09:00
Masaki Muranaka 75d5654de8 Make intern_gen() inline. This is enough tiny to be inlined. 2013-03-22 14:23:41 +09:00
Masaki Muranaka f8fa56d8c3 Use mrb_intern2() instead of mrb_intern(). This is for avoiding overhead by strlen(). 2013-03-22 14:22:45 +09:00
mattn 1ab4dbcbf3 Backtick operation 2013-03-21 19:45:47 +09:00
Kouki Ooyatsu f00e9b2410 bugfix escape charactor for Regexp class 2013-03-21 17:12:09 +09:00
FUKUZAWA-Tadashi cdf8114e27 %I %i literal 2013-03-19 00:41:15 +09:00
Yukihiro Matz Matsumoto 5217d88963 remove unused local variable beg in parser_yylex 2013-03-18 22:59:13 +09:00
FUKUZAWA-Tadashi 76c24894a7 bugfix about escaping '\n' 2013-03-17 21:27:38 +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 3aa3b4af90 Remove stdlib.h from mruby.h. It is for portability (care for freestanding environments).
This is a first step. It will be reduced stdlib.h in each files later.
2013-03-16 21:29:39 +09:00
Yukihiro Matz Matsumoto 243669308d obsolete mrb_object; opposite of bc870ce 2013-03-15 23:16:20 +09:00
Yukihiro Matz Matsumoto 9d0bbdb7f8 use size_t for string length C API 2013-03-14 19:33:38 +09:00
Yukihiro Matz Matsumoto 535a5489c7 remove PARANOID from comments 2013-03-14 18:47:59 +09:00
Yukihiro "Matz" Matsumoto 1ebebd304a Merge pull request #987 from monaka/pr-clean-up-parse.y-20130312
Clean up parse.y.
2013-03-14 02:46:48 -07:00