-
Install
make
-
Example
require "mruby" mruby.run([[ def tak(x, y, z) if y >= x z else tak(tak(x - 1, y, z),tak(y - 1, z, x),tak(z - 1, x, y)) end end print tak(20, 12, 7) ]])
-
Test
require "mruby" file = "./test.mrb" print(">> mruby file run ./test.mrb") mruby.run_file(file) print(">> mruby code run") mruby.run("puts 'mruby code run on Lua!!'")
-
Run
lua sample.lua lua mruby_on.lua >> mruby file run ./test.mrb mruby file run on Lua!! >> mruby code run mruby code run on Lua!!
-
Notifications
You must be signed in to change notification settings - Fork 3
matsumotory/mruby-on-Lua
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
mruby on Lua.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published