https://github.com/weimingtom/xruby
Automatically exported from code.google.com/p/xruby
https://github.com/weimingtom/xruby
Last synced: about 1 month ago
JSON representation
Automatically exported from code.google.com/p/xruby
- Host: GitHub
- URL: https://github.com/weimingtom/xruby
- Owner: weimingtom
- License: apache-2.0
- Created: 2015-07-11T17:01:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-11T17:09:18.000Z (almost 10 years ago)
- Last Synced: 2025-04-15T02:48:48.513Z (about 1 month ago)
- Language: Ruby
- Size: 10.7 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 20
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
XRuby
Xue Yong Zhi (zhixueyong AT hotmail.com)Overview
=====================
XRuby is an open source Ruby compiler which compiles Ruby source code (.rb)
to Java bytecode (.class). For more information, please visit our project
home at http://code.google.com/p/xruby .Compile
=====================
JDK 5.0 is required to compile XRuby's source code:On Windows:
>build.batOn Unix:
>./build.shUsage
=====================
* Compile a ruby script then run:
>java -jar xruby-0.3.3.jar -c test.rb
>java -jar test.jarIf xruby.jar and test.jar are not in the same folder, then should be:
>java -cp xruby-0.3.3.jar;test.jar xruby.test.main* Run script directly (compile behind the scene):
>java -jar xruby-0.3.3.jar test.rbSome ruby scripts require large amount of memory, if you see OutOfMemoryError,
try to increase the maximum heap size with -Xmx parameter:
>java -Xmx512m -jar xruby-0.3.3.jar test.rb