mirah 0.0.10-java → 0.0.11-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +44 -0
- data/README.txt +12 -7
- data/Rakefile +13 -12
- data/examples/SortClosure$__xform_tmp_1.class +0 -0
- data/examples/SortClosure$__xform_tmp_2.class +0 -0
- data/examples/SortClosure.class +0 -0
- data/examples/macros/StringEachChar$Extension1.class +0 -0
- data/javalib/mirah-bootstrap.jar +0 -0
- data/lib/mirah/appengine_tasks.rb +8 -6
- data/lib/mirah/ast/flow.rb +3 -3
- data/lib/mirah/ast/structure.rb +23 -2
- data/lib/mirah/commands/base.rb +5 -2
- data/lib/mirah/commands/base.rb~ +57 -0
- data/lib/mirah/commands/run.rb +15 -8
- data/lib/mirah/jvm/compiler/java_source.rb +15 -11
- data/lib/mirah/jvm/method_lookup.rb~ +247 -0
- data/lib/mirah/jvm/types/bitescript_ext.rb +41 -0
- data/lib/mirah/jvm/types/boolean.rb +33 -0
- data/lib/mirah/jvm/types/factory.rb +43 -3
- data/lib/mirah/jvm/types/integers.rb +1 -14
- data/lib/mirah/jvm/types/intrinsics.rb +1 -14
- data/lib/mirah/jvm/types/source_mirror.rb +6 -3
- data/lib/mirah/parser.rb +2 -6
- data/lib/mirah/transform/transformer.rb +2 -0
- data/lib/mirah/util/argument_processor.rb +33 -12
- data/lib/mirah/util/class_loader.rb +7 -2
- data/lib/mirah/util/compilation_state.rb +8 -0
- data/lib/mirah/version.rb +1 -1
- data/lib/mirah/version.rb~ +18 -0
- data/test/core/{test_ast.rb → ast_test.rb} +5 -1
- data/test/core/{test_commands.rb → commands_test.rb} +29 -2
- data/test/core/{test_compilation.rb → compilation_test.rb} +2 -2
- data/test/core/{test_env.rb → env_test.rb} +2 -2
- data/test/core/{test_macros.rb → macros_test.rb} +2 -2
- data/test/core/{test_typer.rb → typer_test.rb} +1 -1
- data/test/core/util/argument_processor_test.rb +64 -0
- data/test/core/util/class_loader_test.rb +31 -0
- data/test/fixtures/my.properties +0 -0
- data/test/fixtures/org/foo/A.class +0 -0
- data/test/jvm/{test_annotations.rb → annotations_test.rb} +2 -2
- data/test/jvm/blocks_test.rb +262 -0
- data/test/jvm/bytecode_test_helper.rb +1 -33
- data/test/jvm/constructors_test.rb +110 -0
- data/test/jvm/{test_enumerable.rb → enumerable_test.rb} +2 -2
- data/test/jvm/factory_test.rb +22 -0
- data/test/jvm/{test_java_typer.rb → java_typer_test.rb} +1 -1
- data/test/jvm/jvm_compiler_test.rb +2162 -0
- data/test/jvm/{test_jvm_compiler.rb → jvm_compiler_test.rb~} +43 -220
- data/test/jvm/{test_macros.rb → macros_test.rb} +2 -2
- data/test/jvm/{test_main_method.rb → main_method_test.rb} +2 -2
- data/test/jvm/{test_rescue.rb → rescue_test.rb} +33 -2
- data/test/plugins/{test_gwt.rb → gwt_test.rb} +2 -2
- data/test/test_helper.rb +40 -0
- metadata +33 -33
- data/test/jvm/test_blocks.rb +0 -62
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: mirah
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.11
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Charles Oliver Nutter
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date:
|
14
|
+
date: 2012-04-09 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bitescript
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- lib/mirah/transform.rb
|
63
63
|
- lib/mirah/typer.rb
|
64
64
|
- lib/mirah/version.rb
|
65
|
+
- lib/mirah/version.rb~
|
65
66
|
- lib/mirah/ast/call.rb
|
66
67
|
- lib/mirah/ast/class.rb
|
67
68
|
- lib/mirah/ast/flow.rb
|
@@ -73,6 +74,7 @@ files:
|
|
73
74
|
- lib/mirah/ast/structure.rb
|
74
75
|
- lib/mirah/ast/type.rb
|
75
76
|
- lib/mirah/commands/base.rb
|
77
|
+
- lib/mirah/commands/base.rb~
|
76
78
|
- lib/mirah/commands/compile.rb
|
77
79
|
- lib/mirah/commands/parse.rb
|
78
80
|
- lib/mirah/commands/run.rb
|
@@ -86,6 +88,7 @@ files:
|
|
86
88
|
- lib/mirah/compiler/type.rb
|
87
89
|
- lib/mirah/jvm/compiler.rb
|
88
90
|
- lib/mirah/jvm/method_lookup.rb
|
91
|
+
- lib/mirah/jvm/method_lookup.rb~
|
89
92
|
- lib/mirah/jvm/typer.rb
|
90
93
|
- lib/mirah/jvm/types.rb
|
91
94
|
- lib/mirah/jvm/compiler/base.rb
|
@@ -97,6 +100,7 @@ files:
|
|
97
100
|
- lib/mirah/jvm/source_generator/typer.rb
|
98
101
|
- lib/mirah/jvm/types/array_type.rb
|
99
102
|
- lib/mirah/jvm/types/basic_types.rb
|
103
|
+
- lib/mirah/jvm/types/bitescript_ext.rb
|
100
104
|
- lib/mirah/jvm/types/boolean.rb
|
101
105
|
- lib/mirah/jvm/types/dynamic_type.rb
|
102
106
|
- lib/mirah/jvm/types/enumerable.rb
|
@@ -131,23 +135,30 @@ files:
|
|
131
135
|
- lib/mirah/util/compilation_state.rb
|
132
136
|
- lib/mirah/util/process_errors.rb
|
133
137
|
- test/test_helper.rb
|
134
|
-
- test/core/
|
135
|
-
- test/core/
|
136
|
-
- test/core/
|
137
|
-
- test/core/
|
138
|
-
- test/core/
|
139
|
-
- test/core/
|
138
|
+
- test/core/ast_test.rb
|
139
|
+
- test/core/commands_test.rb
|
140
|
+
- test/core/compilation_test.rb
|
141
|
+
- test/core/env_test.rb
|
142
|
+
- test/core/macros_test.rb
|
143
|
+
- test/core/typer_test.rb
|
144
|
+
- test/core/util/argument_processor_test.rb
|
145
|
+
- test/core/util/class_loader_test.rb
|
146
|
+
- test/fixtures/my.properties
|
147
|
+
- test/fixtures/org/foo/A.class
|
148
|
+
- test/jvm/annotations_test.rb
|
149
|
+
- test/jvm/blocks_test.rb
|
140
150
|
- test/jvm/bytecode_test_helper.rb
|
151
|
+
- test/jvm/constructors_test.rb
|
152
|
+
- test/jvm/enumerable_test.rb
|
153
|
+
- test/jvm/factory_test.rb
|
154
|
+
- test/jvm/java_typer_test.rb
|
141
155
|
- test/jvm/javac_test_helper.rb
|
142
|
-
- test/jvm/
|
143
|
-
- test/jvm/
|
144
|
-
- test/jvm/
|
145
|
-
- test/jvm/
|
146
|
-
- test/jvm/
|
147
|
-
- test/
|
148
|
-
- test/jvm/test_main_method.rb
|
149
|
-
- test/jvm/test_rescue.rb
|
150
|
-
- test/plugins/test_gwt.rb
|
156
|
+
- test/jvm/jvm_compiler_test.rb
|
157
|
+
- test/jvm/jvm_compiler_test.rb~
|
158
|
+
- test/jvm/macros_test.rb
|
159
|
+
- test/jvm/main_method_test.rb
|
160
|
+
- test/jvm/rescue_test.rb
|
161
|
+
- test/plugins/gwt_test.rb
|
151
162
|
- examples/bintrees.mirah
|
152
163
|
- examples/construction.mirah
|
153
164
|
- examples/dynamic.mirah
|
@@ -159,6 +170,9 @@ files:
|
|
159
170
|
- examples/java_thing.mirah
|
160
171
|
- examples/simple_class.mirah
|
161
172
|
- examples/sort_closure.mirah
|
173
|
+
- examples/SortClosure$__xform_tmp_1.class
|
174
|
+
- examples/SortClosure$__xform_tmp_2.class
|
175
|
+
- examples/SortClosure.class
|
162
176
|
- examples/swing.mirah
|
163
177
|
- examples/tak.mirah
|
164
178
|
- examples/test.edb
|
@@ -171,6 +185,7 @@ files:
|
|
171
185
|
- examples/macros/square.mirah
|
172
186
|
- examples/macros/square_int.mirah
|
173
187
|
- examples/macros/string-each-char.mirah
|
188
|
+
- examples/macros/StringEachChar$Extension1.class
|
174
189
|
- examples/maven/pom.xml
|
175
190
|
- examples/maven/README.txt
|
176
191
|
- examples/maven/src/main/mirah/hello_mirah.mirah
|
@@ -245,24 +260,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
260
|
requirements: []
|
246
261
|
|
247
262
|
rubyforge_project: mirah
|
248
|
-
rubygems_version: 1.8.
|
263
|
+
rubygems_version: 1.8.15
|
249
264
|
signing_key:
|
250
265
|
specification_version: 3
|
251
266
|
summary: Mirah is a customizable programming language featuring static types, local type inference and a heavily Ruby-inspired syntax
|
252
267
|
test_files:
|
253
268
|
- test/test_helper.rb
|
254
|
-
- test/core/test_ast.rb
|
255
|
-
- test/core/test_commands.rb
|
256
|
-
- test/core/test_compilation.rb
|
257
|
-
- test/core/test_env.rb
|
258
|
-
- test/core/test_macros.rb
|
259
|
-
- test/core/test_typer.rb
|
260
|
-
- test/jvm/test_annotations.rb
|
261
|
-
- test/jvm/test_blocks.rb
|
262
|
-
- test/jvm/test_enumerable.rb
|
263
|
-
- test/jvm/test_java_typer.rb
|
264
|
-
- test/jvm/test_jvm_compiler.rb
|
265
|
-
- test/jvm/test_macros.rb
|
266
|
-
- test/jvm/test_main_method.rb
|
267
|
-
- test/jvm/test_rescue.rb
|
268
|
-
- test/plugins/test_gwt.rb
|
data/test/jvm/test_blocks.rb
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
# Copyright (c) 2010 The Mirah project authors. All Rights Reserved.
|
2
|
-
# All contributing project authors may be found in the NOTICE file.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
class TestBlocks < Test::Unit::TestCase
|
17
|
-
|
18
|
-
def setup
|
19
|
-
super
|
20
|
-
clear_tmp_files
|
21
|
-
reset_type_factory
|
22
|
-
end
|
23
|
-
|
24
|
-
def parse_and_type code, name=tmp_script_name
|
25
|
-
parse_and_resolve_types name, code
|
26
|
-
end
|
27
|
-
|
28
|
-
#this should probably be a core test
|
29
|
-
def test_empty_block_parses_and_types_without_error
|
30
|
-
assert_nothing_raised do
|
31
|
-
parse_and_type(<<-CODE)
|
32
|
-
interface Bar do;def run:void;end;end
|
33
|
-
|
34
|
-
class Foo
|
35
|
-
def foo(a:Bar)
|
36
|
-
1
|
37
|
-
end
|
38
|
-
end
|
39
|
-
Foo.new.foo do
|
40
|
-
end
|
41
|
-
CODE
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def test_non_empty_block_parses_and_types_without_error
|
46
|
-
assert_nothing_raised do
|
47
|
-
parse_and_type(<<-CODE)
|
48
|
-
interface Bar do;def run:void;end;end
|
49
|
-
|
50
|
-
class Foo
|
51
|
-
def foo(a:Bar)
|
52
|
-
1
|
53
|
-
end
|
54
|
-
end
|
55
|
-
Foo.new.foo do
|
56
|
-
1
|
57
|
-
end
|
58
|
-
CODE
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
end
|