Skip to content
Compile your ruby code into haxe
Ruby Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
dev_doc Documentation of existing tokens in code Nov 28, 2015
examples Fix else if brackets and update example Nov 26, 2015
lib Exec strings Nov 28, 2015
test Separated instructions in exec string Nov 28, 2015
.gitignore Initial commit Nov 7, 2015
.travis.yml Use gem generator Nov 8, 2015
Gemfile
Gemfile.lock Update gemfile.lock Nov 27, 2015
README.md Update README.md Nov 27, 2015
Rakefile Use gem generator Nov 8, 2015
ruhax.gemspec

README.md

Ruhax

Join the chat at https://gitter.im/Peekmo/ruhax Travis Coverage Status

Pur ruby code compiled into haxe code

## Example

You can play examples from "examples" folder e.g : bin/console build --src examples/hello_world.rb

And... magic ! You should see something like that

class Main{
public static function main() {
trace("Hello World");
}

}

Add --debug flag to get AST of the file

Note : You'll need at least ruby 2.2 Don't forget to use bin/setup to install projects dependencies (You'll need bundler)

Tests

To use tests, just use the given command : rake test

Development

Everything is build on top of whitequark parser to get AST nodes. Feel free to read it and to try to improve it ;)

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/peekmo/ruhax.

You can’t perform that action at this time.