Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add Hoe stuff for building gem.

  • Loading branch information...
commit b2be0519ed798918dee06b18b0db3d1daa3fd66b 1 parent 1de1e17
headius authored
View
6 History.txt
@@ -0,0 +1,6 @@
+=== 0.0.1 / 2009-03-28
+
+* 1 major enhancement
+
+ * Birthday!
+
View
9 LICENSE.txt
@@ -0,0 +1,9 @@
+Copyright (c) 2009, Charles Oliver Nutter
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+Neither the name of BiteScript nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
20 Manifest.txt
@@ -0,0 +1,20 @@
+History.txt
+LICENSE.txt
+Manifest.txt
+README.txt
+Rakefile
+bin/bite
+bin/bitec
+examples/fib.bs
+examples/mixed_bag.rb
+examples/simple_loop.rb
+lib/bitescript.rb
+lib/bitescript/asm.rb
+lib/bitescript/builder.rb
+lib/bitescript/bytecode.rb
+lib/bitescript/signature.rb
+test/test_bitescript.rb
+test/test_builder.rb
+test/test_bytecode.rb
+test/test_java_class.rb
+test/test_signature.rb
View
56 README.txt
@@ -0,0 +1,56 @@
+= 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
+
+== LICENSE:
+
+Copyright (c) 2009, Charles Oliver Nutter
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+Neither the name of BiteScript nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
12 Rakefile
@@ -1,6 +1,18 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
+require 'hoe'
+$: << './lib'
+require 'bitescript.rb'
+
+Hoe.new('bitescript', BiteScript::VERSION) do |p|
+ p.rubyforge_name = 'jruby-extras'
+ p.url = "http://kenai.com/projects/jvmscript"
+ p.author = "charles.nutter@sun.com"
+ p.summary = "BiteScript is a Ruby DSL for generating Java bytecode."
+ p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
+ p.developer('Charles Oliver Nutter', 'charles.nutter@sun.com')
+end
task :default => :test
View
5 lib/bitescript.rb
@@ -1,9 +1,12 @@
+$: << File.dirname(__FILE__)
require 'bitescript/asm'
require 'bitescript/signature'
require 'bitescript/bytecode'
require 'bitescript/builder'
module BiteScript
+ VERSION = '0.0.1'
+
include BiteScript::ASM
JAVA1_4 = Opcodes::V1_4
JAVA1_5 = Opcodes::V1_5
@@ -14,4 +17,4 @@ class << self
BiteScript.bytecode_version = JAVA1_4
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.