Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (28 sloc) 0.68 kb
require 'rubygems'
require 'bitescript'
import java.lang.System
import java.io.PrintStream
include BiteScript
fb = FileBuilder.build(__FILE__) do
public_class "Eight" do
public_static_method "foo", [], int, int, int do
iload 0
iload 1
iadd
ireturn
end
public_static_method "main", [], void, string[] do
getstatic System, :out, PrintStream
ldc 6
ldc 9
invokestatic this, "foo", [int, int, int]
invokevirtual PrintStream, "println", [void, int]
returnvoid
end
end
end
fb.generate do |filename, class_builder|
File.open(filename, 'w') do |file|
file.write(class_builder.generate)
end
end
Jump to Line
Something went wrong with that request. Please try again.