summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2013-11-03refactor mrb_context_run()fleuria
2013-11-03introduce mrb_context_run()fleuria
currently there are two scnenario to call mrb_run(), the first is calling a proc, in this case mrb should create a new environment, discarding all the variables except args, reciever and block. the second is calling the newly generated irep, like in mirb. in this case, the variables should be kept after mrb_run(). so we introduce mrb_context_run() to handle this seperately.
2013-11-01Merge pull request #1557 from 3miliano/masterYukihiro "Matz" Matsumoto
Added shuffle and shuffle! to the Array class in the Random gem.
2013-11-01Added shuffle and shuffle! to the Array class in the Random gem.Emiliano Lesende
2013-11-01changed argument type of mrb_ary_modify(); ref #1554Yukihiro "Matz" Matsumoto
2013-10-31add mrb_ary_modify(mrb,a); you have to ensure mrb_value a to be an array; ↵Yukihiro "Matz" Matsumoto
ref #1554
2013-10-31Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2013-10-31restore context status to RUNNING on automatic yield at the end of the ↵Yukihiro "Matz" Matsumoto
block; fix #1555
2013-10-30Merge pull request #1553 from Fleurer/fix1550-contYukihiro "Matz" Matsumoto
fix 3a4c8e2
2013-10-30fix 3a4c8e2fleuria
unfortunately the previouse commit is incorrect, which still concate the keywords, but like this: method='"end\nb"' (201)
2013-10-30resolve conflict #1552Yukihiro "Matz" Matsumoto
2013-10-30Merge pull request #1551 from Fleurer/fix1550Yukihiro "Matz" Matsumoto
fix #1550
2013-10-30Merge pull request #1510 from schmurfy/freebsd_fixYukihiro "Matz" Matsumoto
fixed compilation on freebsd releases witout log2 function
2013-10-30type check class/module in mrb_get_args(); close #1477Yukihiro "Matz" Matsumoto
2013-10-30implement Class.new with blockh2so5
2013-10-30preserve only arguments on stack; fix #1527Yukihiro "Matz" Matsumoto
2013-10-30fix wrong actual and expected orderYukihiro "Matz" Matsumoto
2013-10-30fix #1550fleuria
emit a "\n" as the first token for parser instead of taking the first character from the next file for lexer, to prevent mruby "concatenate" two keywords between files it should be regarded as a work around, for it can not resolve this case: $ cat a.rb " $ cat b.rb b" $ bin/mrbc -o- -v a.rb b.rb mruby - Embeddable Ruby Copyright (c) 2010-2013 mruby developers NODE_SCOPE: NODE_BEGIN: NODE_STR " b " len 4 irep 0 nregs=2 nlocals=1 pools=1 syms=0 000 OP_STRING R1 "\n\nb " 001 OP_STOP thanks @bovi 's idea
2013-10-27Uniquify the results of Object#methodsh2so5
2013-10-26nil/false should not be implicitly converted to integers in mrb_get_args(); ↵Yukihiro "Matz" Matsumoto
close #1529
2013-10-26mrb_Integer() should not convert strings to integersYukihiro "Matz" Matsumoto
2013-10-26Merge pull request #1530 from h2so5/args-explicit-conversionYukihiro "Matz" Matsumoto
Disable implicit integer conversion in mrb_get_args
2013-10-25update test code to ensure return value from class statementYukihiro "Matz" Matsumoto
2013-10-25add a regression for #1544fleuria
2013-10-25fix #1544fleuria
We have already reserved that register in codegen()'s case NODE_DEF, but what we care about is actually the previous register. So what we need is get that register by cursp() after pop(), then recover the reservation by push().
2013-10-24Merge pull request #1543 from Fleurer/issue1542Yukihiro "Matz" Matsumoto
fix #1542
2013-10-23fix #1542fleuria
2013-10-23modify upto/downto for compatibilityYukihiro "Matz" Matsumoto
2013-10-22move some methods to make floats and integers compatible [mruby special]Yukihiro "Matz" Matsumoto
2013-10-22implement some Numeric methods in RubyYukihiro "Matz" Matsumoto
2013-10-21implement Integer#succ in RubyYukihiro "Matz" Matsumoto
2013-10-20Fixnum#succ may overflowYukihiro "Matz" Matsumoto
2013-10-16move declarations to the beginning of blocksYukihiro "Matz" Matsumoto
2013-10-15Merge pull request #1538 from carsonmcdonald/conststackfixYukihiro "Matz" Matsumoto
Set regs to stack on return of const_get calls before use
2013-10-15Set regs to stack on return of const_get calls before useCarson McDonald
2013-10-15better error position displayYukihiro "Matz" Matsumoto
2013-10-15define Module#const_missingYukihiro "Matz" Matsumoto
2013-10-09Merge pull request #1534 from skandhas/pr-add-some-symbol-methodsYukihiro "Matz" Matsumoto
Add some methods to Symbol
2013-10-09Merge pull request #1535 from matsumoto-r/del_unused_varaiableYukihiro "Matz" Matsumoto
remove unused value for mrb_gv_remove
2013-10-10add mrb_gv_remove(); untestedYukihiro "Matz" Matsumoto
2013-10-10remove unused value for mrb_gv_removeMATSUMOTO Ryosuke
2013-10-08add some methods to Symbolskandhas
2013-10-05simplify stack_clear()Yukihiro "Matz" Matsumoto
2013-10-05Disable implicit integer conversion in mrb_get_argsh2so5
2013-10-03Merge pull request #1528 from Ahti/masterYukihiro "Matz" Matsumoto
fix no multiline strings in mirb
2013-10-04fix no multiline strings in mirbLukas Stabe
2013-10-02Merge pull request #1522 from bovi/patch-1Yukihiro "Matz" Matsumoto
Improve Grammar of Documentation
2013-10-01Merge pull request #1523 from wrl/relative-gembox-nokeywordYukihiro "Matz" Matsumoto
Implement gembox-relative gemdir paths
2013-10-01Fix for caller_dir relative gemsWilliam Light
2013-10-01Implement gembox-relative gemdir pathsWilliam Light
In the case where a relative path is specified to a gembox from build_config.rb, it was previously tricky to specify relative gem paths from inside that gembox. For example, consider a project in which mruby is checked out as a submodule in the project root: +- project_root | +- mruby/ | | | +- build_config.rb | | | +- ... | +- my_gembox/ | +- my_gembox.gembox | +- my_gem/ | +- mrbgem.rake | +- ... If build_config.rb refers to my_gembox with a relative path, it's difficult for my_gembox to then refer to my_gem. With this proposed change, my_gembox.gembox can look like this: MRuby::GemBox.new do |conf| conf.gem "my_gem" end