Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 15 lines (12 sloc) 0.491 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# comment in mirah, same as ruby
# filename: hello.mirah
#
# 0. Make sure you have JRuby. If you have RVM, then - rvm use jruby
# 1. Compile to bytecode - mirahc hello.mirah
# 2. Compile to java source file - mirahc --java hello.mirah
# 3. Run the emitted byte code - java Hello
#
# Mirah compiler will take the name of the source file, and will generate a camelcase filename for resulting class file

puts "Hello Mirah"

# lets see if docco can get there

System.out.println("Hello Java")
Something went wrong with that request. Please try again.