public
Description: a Ruby VM/interpreter
Home | Edit | New

Home

RubyEx is just my little hack up of a Ruby byte-code generator and interpreter/VM. The interpreter comes in a stand-alone (portable) program and Linux (2.6) kernel-module flavours.

Here’s what I’m working on right now:

$ cat run_tests 
#!../ruby/ruby

Dir[“test_*.rb”].each do |test|
test_name = test[5…-3]
print “`#{test_name}’:\t”
mri_output = `ruby #{test}`
rx_output = `../ruby/ruby #{test}`
puts mri_output == rx_output ? “success” : “failure!”
end

$ ls -F
run_tests* test_scope.rb
$ ./run_tests
`scope’: success
$


From /tests/ directory.

The RubyEx wiki at rubyex.sairyx.org could use an update.

Last edited by celtic, Sat Sep 06 16:35:08 -0700 2008
Home | Edit | New
Versions: