I'm playing around with all sorts of small hardware. In an attempt to learn it. I would like to run mruby. I've compiled for my hardware. And have the framework as well as the include MIRB and MRUBY bins.
But I would potentially like the code my own IRB. I am a programmer by trade, but have never dealt in anything this low level since college.
Where do i begin in the process, my google-foo is not cutting it.
Once you can execute ruby code on the platform you are running on, it's just a matter of gluing up together eval and readline. For something more advanced, I advice you to take a look at the ruby source code, you will find the complete irb sources in bin/irb.rb
, lib/irb.rb
and the lib/irb
direcotry. Have fun!