Skip to content
The Mirah Programming Language http://mirah.org
Mirah Ruby Other
Failed to load latest commit information.
bin Prevent calling System.exit in Mirah.run().
distbin remove win JAVA_HOME lookup because it has problems with spaces in th…
examples update examples w/ better formatting
javalib operators support for primitive wrappers
lib Make configurable which mirahc.jar to choose.
maven Bump version.
nbproject fix unboxing issues (cherry picked from commit d348ada)
src/org/mirah Merge branch 'fix_bug_388' of https://github.com/felixvf/mirah into f…
test Merge branch 'fix_bug_388' of https://github.com/felixvf/mirah into f…
tools merge master into new ast. It's crazy awesome.
.gitignore macro resgistration using java services SPI (cherry picked from commit
.travis.yml allow jruby-head build to fail
COPYING add asm license to a file that's included in the compiler jar
Gemfile Use 'test-unit' gem version 3.0.
History.txt 0.1.4 bump version; update history
LICENSE Fix LICENSE using text version with wrapping lines.
NOTICE update NOTICE
README.md whitespace in README
Rakefile added a test for blocks over abstract class accepting itself as a clo…
TODO.md add notes to TODO
mirah.gemspec use an array to get mirahc in the gem closes #278
pom.xml Use more modern JRuby version.

README.md

Mirah

Build Status

DESCRIPTION

Mirah is a customizable programming language featuring static types, local type inference and a heavily Ruby-inspired syntax. Mirah currently includes a typer/compiler backend for the JVM which can output JVM bytecode.

FEATURES

  • Ruby-like syntax
  • Compiles to .class
  • Fast as Java
  • No runtime library

SYNOPSIS

mirah <script.mirah>
mirah -e "inline script"
mirahc <script.mirah>
mirahc -e "inline script" # produces DashE.class

REQUIREMENTS

  • Java 1.7 or higher.

INSTALL

RUBY

If your gem and rake are not from from JRuby, prefix the commands with jruby -S

$ gem install mirah

JAR

Mirah is distributed as a jar through maven central. You can download the latest jar from maven.org.

ZIP

You can also install Mirah from a zip file. Download the latest stable release from https://github.com/mirah/mirah/downloads. Extract it, and add bin to your $PATH to be able to use mirah, mirahc, etc.

SOURCE

Setup building locally and installing from source, you'll need jruby 1.7.12 or higher. Then just follow these commands.

To get the repository setup locally run the following:

$ git clone http://github.com/mirah/mirah.git
$ cd mirah
$ bundle install

To install mirah as a gem from source:

$ rake gem
$ gem install pkg/mirah-*.gem

To create the mirahc jar:

$ rake dist/mirahc.jar

This will create a mirahc.jar file in dist that you can run to compile mirah source files.

Something went wrong with that request. Please try again.