[ANN] bitescript 0.0.6

bitescript 0.0.6 is released:

=== 0.0.6 / 2010-06-09

  • Move to a class mirror API rather than loading and walking real
    classes
  • Bug fixes for annotations
  • Allow forward references to labels for easier branch logic

About BiteScript:

= bitescript

http://kenai.com/projects/jvmscript

== DESCRIPTION:

BiteScript is a Ruby DSL for generating Java bytecode and classes.

== FEATURES/PROBLEMS:

== SYNOPSIS:

require ‘bitescript’

include BiteScript

fb = FileBuilder.build(FILE) do
public_class “SimpleLoop” do
public_static_method “main”, void, string[] do
aload 0
push_int 0
aaload
label :top
dup
aprintln
goto :top
returnvoid
end
end
end

fb.generate do |filename, class_builder|
File.open(filename, ‘w’) do |file|
file.write(class_builder.generate)
end
end

== REQUIREMENTS:

JRuby 1.2 or higher.

== INSTALL:

gem install bitescript


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

public_static_method “main”, void, string[] do
Seems to need the thrown exceptions here

public_static_method “main”, [], void, string[] do

But of course great stuff :slight_smile:
Cheers
R.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Oh, thanks for pointing that out. Yeah, I don’t like that much myself,
exceptions should be toward the end of the declaration and
optional…but I’ll correct it for now.

On Wed, Jun 9, 2010 at 2:48 PM, Robert D. [email protected]
wrote:

To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email