summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2013-11-08nextc(): always return an '\n' at end of inputfleuria
fix #1564
2013-11-07type check before pool scanYukihiro "Matz" Matsumoto
2013-11-07call_iseq will never be NULLYukihiro "Matz" Matsumoto
2013-11-07wrong return value from read_lineno_record()Yukihiro "Matz" Matsumoto
2013-11-07create Proc object before releasing memory poolYukihiro "Matz" Matsumoto
2013-11-07forgot to free irep->repsYukihiro "Matz" Matsumoto
2013-11-07irep->pool not to be GCedYukihiro "Matz" Matsumoto
2013-11-07modified to use irep->reps to reference child ireps. preparation forYukihiro "Matz" Matsumoto
removing irep array from mrb_state. note that instructions OP_LAMBDA, OP_EXEC and OP_EPUSH are incompatible, and dumped mrb format has changed.
2013-11-05Merge pull request #3 from h2so5/patch-1Tomoyuki Sahara
avoid declaration error on VC++
2013-11-06avoid declaration error on VC++h2so5
2013-11-05resolved conflicts and updated to latest return value change of ↵Yukihiro "Matz" Matsumoto
mrb_generate_code()
2013-11-04add Fiber.currentYukihiro "Matz" Matsumoto
2013-11-04Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2013-11-03Merge pull request #1562 from takahashim/mrbc-add-newlineYukihiro "Matz" Matsumoto
mrbc: add line break for -c option, like other options
2013-11-03Merge pull request #3 from murasesyuka/feature/add_dependencies_gemTomoyuki Sahara
add mruby-socket dependency gems
2013-11-03mirb: reset stack in the first commandfleuria
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-03mrbc: add line break for -c optiontakahashim
2013-11-03small style fixYukihiro "Matz" Matsumoto
2013-11-03Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2013-11-02Merge pull request #1560 from 3miliano/masterYukihiro "Matz" Matsumoto
Added support for Random as an argument to shuffle and shuffle!
2013-11-02Added support for Random as an argument to shuffle and shuffle!. Refactored ↵Emiliano Lesende
random gem to use DATA instance type and hold mt_state inside the DATA_PTR instead of in an instance variable.
2013-11-02remove scope->idxYukihiro "Matz" Matsumoto
2013-11-02codedump() to take irep structureYukihiro "Matz" Matsumoto
2013-11-02change return value from mrb_generate_code()Yukihiro "Matz" Matsumoto
2013-11-02add mruby-socket dependency gemsmurase_syuka
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().