From: Charles Oliver Nutter on 9 Jun 2010 09:31 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
|
Pages: 1 Prev: Source for ruby-html-template Next: Html parsing with Hpricot |