AmberVM 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/README +38 -0
- data/bin/ambervm +278 -0
- data/lib/amber/acts_as_rvm_type.rb +157 -0
- data/lib/amber/classes/association.rb +36 -0
- data/lib/amber/classes/block.rb +52 -0
- data/lib/amber/classes/boolean.rb +40 -0
- data/lib/amber/classes/class.rb +50 -0
- data/lib/amber/classes/error.rb +22 -0
- data/lib/amber/classes/list.rb +96 -0
- data/lib/amber/classes/null.rb +35 -0
- data/lib/amber/classes/number.rb +95 -0
- data/lib/amber/classes/object.rb +56 -0
- data/lib/amber/classes/string.rb +79 -0
- data/lib/amber/classes.rb +113 -0
- data/lib/amber/environment.rb +251 -0
- data/lib/amber/fukubukuro/ecma_core.rb +409 -0
- data/lib/amber/fukubukuro.rb +866 -0
- data/lib/amber/functions/all.rb +3 -0
- data/lib/amber/functions/array/append.rb +50 -0
- data/lib/amber/functions/array/at.rb +50 -0
- data/lib/amber/functions/array/set_at.rb +50 -0
- data/lib/amber/functions/array.rb +30 -0
- data/lib/amber/functions/association/assoc_get.rb +55 -0
- data/lib/amber/functions/association/assoc_set.rb +56 -0
- data/lib/amber/functions/bitwise/bitwise_and.rb +41 -0
- data/lib/amber/functions/bitwise/bitwise_not.rb +41 -0
- data/lib/amber/functions/bitwise/bitwise_or.rb +41 -0
- data/lib/amber/functions/bitwise/bitwise_xor.rb +41 -0
- data/lib/amber/functions/bitwise.rb +3 -0
- data/lib/amber/functions/collection/get.rb +66 -0
- data/lib/amber/functions/collection/set.rb +67 -0
- data/lib/amber/functions/collection/size.rb +54 -0
- data/lib/amber/functions/general/cmp.rb +43 -0
- data/lib/amber/functions/general/eq.rb +45 -0
- data/lib/amber/functions/general/gt.rb +45 -0
- data/lib/amber/functions/general/gte.rb +45 -0
- data/lib/amber/functions/general/lt.rb +45 -0
- data/lib/amber/functions/general/lte.rb +45 -0
- data/lib/amber/functions/general/neq.rb +45 -0
- data/lib/amber/functions/general/type.rb +43 -0
- data/lib/amber/functions/general.rb +3 -0
- data/lib/amber/functions/io/print.rb +45 -0
- data/lib/amber/functions/io.rb +3 -0
- data/lib/amber/functions/list/align.rb +73 -0
- data/lib/amber/functions/list/join.rb +45 -0
- data/lib/amber/functions/list/map.rb +58 -0
- data/lib/amber/functions/list/split.rb +55 -0
- data/lib/amber/functions/list.rb +3 -0
- data/lib/amber/functions/logic/and.rb +55 -0
- data/lib/amber/functions/logic/not.rb +40 -0
- data/lib/amber/functions/logic/or.rb +50 -0
- data/lib/amber/functions/logic.rb +3 -0
- data/lib/amber/functions/math/abs.rb +39 -0
- data/lib/amber/functions/math/acos.rb +39 -0
- data/lib/amber/functions/math/add.rb +40 -0
- data/lib/amber/functions/math/asin.rb +39 -0
- data/lib/amber/functions/math/atan.rb +39 -0
- data/lib/amber/functions/math/ceil.rb +39 -0
- data/lib/amber/functions/math/cos.rb +39 -0
- data/lib/amber/functions/math/dec.rb +39 -0
- data/lib/amber/functions/math/div.rb +44 -0
- data/lib/amber/functions/math/exp.rb +39 -0
- data/lib/amber/functions/math/floor.rb +39 -0
- data/lib/amber/functions/math/inc.rb +39 -0
- data/lib/amber/functions/math/log.rb +39 -0
- data/lib/amber/functions/math/mod.rb +41 -0
- data/lib/amber/functions/math/mul.rb +43 -0
- data/lib/amber/functions/math/neg.rb +43 -0
- data/lib/amber/functions/math/power.rb +43 -0
- data/lib/amber/functions/math/rand.rb +36 -0
- data/lib/amber/functions/math/round.rb +39 -0
- data/lib/amber/functions/math/shl.rb +41 -0
- data/lib/amber/functions/math/shr.rb +41 -0
- data/lib/amber/functions/math/sin.rb +39 -0
- data/lib/amber/functions/math/sub.rb +43 -0
- data/lib/amber/functions/math/tan.rb +39 -0
- data/lib/amber/functions/math.rb +3 -0
- data/lib/amber/functions/objects/send.rb +22 -0
- data/lib/amber/functions/rails/print.rb +44 -0
- data/lib/amber/functions/rails.rb +3 -0
- data/lib/amber/functions/string/ansi.rb +24 -0
- data/lib/amber/functions/string/capstr.rb +23 -0
- data/lib/amber/functions/string/center.rb +25 -0
- data/lib/amber/functions/string/chr.rb +16 -0
- data/lib/amber/functions/string/ljust.rb +26 -0
- data/lib/amber/functions/string/regmatch.rb +34 -0
- data/lib/amber/functions/string/rjust.rb +26 -0
- data/lib/amber/functions/string.rb +3 -0
- data/lib/amber/functions.rb +103 -0
- data/lib/amber/interpreter.rb +1380 -0
- data/lib/amber/languages/brainfuck.rb +153 -0
- data/lib/amber/languages/ecma/compiler.rb +1661 -0
- data/lib/amber/languages/ecma/core-math.js +67 -0
- data/lib/amber/languages/ecma/core-objects.js +57 -0
- data/lib/amber/languages/ecma.rb +9 -0
- data/lib/amber/languages/ecma_fuku/compiler.rb +1622 -0
- data/lib/amber/languages/ecma_fuku/core-math.js +67 -0
- data/lib/amber/languages/ecma_fuku/core-objects.js +56 -0
- data/lib/amber/languages/ecma_fuku.rb +13 -0
- data/lib/amber/languages/math/compiler.rb +70 -0
- data/lib/amber/languages/math/tokenizer.rb +69 -0
- data/lib/amber/languages/math/tree.rb +110 -0
- data/lib/amber/languages/math.rb +26 -0
- data/lib/amber/languages.rb +99 -0
- data/lib/amber/library.rb +79 -0
- data/lib/amber/optimisation.rb +299 -0
- data/lib/amber/plugin.rb +337 -0
- data/lib/amber/rails.rb +90 -0
- data/lib/amber.rb +106 -0
- data/spec/amber/class_spec.rb +27 -0
- data/spec/amber/enviroment_spec.rb +61 -0
- data/spec/amber/function_spec.rb +25 -0
- data/spec/amber/functions/association/assoc_get_spec.rb +41 -0
- data/spec/amber/functions/association/assoc_set_spec.rb +43 -0
- data/spec/amber/functions/collection/get_spec.rb +12 -0
- data/spec/amber/functions/collection/set_spec.rb +10 -0
- data/spec/amber/functions/collection/size_spec.rb +10 -0
- data/spec/amber/functions/list/split_spec.rb +47 -0
- data/spec/amber/functions/string/ansi_spec.rb +44 -0
- data/spec/amber/functions/string/capstr_spec.rb +42 -0
- data/spec/amber/functions/string/center_spec.rb +49 -0
- data/spec/amber/functions/string/ljust_spec.rb +49 -0
- data/spec/amber/functions/string/regmatch_spec.rb +52 -0
- data/spec/amber/functions/string/rjust_spec.rb +49 -0
- data/spec/amber/interpreter/assignment_spec.rb +22 -0
- data/spec/amber/interpreter/condition_spec.rb +103 -0
- data/spec/amber/interpreter/constant_spec.rb +31 -0
- data/spec/amber/interpreter/core_call_spec.rb +72 -0
- data/spec/amber/interpreter/interpreter_spec.rb +11 -0
- data/spec/amber/interpreter/parameter_spec.rb +24 -0
- data/spec/amber/interpreter/sequence_spec.rb +47 -0
- data/spec/amber/interpreter/variable_spec.rb +24 -0
- data/spec/amber/plugin_spec.rb +10 -0
- data/spec/classes/atom/association_spec.rb +39 -0
- data/spec/classes/atom/block_spec.rb +25 -0
- data/spec/classes/atom/boolean_spec.rb +67 -0
- data/spec/classes/atom/error_spec.rb +43 -0
- data/spec/classes/atom/list_spec.rb +68 -0
- data/spec/classes/atom/number_spec.rb +132 -0
- data/spec/classes/atom/string_spec.rb +175 -0
- data/spec/languages/ecma/ecma_array_spec.rb +79 -0
- data/spec/languages/ecma/ecma_closure_spec.rb +38 -0
- data/spec/languages/ecma/ecma_literals_spec.rb +71 -0
- data/spec/languages/ecma/ecma_objects_spec.rb +165 -0
- data/spec/languages/ecma/ecma_old_spec.rb +540 -0
- data/spec/languages/ecma/ecma_spec.rb +64 -0
- data/spec/languages/ecma_fuku/ecma_array_spec.rb +61 -0
- data/spec/languages/ecma_fuku/ecma_closure_spec.rb +33 -0
- data/spec/languages/ecma_fuku/ecma_function_spec.rb +84 -0
- data/spec/languages/ecma_fuku/ecma_literals_spec.rb +55 -0
- data/spec/languages/ecma_fuku/ecma_objects_spec.rb +133 -0
- data/spec/languages/ecma_fuku/ecma_old_spec.rb +415 -0
- data/spec/languages/ecma_fuku/ecma_operator_spec.rb +33 -0
- data/spec/languages/ecma_fuku/ecma_spec.rb +52 -0
- data/spec/languages/math/compiler_spec.rb +49 -0
- data/spec/languages/math/tokenizer_spec.rb +73 -0
- data/spec/languages/math/tree_spec.rb +153 -0
- metadata +225 -0
@@ -0,0 +1,153 @@
|
|
1
|
+
require 'amber/languages/math/tree'
|
2
|
+
describe AmberVM::Languages::Math::Tree do
|
3
|
+
before do
|
4
|
+
@t = AmberVM::Languages::Math::Tree
|
5
|
+
end
|
6
|
+
|
7
|
+
it "should handle numbers" do
|
8
|
+
@t.generate([['5', :number]]).should == {:type=>:number, :number=>"5"}
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should handle idents" do
|
12
|
+
@t.generate([['x', :ident]]).should == {:type => :ident, :ident => "x"}
|
13
|
+
end
|
14
|
+
|
15
|
+
it "should handle opperators" do
|
16
|
+
@t.generate(
|
17
|
+
[['left', :ident], ['+', :opperator], ['right', :ident]]
|
18
|
+
).should == {
|
19
|
+
:type => :op,
|
20
|
+
:op => "+",
|
21
|
+
:left => {:type => :ident, :ident => "left"},
|
22
|
+
:right => {:type => :ident, :ident => "right"}
|
23
|
+
}
|
24
|
+
|
25
|
+
@t.generate(
|
26
|
+
[['left', :ident], ['+', :opperator], ['middle', :ident], ['-', :opperator], ['right', :ident]]
|
27
|
+
).should == {
|
28
|
+
:type => :op,
|
29
|
+
:op => "-",
|
30
|
+
:left => {
|
31
|
+
:type => :op,
|
32
|
+
:op => "+",
|
33
|
+
:left => {:type => :ident, :ident => "left"},
|
34
|
+
:right => {:type => :ident, :ident => "middle"}
|
35
|
+
},
|
36
|
+
:right => {:type => :ident, :ident => "right"}
|
37
|
+
}
|
38
|
+
|
39
|
+
@t.generate(
|
40
|
+
[["f", :function], ['x', :ident], [")", :paren_close], ['+', :opperator], ['right', :ident]]
|
41
|
+
).should == {
|
42
|
+
:type => :op,
|
43
|
+
:op => "+",
|
44
|
+
:left => {
|
45
|
+
:type => :function,
|
46
|
+
:op => "f",
|
47
|
+
:params => [
|
48
|
+
{:type => :ident, :ident => "x"},
|
49
|
+
]
|
50
|
+
},
|
51
|
+
:right => {:type => :ident, :ident => "right"}
|
52
|
+
}
|
53
|
+
|
54
|
+
end
|
55
|
+
|
56
|
+
it "should handle opperators prioriteis" do
|
57
|
+
@t.generate(
|
58
|
+
[['left', :ident], ['+', :opperator], ['middle', :ident], ['*', :opperator], ['right', :ident]]
|
59
|
+
).should == {
|
60
|
+
:type => :op,
|
61
|
+
:op => "+",
|
62
|
+
:left => {:type => :ident, :ident => "left"},
|
63
|
+
:right => {
|
64
|
+
:type => :op,
|
65
|
+
:op => "*",
|
66
|
+
:left => {:type => :ident, :ident => "middle"},
|
67
|
+
:right => {:type => :ident, :ident => "right"}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
end
|
71
|
+
|
72
|
+
it "should handle parenthets" do
|
73
|
+
@t.generate(
|
74
|
+
[["(", :paren_open], ['left', :ident], ['+', :opperator], ['middle', :ident], [")", :paren_close], ['*', :opperator], ['right', :ident]]
|
75
|
+
).should == {
|
76
|
+
:type => :op,
|
77
|
+
:op => "*",
|
78
|
+
:left => {
|
79
|
+
:type => :op,
|
80
|
+
:op => "+",
|
81
|
+
:left => {:type => :ident, :ident => "left"},
|
82
|
+
:right => {:type => :ident, :ident => "middle"}
|
83
|
+
},
|
84
|
+
:right => {:type => :ident, :ident => "right"}
|
85
|
+
}
|
86
|
+
end
|
87
|
+
|
88
|
+
it "should handle functions" do
|
89
|
+
@t.generate(
|
90
|
+
[["f", :function], ['x', :ident], [")", :paren_close]]
|
91
|
+
).should == {
|
92
|
+
:type => :function,
|
93
|
+
:op => "f",
|
94
|
+
:params => [
|
95
|
+
{:type => :ident, :ident => "x"},
|
96
|
+
]
|
97
|
+
}
|
98
|
+
|
99
|
+
@t.generate(
|
100
|
+
[["f", :function], ['x', :ident], [',', :function_sep], ['y', :ident], [")", :paren_close]]
|
101
|
+
).should == {
|
102
|
+
:type => :function,
|
103
|
+
:op => "f",
|
104
|
+
:params => [
|
105
|
+
{:type => :ident, :ident => "y"},
|
106
|
+
{:type => :ident, :ident => "x"},
|
107
|
+
]
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
@t.generate(
|
112
|
+
[["f", :function], ['x', :ident], [',', :function_sep], ['y', :ident], [',', :function_sep], ['left', :ident], ['+', :opperator], ['right', :ident], [")", :paren_close]]
|
113
|
+
).should == {
|
114
|
+
:type => :function,
|
115
|
+
:op => "f",
|
116
|
+
:params => [
|
117
|
+
{
|
118
|
+
:type => :op,
|
119
|
+
:op => "+",
|
120
|
+
:left => {:type => :ident, :ident => "left"},
|
121
|
+
:right => {:type => :ident, :ident => "right"}
|
122
|
+
},
|
123
|
+
{:type => :ident, :ident => "y"},
|
124
|
+
{:type => :ident, :ident => "x"},
|
125
|
+
]
|
126
|
+
}
|
127
|
+
|
128
|
+
@t.generate(
|
129
|
+
[["f", :function], ['left', :ident], ['+', :opperator], ['right', :ident], [',', :function_sep], ['y', :ident], [',', :function_sep], ['x', :ident], [")", :paren_close]]
|
130
|
+
).should == {
|
131
|
+
:type => :function,
|
132
|
+
:op => "f",
|
133
|
+
:params => [
|
134
|
+
{:type => :ident, :ident => "x"},
|
135
|
+
{:type => :ident, :ident => "y"},
|
136
|
+
{
|
137
|
+
:type => :op,
|
138
|
+
:op => "+",
|
139
|
+
:left => {:type => :ident, :ident => "left"},
|
140
|
+
:right => {:type => :ident, :ident => "right"}
|
141
|
+
},
|
142
|
+
]
|
143
|
+
}
|
144
|
+
end
|
145
|
+
|
146
|
+
it "should throw exeptions on unknown tokens" do
|
147
|
+
lambda{@t.generate([["haha", :not_good]])}.should raise_error
|
148
|
+
end
|
149
|
+
|
150
|
+
it "should discard ; opperators without a right side" do
|
151
|
+
@t.generate([['x', :ident], [';', :opperator]]).should == {:type => :ident, :ident => "x"}
|
152
|
+
end
|
153
|
+
end
|
metadata
ADDED
@@ -0,0 +1,225 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: AmberVM
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.19
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Heinz N. Gies
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-08-13 00:00:00 +02:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: heinz@licenser.net
|
18
|
+
executables:
|
19
|
+
- ambervm
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README
|
24
|
+
files:
|
25
|
+
- lib/amber.rb
|
26
|
+
- lib/amber/./acts_as_rvm_type.rb
|
27
|
+
- lib/amber/./classes.rb
|
28
|
+
- lib/amber/./environment.rb
|
29
|
+
- lib/amber/./fukubukuro.rb
|
30
|
+
- lib/amber/./functions.rb
|
31
|
+
- lib/amber/./interpreter.rb
|
32
|
+
- lib/amber/./languages.rb
|
33
|
+
- lib/amber/./library.rb
|
34
|
+
- lib/amber/./optimisation.rb
|
35
|
+
- lib/amber/./plugin.rb
|
36
|
+
- lib/amber/./rails.rb
|
37
|
+
- lib/amber/acts_as_rvm_type.rb
|
38
|
+
- lib/amber/classes/association.rb
|
39
|
+
- lib/amber/classes/block.rb
|
40
|
+
- lib/amber/classes/boolean.rb
|
41
|
+
- lib/amber/classes/class.rb
|
42
|
+
- lib/amber/classes/error.rb
|
43
|
+
- lib/amber/classes/list.rb
|
44
|
+
- lib/amber/classes/null.rb
|
45
|
+
- lib/amber/classes/number.rb
|
46
|
+
- lib/amber/classes/object.rb
|
47
|
+
- lib/amber/classes/string.rb
|
48
|
+
- lib/amber/classes.rb
|
49
|
+
- lib/amber/environment.rb
|
50
|
+
- lib/amber/fukubukuro/ecma_core.rb
|
51
|
+
- lib/amber/fukubukuro.rb
|
52
|
+
- lib/amber/functions/all.rb
|
53
|
+
- lib/amber/functions/array/append.rb
|
54
|
+
- lib/amber/functions/array/at.rb
|
55
|
+
- lib/amber/functions/array/set_at.rb
|
56
|
+
- lib/amber/functions/array.rb
|
57
|
+
- lib/amber/functions/association/assoc_get.rb
|
58
|
+
- lib/amber/functions/association/assoc_set.rb
|
59
|
+
- lib/amber/functions/bitwise/bitwise_and.rb
|
60
|
+
- lib/amber/functions/bitwise/bitwise_not.rb
|
61
|
+
- lib/amber/functions/bitwise/bitwise_or.rb
|
62
|
+
- lib/amber/functions/bitwise/bitwise_xor.rb
|
63
|
+
- lib/amber/functions/bitwise.rb
|
64
|
+
- lib/amber/functions/collection/get.rb
|
65
|
+
- lib/amber/functions/collection/set.rb
|
66
|
+
- lib/amber/functions/collection/size.rb
|
67
|
+
- lib/amber/functions/general/cmp.rb
|
68
|
+
- lib/amber/functions/general/eq.rb
|
69
|
+
- lib/amber/functions/general/gt.rb
|
70
|
+
- lib/amber/functions/general/gte.rb
|
71
|
+
- lib/amber/functions/general/lt.rb
|
72
|
+
- lib/amber/functions/general/lte.rb
|
73
|
+
- lib/amber/functions/general/neq.rb
|
74
|
+
- lib/amber/functions/general/type.rb
|
75
|
+
- lib/amber/functions/general.rb
|
76
|
+
- lib/amber/functions/io/print.rb
|
77
|
+
- lib/amber/functions/io.rb
|
78
|
+
- lib/amber/functions/list/align.rb
|
79
|
+
- lib/amber/functions/list/join.rb
|
80
|
+
- lib/amber/functions/list/map.rb
|
81
|
+
- lib/amber/functions/list/split.rb
|
82
|
+
- lib/amber/functions/list.rb
|
83
|
+
- lib/amber/functions/logic/and.rb
|
84
|
+
- lib/amber/functions/logic/not.rb
|
85
|
+
- lib/amber/functions/logic/or.rb
|
86
|
+
- lib/amber/functions/logic.rb
|
87
|
+
- lib/amber/functions/math/abs.rb
|
88
|
+
- lib/amber/functions/math/acos.rb
|
89
|
+
- lib/amber/functions/math/add.rb
|
90
|
+
- lib/amber/functions/math/asin.rb
|
91
|
+
- lib/amber/functions/math/atan.rb
|
92
|
+
- lib/amber/functions/math/ceil.rb
|
93
|
+
- lib/amber/functions/math/cos.rb
|
94
|
+
- lib/amber/functions/math/dec.rb
|
95
|
+
- lib/amber/functions/math/div.rb
|
96
|
+
- lib/amber/functions/math/exp.rb
|
97
|
+
- lib/amber/functions/math/floor.rb
|
98
|
+
- lib/amber/functions/math/inc.rb
|
99
|
+
- lib/amber/functions/math/log.rb
|
100
|
+
- lib/amber/functions/math/mod.rb
|
101
|
+
- lib/amber/functions/math/mul.rb
|
102
|
+
- lib/amber/functions/math/neg.rb
|
103
|
+
- lib/amber/functions/math/power.rb
|
104
|
+
- lib/amber/functions/math/rand.rb
|
105
|
+
- lib/amber/functions/math/round.rb
|
106
|
+
- lib/amber/functions/math/shl.rb
|
107
|
+
- lib/amber/functions/math/shr.rb
|
108
|
+
- lib/amber/functions/math/sin.rb
|
109
|
+
- lib/amber/functions/math/sub.rb
|
110
|
+
- lib/amber/functions/math/tan.rb
|
111
|
+
- lib/amber/functions/math.rb
|
112
|
+
- lib/amber/functions/objects/send.rb
|
113
|
+
- lib/amber/functions/rails/print.rb
|
114
|
+
- lib/amber/functions/rails.rb
|
115
|
+
- lib/amber/functions/string/ansi.rb
|
116
|
+
- lib/amber/functions/string/capstr.rb
|
117
|
+
- lib/amber/functions/string/center.rb
|
118
|
+
- lib/amber/functions/string/chr.rb
|
119
|
+
- lib/amber/functions/string/ljust.rb
|
120
|
+
- lib/amber/functions/string/regmatch.rb
|
121
|
+
- lib/amber/functions/string/rjust.rb
|
122
|
+
- lib/amber/functions/string.rb
|
123
|
+
- lib/amber/functions.rb
|
124
|
+
- lib/amber/interpreter.rb
|
125
|
+
- lib/amber/languages/brainfuck.rb
|
126
|
+
- lib/amber/languages/ecma/compiler.rb
|
127
|
+
- lib/amber/languages/ecma/core-math.js
|
128
|
+
- lib/amber/languages/ecma/core-objects.js
|
129
|
+
- lib/amber/languages/ecma.rb
|
130
|
+
- lib/amber/languages/ecma_fuku/compiler.rb
|
131
|
+
- lib/amber/languages/ecma_fuku/core-math.js
|
132
|
+
- lib/amber/languages/ecma_fuku/core-objects.js
|
133
|
+
- lib/amber/languages/ecma_fuku.rb
|
134
|
+
- lib/amber/languages/math/compiler.rb
|
135
|
+
- lib/amber/languages/math/tokenizer.rb
|
136
|
+
- lib/amber/languages/math/tree.rb
|
137
|
+
- lib/amber/languages/math.rb
|
138
|
+
- lib/amber/languages.rb
|
139
|
+
- lib/amber/library.rb
|
140
|
+
- lib/amber/optimisation.rb
|
141
|
+
- lib/amber/plugin.rb
|
142
|
+
- lib/amber/rails.rb
|
143
|
+
- bin/ambervm
|
144
|
+
- README
|
145
|
+
has_rdoc: true
|
146
|
+
homepage: http://code.licenser.net/projects/show/amber
|
147
|
+
licenses: []
|
148
|
+
|
149
|
+
post_install_message:
|
150
|
+
rdoc_options:
|
151
|
+
- --title
|
152
|
+
- Amber VM
|
153
|
+
- --main
|
154
|
+
- README
|
155
|
+
- --line-numbers
|
156
|
+
require_paths:
|
157
|
+
- lib
|
158
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: "0"
|
163
|
+
version:
|
164
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: "0"
|
169
|
+
version:
|
170
|
+
requirements: []
|
171
|
+
|
172
|
+
rubyforge_project: rvm
|
173
|
+
rubygems_version: 1.3.5
|
174
|
+
signing_key:
|
175
|
+
specification_version: 3
|
176
|
+
summary: A ruby based VM that lets one add secure scripting to ruby applications.
|
177
|
+
test_files:
|
178
|
+
- spec/amber/class_spec.rb
|
179
|
+
- spec/amber/enviroment_spec.rb
|
180
|
+
- spec/amber/function_spec.rb
|
181
|
+
- spec/amber/functions/association/assoc_get_spec.rb
|
182
|
+
- spec/amber/functions/association/assoc_set_spec.rb
|
183
|
+
- spec/amber/functions/collection/get_spec.rb
|
184
|
+
- spec/amber/functions/collection/set_spec.rb
|
185
|
+
- spec/amber/functions/collection/size_spec.rb
|
186
|
+
- spec/amber/functions/list/split_spec.rb
|
187
|
+
- spec/amber/functions/string/ansi_spec.rb
|
188
|
+
- spec/amber/functions/string/capstr_spec.rb
|
189
|
+
- spec/amber/functions/string/center_spec.rb
|
190
|
+
- spec/amber/functions/string/ljust_spec.rb
|
191
|
+
- spec/amber/functions/string/regmatch_spec.rb
|
192
|
+
- spec/amber/functions/string/rjust_spec.rb
|
193
|
+
- spec/amber/interpreter/assignment_spec.rb
|
194
|
+
- spec/amber/interpreter/condition_spec.rb
|
195
|
+
- spec/amber/interpreter/constant_spec.rb
|
196
|
+
- spec/amber/interpreter/core_call_spec.rb
|
197
|
+
- spec/amber/interpreter/interpreter_spec.rb
|
198
|
+
- spec/amber/interpreter/parameter_spec.rb
|
199
|
+
- spec/amber/interpreter/sequence_spec.rb
|
200
|
+
- spec/amber/interpreter/variable_spec.rb
|
201
|
+
- spec/amber/plugin_spec.rb
|
202
|
+
- spec/classes/atom/association_spec.rb
|
203
|
+
- spec/classes/atom/block_spec.rb
|
204
|
+
- spec/classes/atom/boolean_spec.rb
|
205
|
+
- spec/classes/atom/error_spec.rb
|
206
|
+
- spec/classes/atom/list_spec.rb
|
207
|
+
- spec/classes/atom/number_spec.rb
|
208
|
+
- spec/classes/atom/string_spec.rb
|
209
|
+
- spec/languages/ecma/ecma_array_spec.rb
|
210
|
+
- spec/languages/ecma/ecma_closure_spec.rb
|
211
|
+
- spec/languages/ecma/ecma_literals_spec.rb
|
212
|
+
- spec/languages/ecma/ecma_objects_spec.rb
|
213
|
+
- spec/languages/ecma/ecma_old_spec.rb
|
214
|
+
- spec/languages/ecma/ecma_spec.rb
|
215
|
+
- spec/languages/ecma_fuku/ecma_array_spec.rb
|
216
|
+
- spec/languages/ecma_fuku/ecma_closure_spec.rb
|
217
|
+
- spec/languages/ecma_fuku/ecma_function_spec.rb
|
218
|
+
- spec/languages/ecma_fuku/ecma_literals_spec.rb
|
219
|
+
- spec/languages/ecma_fuku/ecma_objects_spec.rb
|
220
|
+
- spec/languages/ecma_fuku/ecma_old_spec.rb
|
221
|
+
- spec/languages/ecma_fuku/ecma_operator_spec.rb
|
222
|
+
- spec/languages/ecma_fuku/ecma_spec.rb
|
223
|
+
- spec/languages/math/compiler_spec.rb
|
224
|
+
- spec/languages/math/tokenizer_spec.rb
|
225
|
+
- spec/languages/math/tree_spec.rb
|