rkelly 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. data/CHANGELOG.txt +7 -0
  2. data/Manifest.txt +199 -0
  3. data/README.txt +58 -0
  4. data/Rakefile +85 -0
  5. data/lib/parser.y +870 -0
  6. data/lib/rkelly.rb +13 -0
  7. data/lib/rkelly/constants.rb +3 -0
  8. data/lib/rkelly/generated_parser.rb +3237 -0
  9. data/lib/rkelly/js.rb +14 -0
  10. data/lib/rkelly/js/array.rb +15 -0
  11. data/lib/rkelly/js/base.rb +91 -0
  12. data/lib/rkelly/js/boolean.rb +21 -0
  13. data/lib/rkelly/js/function.rb +39 -0
  14. data/lib/rkelly/js/function_prototype.rb +15 -0
  15. data/lib/rkelly/js/global_object.rb +52 -0
  16. data/lib/rkelly/js/math.rb +10 -0
  17. data/lib/rkelly/js/nan.rb +18 -0
  18. data/lib/rkelly/js/number.rb +22 -0
  19. data/lib/rkelly/js/object.rb +30 -0
  20. data/lib/rkelly/js/object_prototype.rb +14 -0
  21. data/lib/rkelly/js/property.rb +20 -0
  22. data/lib/rkelly/js/scope.rb +6 -0
  23. data/lib/rkelly/js/string.rb +21 -0
  24. data/lib/rkelly/lexeme.rb +18 -0
  25. data/lib/rkelly/nodes.rb +5 -0
  26. data/lib/rkelly/nodes/binary_node.rb +18 -0
  27. data/lib/rkelly/nodes/bracket_accessor_node.rb +11 -0
  28. data/lib/rkelly/nodes/case_clause_node.rb +11 -0
  29. data/lib/rkelly/nodes/comma_node.rb +11 -0
  30. data/lib/rkelly/nodes/conditional_node.rb +11 -0
  31. data/lib/rkelly/nodes/dot_accessor_node.rb +11 -0
  32. data/lib/rkelly/nodes/for_in_node.rb +12 -0
  33. data/lib/rkelly/nodes/for_node.rb +13 -0
  34. data/lib/rkelly/nodes/function_call_node.rb +16 -0
  35. data/lib/rkelly/nodes/function_decl_node.rb +6 -0
  36. data/lib/rkelly/nodes/function_expr_node.rb +12 -0
  37. data/lib/rkelly/nodes/if_node.rb +12 -0
  38. data/lib/rkelly/nodes/label_node.rb +11 -0
  39. data/lib/rkelly/nodes/new_expr_node.rb +11 -0
  40. data/lib/rkelly/nodes/node.rb +88 -0
  41. data/lib/rkelly/nodes/not_strict_equal_node.rb +6 -0
  42. data/lib/rkelly/nodes/op_equal_node.rb +16 -0
  43. data/lib/rkelly/nodes/postfix_node.rb +11 -0
  44. data/lib/rkelly/nodes/prefix_node.rb +6 -0
  45. data/lib/rkelly/nodes/property_node.rb +13 -0
  46. data/lib/rkelly/nodes/resolve_node.rb +19 -0
  47. data/lib/rkelly/nodes/strict_equal_node.rb +6 -0
  48. data/lib/rkelly/nodes/try_node.rb +13 -0
  49. data/lib/rkelly/nodes/var_decl_node.rb +15 -0
  50. data/lib/rkelly/parser.rb +100 -0
  51. data/lib/rkelly/runtime.rb +36 -0
  52. data/lib/rkelly/runtime/ruby_function.rb +13 -0
  53. data/lib/rkelly/runtime/scope_chain.rb +57 -0
  54. data/lib/rkelly/token.rb +15 -0
  55. data/lib/rkelly/tokenizer.rb +122 -0
  56. data/lib/rkelly/visitable.rb +16 -0
  57. data/lib/rkelly/visitors.rb +4 -0
  58. data/lib/rkelly/visitors/dot_visitor.rb +228 -0
  59. data/lib/rkelly/visitors/ecma_visitor.rb +314 -0
  60. data/lib/rkelly/visitors/enumerable_visitor.rb +18 -0
  61. data/lib/rkelly/visitors/evaluation_visitor.rb +419 -0
  62. data/lib/rkelly/visitors/function_visitor.rb +46 -0
  63. data/lib/rkelly/visitors/pointcut_visitor.rb +31 -0
  64. data/lib/rkelly/visitors/real_sexp_visitor.rb +16 -0
  65. data/lib/rkelly/visitors/sexp_visitor.rb +373 -0
  66. data/lib/rkelly/visitors/visitor.rb +136 -0
  67. data/rkelly.gemspec +33 -0
  68. data/test/ecma_script_test_case.rb +21 -0
  69. data/test/execute_test_case.rb +16 -0
  70. data/test/execution_contexts/test_10_1_3-1.rb +32 -0
  71. data/test/expressions/test_11_3_1.rb +64 -0
  72. data/test/expressions/test_11_3_2.rb +64 -0
  73. data/test/expressions/test_11_4_2.rb +13 -0
  74. data/test/expressions/test_11_4_3.rb +52 -0
  75. data/test/expressions/test_11_4_4.rb +68 -0
  76. data/test/expressions/test_11_4_5.rb +69 -0
  77. data/test/expressions/test_11_4_6.rb +88 -0
  78. data/test/expressions/test_11_4_8.rb +28 -0
  79. data/test/expressions/test_11_4_9.rb +103 -0
  80. data/test/expressions/test_11_5_1.rb +51 -0
  81. data/test/expressions/test_11_5_2.rb +80 -0
  82. data/test/expressions/test_11_5_3.rb +88 -0
  83. data/test/expressions/test_11_6_1-1.rb +19 -0
  84. data/test/expressions/test_11_9_1.rb +19 -0
  85. data/test/function/test_15_3_1_1-1.rb +34 -0
  86. data/test/global_object/test_15_1_1_1.rb +29 -0
  87. data/test/global_object/test_15_1_1_2.rb +17 -0
  88. data/test/global_object/test_15_1_1_3.rb +9 -0
  89. data/test/helper.rb +5 -0
  90. data/test/node_test_case.rb +11 -0
  91. data/test/object/test_15_2_1_1.rb +257 -0
  92. data/test/object/test_15_2_1_2.rb +21 -0
  93. data/test/object/test_15_2_2_1.rb +52 -0
  94. data/test/statements/test_12_5-1.rb +27 -0
  95. data/test/test_add_node.rb +8 -0
  96. data/test/test_arguments_node.rb +8 -0
  97. data/test/test_array_node.rb +9 -0
  98. data/test/test_assign_expr_node.rb +8 -0
  99. data/test/test_automatic_semicolon_insertion.rb +137 -0
  100. data/test/test_bit_and_node.rb +8 -0
  101. data/test/test_bit_or_node.rb +8 -0
  102. data/test/test_bit_x_or_node.rb +8 -0
  103. data/test/test_bitwise_not_node.rb +8 -0
  104. data/test/test_block_node.rb +14 -0
  105. data/test/test_bracket_accessor_node.rb +16 -0
  106. data/test/test_break_node.rb +11 -0
  107. data/test/test_case_block_node.rb +11 -0
  108. data/test/test_case_clause_node.rb +15 -0
  109. data/test/test_comma_node.rb +13 -0
  110. data/test/test_comments.rb +44 -0
  111. data/test/test_conditional_node.rb +17 -0
  112. data/test/test_const_statement_node.rb +14 -0
  113. data/test/test_continue_node.rb +11 -0
  114. data/test/test_delete_node.rb +8 -0
  115. data/test/test_divide_node.rb +8 -0
  116. data/test/test_do_while_node.rb +13 -0
  117. data/test/test_dot_accessor_node.rb +9 -0
  118. data/test/test_ecma_visitor.rb +192 -0
  119. data/test/test_element_node.rb +8 -0
  120. data/test/test_empty_statement_node.rb +8 -0
  121. data/test/test_equal_node.rb +8 -0
  122. data/test/test_evaluation_visitor.rb +66 -0
  123. data/test/test_expression_statement_node.rb +10 -0
  124. data/test/test_false_node.rb +8 -0
  125. data/test/test_for_in_node.rb +17 -0
  126. data/test/test_for_node.rb +24 -0
  127. data/test/test_function_body_node.rb +8 -0
  128. data/test/test_function_call_node.rb +10 -0
  129. data/test/test_function_decl_node.rb +16 -0
  130. data/test/test_function_expr_node.rb +16 -0
  131. data/test/test_function_visitor.rb +26 -0
  132. data/test/test_getter_property_node.rb +10 -0
  133. data/test/test_global_object.rb +49 -0
  134. data/test/test_greater_node.rb +8 -0
  135. data/test/test_greater_or_equal_node.rb +8 -0
  136. data/test/test_if_node.rb +17 -0
  137. data/test/test_in_node.rb +8 -0
  138. data/test/test_instance_of_node.rb +8 -0
  139. data/test/test_label_node.rb +13 -0
  140. data/test/test_left_shift_node.rb +8 -0
  141. data/test/test_less_node.rb +8 -0
  142. data/test/test_less_or_equal_node.rb +8 -0
  143. data/test/test_line_number.rb +23 -0
  144. data/test/test_logical_and_node.rb +8 -0
  145. data/test/test_logical_not_node.rb +8 -0
  146. data/test/test_logical_or_node.rb +8 -0
  147. data/test/test_modulus_node.rb +8 -0
  148. data/test/test_multiply_node.rb +8 -0
  149. data/test/test_new_expr_node.rb +9 -0
  150. data/test/test_not_equal_node.rb +8 -0
  151. data/test/test_not_strict_equal_node.rb +8 -0
  152. data/test/test_null_node.rb +8 -0
  153. data/test/test_number_node.rb +8 -0
  154. data/test/test_object_literal_node.rb +9 -0
  155. data/test/test_op_and_equal_node.rb +10 -0
  156. data/test/test_op_divide_equal_node.rb +10 -0
  157. data/test/test_op_equal_node.rb +10 -0
  158. data/test/test_op_l_shift_equal_node.rb +10 -0
  159. data/test/test_op_minus_equal_node.rb +10 -0
  160. data/test/test_op_mod_equal_node.rb +10 -0
  161. data/test/test_op_multiply_equal_node.rb +10 -0
  162. data/test/test_op_or_equal_node.rb +10 -0
  163. data/test/test_op_plus_equal_node.rb +10 -0
  164. data/test/test_op_r_shift_equal_node.rb +10 -0
  165. data/test/test_op_u_r_shift_equal_node.rb +10 -0
  166. data/test/test_op_x_or_equal_node.rb +10 -0
  167. data/test/test_parameter_node.rb +8 -0
  168. data/test/test_parser.rb +1355 -0
  169. data/test/test_pointcut_visitor.rb +34 -0
  170. data/test/test_postfix_node.rb +8 -0
  171. data/test/test_prefix_node.rb +8 -0
  172. data/test/test_property_node.rb +8 -0
  173. data/test/test_regexp_node.rb +8 -0
  174. data/test/test_resolve_node.rb +22 -0
  175. data/test/test_return_node.rb +11 -0
  176. data/test/test_right_shift_node.rb +8 -0
  177. data/test/test_rkelly.rb +19 -0
  178. data/test/test_runtime.rb +12 -0
  179. data/test/test_scope_chain.rb +50 -0
  180. data/test/test_setter_property_node.rb +10 -0
  181. data/test/test_source_elements.rb +9 -0
  182. data/test/test_strict_equal_node.rb +8 -0
  183. data/test/test_string_node.rb +8 -0
  184. data/test/test_subtract_node.rb +8 -0
  185. data/test/test_switch_node.rb +12 -0
  186. data/test/test_this_node.rb +8 -0
  187. data/test/test_throw_node.rb +7 -0
  188. data/test/test_tokenizer.rb +143 -0
  189. data/test/test_true_node.rb +8 -0
  190. data/test/test_try_node.rb +59 -0
  191. data/test/test_type_of_node.rb +8 -0
  192. data/test/test_unary_minus_node.rb +8 -0
  193. data/test/test_unary_plus_node.rb +8 -0
  194. data/test/test_unsigned_right_shift_node.rb +8 -0
  195. data/test/test_var_decl_node.rb +21 -0
  196. data/test/test_var_statement_node.rb +14 -0
  197. data/test/test_void_node.rb +8 -0
  198. data/test/test_while_node.rb +15 -0
  199. data/test/test_with_node.rb +8 -0
  200. metadata +390 -0
@@ -0,0 +1,59 @@
1
+ require File.dirname(__FILE__) + "/helper"
2
+
3
+ class TryNodeTest < NodeTestCase
4
+ def test_failure
5
+ var_foo = VarStatementNode.new([
6
+ VarDeclNode.new('foo', AssignExprNode.new(NumberNode.new(10)))
7
+ ])
8
+
9
+ var_bar = VarStatementNode.new([
10
+ VarDeclNode.new('bar', AssignExprNode.new(NumberNode.new(20)))
11
+ ])
12
+
13
+ var_baz = VarStatementNode.new([
14
+ VarDeclNode.new('baz', AssignExprNode.new(NumberNode.new(69)))
15
+ ])
16
+
17
+ try_block = BlockNode.new(SourceElementsNode.new([var_baz]))
18
+ catch_block = BlockNode.new(SourceElementsNode.new([var_bar]))
19
+ finally_block = BlockNode.new(SourceElementsNode.new([var_foo]))
20
+
21
+ node = TryNode.new(try_block, nil, nil, finally_block)
22
+ assert_sexp([ :try,
23
+ [:block,
24
+ [[:var, [[:var_decl, :baz, [:assign, [:lit, 69]]]]]]
25
+ ],
26
+ nil,
27
+ nil,
28
+ [:block,
29
+ [[:var, [[:var_decl, :foo, [:assign, [:lit, 10]]]]]]
30
+ ]
31
+ ], node)
32
+
33
+ node = TryNode.new(try_block, 'a', catch_block)
34
+ assert_sexp([ :try,
35
+ [:block,
36
+ [[:var, [[:var_decl, :baz, [:assign, [:lit, 69]]]]]]
37
+ ],
38
+ 'a',
39
+ [:block,
40
+ [[:var, [[:var_decl, :bar, [:assign, [:lit, 20]]]]]]
41
+ ],
42
+ nil,
43
+ ], node)
44
+
45
+ node = TryNode.new(try_block, 'a', catch_block, finally_block)
46
+ assert_sexp([ :try,
47
+ [:block,
48
+ [[:var, [[:var_decl, :baz, [:assign, [:lit, 69]]]]]]
49
+ ],
50
+ 'a',
51
+ [:block,
52
+ [[:var, [[:var_decl, :bar, [:assign, [:lit, 20]]]]]]
53
+ ],
54
+ [:block,
55
+ [[:var, [[:var_decl, :foo, [:assign, [:lit, 10]]]]]]
56
+ ]
57
+ ], node)
58
+ end
59
+ end
@@ -0,0 +1,8 @@
1
+ require File.dirname(__FILE__) + "/helper"
2
+
3
+ class TypeOfNodeTest < NodeTestCase
4
+ def test_to_sexp
5
+ node = TypeOfNode.new(ResolveNode.new('foo'))
6
+ assert_sexp([:typeof, [:resolve, 'foo']], node)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require File.dirname(__FILE__) + "/helper"
2
+
3
+ class UnaryMinusNodeTest < NodeTestCase
4
+ def test_to_sexp
5
+ node = UnaryMinusNode.new(NumberNode.new(10))
6
+ assert_sexp([:u_minus, [:lit, 10]], node)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require File.dirname(__FILE__) + "/helper"
2
+
3
+ class UnaryPlusNodeTest < NodeTestCase
4
+ def test_to_sexp
5
+ node = UnaryPlusNode.new(NumberNode.new(10))
6
+ assert_sexp([:u_plus, [:lit, 10]], node)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require File.dirname(__FILE__) + "/helper"
2
+
3
+ class UnsignedRightShiftNodeTest < NodeTestCase
4
+ def test_to_sexp
5
+ node = UnsignedRightShiftNode.new(NumberNode.new(5), NumberNode.new(10))
6
+ assert_sexp([:urshift, [:lit, 5], [:lit, 10]], node)
7
+ end
8
+ end
@@ -0,0 +1,21 @@
1
+ require File.dirname(__FILE__) + "/helper"
2
+
3
+ class VarDeclNodeTest < NodeTestCase
4
+ def test_to_sexp
5
+ initializer = AssignExprNode.new(NumberNode.new(10))
6
+ node = VarDeclNode.new('foo', initializer)
7
+ assert_sexp [:var_decl, :foo, [:assign, [:lit, 10]]], node
8
+
9
+ node = VarDeclNode.new('foo', nil)
10
+ assert_sexp [:var_decl, :foo, nil], node
11
+ end
12
+
13
+ def test_const_to_sexp
14
+ initializer = AssignExprNode.new(NumberNode.new(10))
15
+ node = VarDeclNode.new('foo', initializer, true)
16
+ assert_sexp [:const_decl, :foo, [:assign, [:lit, 10]]], node
17
+
18
+ node = VarDeclNode.new('foo', nil, true)
19
+ assert_sexp [:const_decl, :foo, nil], node
20
+ end
21
+ end
@@ -0,0 +1,14 @@
1
+ require File.dirname(__FILE__) + "/helper"
2
+
3
+ class VarStatementNodeTest < NodeTestCase
4
+ def test_to_sexp
5
+ initializer = AssignExprNode.new(NumberNode.new(10))
6
+ decl = VarDeclNode.new('foo', initializer)
7
+ stmt = VarStatementNode.new([decl])
8
+
9
+ assert_sexp(
10
+ [:var, [[:var_decl, :foo, [:assign, [:lit, 10]]]]],
11
+ stmt
12
+ )
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ require File.dirname(__FILE__) + "/helper"
2
+
3
+ class VoidNodeTest < NodeTestCase
4
+ def test_to_sexp
5
+ node = VoidNode.new(ResolveNode.new('foo'))
6
+ assert_sexp([:void, [:resolve, 'foo']], node)
7
+ end
8
+ end
@@ -0,0 +1,15 @@
1
+ require File.dirname(__FILE__) + "/helper"
2
+
3
+ class WhileNodeTest < NodeTestCase
4
+ def test_to_sexp
5
+ initializer = AssignExprNode.new(NumberNode.new(10))
6
+ decl = VarDeclNode.new('foo', initializer)
7
+ stmt = VarStatementNode.new([decl])
8
+ node = WhileNode.new(TrueNode.new('true'), stmt)
9
+
10
+ assert_sexp([:while,
11
+ [:true],
12
+ [:var, [[:var_decl, :foo, [:assign, [:lit, 10]]]]],
13
+ ], node)
14
+ end
15
+ end
@@ -0,0 +1,8 @@
1
+ require File.dirname(__FILE__) + "/helper"
2
+
3
+ class WithNodeTest < NodeTestCase
4
+ def test_to_sexp
5
+ node = WithNode.new(ResolveNode.new('foo'), ResolveNode.new('bar'))
6
+ assert_sexp([:with, [:resolve, 'foo'], [:resolve, 'bar']], node)
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,390 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rkelly
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Aaron Patterson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-02-23 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hoe
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.9.0
24
+ version:
25
+ description: The RKelly library will parse JavaScript and return a parse tree.
26
+ email: aaronp@rubyforge.org
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - CHANGELOG.txt
33
+ - Manifest.txt
34
+ - README.txt
35
+ files:
36
+ - CHANGELOG.txt
37
+ - Manifest.txt
38
+ - README.txt
39
+ - Rakefile
40
+ - lib/parser.y
41
+ - lib/rkelly.rb
42
+ - lib/rkelly/constants.rb
43
+ - lib/rkelly/generated_parser.rb
44
+ - lib/rkelly/js.rb
45
+ - lib/rkelly/js/array.rb
46
+ - lib/rkelly/js/base.rb
47
+ - lib/rkelly/js/boolean.rb
48
+ - lib/rkelly/js/function.rb
49
+ - lib/rkelly/js/function_prototype.rb
50
+ - lib/rkelly/js/global_object.rb
51
+ - lib/rkelly/js/math.rb
52
+ - lib/rkelly/js/nan.rb
53
+ - lib/rkelly/js/number.rb
54
+ - lib/rkelly/js/object.rb
55
+ - lib/rkelly/js/object_prototype.rb
56
+ - lib/rkelly/js/property.rb
57
+ - lib/rkelly/js/scope.rb
58
+ - lib/rkelly/js/string.rb
59
+ - lib/rkelly/lexeme.rb
60
+ - lib/rkelly/nodes.rb
61
+ - lib/rkelly/nodes/binary_node.rb
62
+ - lib/rkelly/nodes/bracket_accessor_node.rb
63
+ - lib/rkelly/nodes/case_clause_node.rb
64
+ - lib/rkelly/nodes/comma_node.rb
65
+ - lib/rkelly/nodes/conditional_node.rb
66
+ - lib/rkelly/nodes/dot_accessor_node.rb
67
+ - lib/rkelly/nodes/for_in_node.rb
68
+ - lib/rkelly/nodes/for_node.rb
69
+ - lib/rkelly/nodes/function_call_node.rb
70
+ - lib/rkelly/nodes/function_decl_node.rb
71
+ - lib/rkelly/nodes/function_expr_node.rb
72
+ - lib/rkelly/nodes/if_node.rb
73
+ - lib/rkelly/nodes/label_node.rb
74
+ - lib/rkelly/nodes/new_expr_node.rb
75
+ - lib/rkelly/nodes/node.rb
76
+ - lib/rkelly/nodes/not_strict_equal_node.rb
77
+ - lib/rkelly/nodes/op_equal_node.rb
78
+ - lib/rkelly/nodes/postfix_node.rb
79
+ - lib/rkelly/nodes/prefix_node.rb
80
+ - lib/rkelly/nodes/property_node.rb
81
+ - lib/rkelly/nodes/resolve_node.rb
82
+ - lib/rkelly/nodes/strict_equal_node.rb
83
+ - lib/rkelly/nodes/try_node.rb
84
+ - lib/rkelly/nodes/var_decl_node.rb
85
+ - lib/rkelly/parser.rb
86
+ - lib/rkelly/runtime.rb
87
+ - lib/rkelly/runtime/ruby_function.rb
88
+ - lib/rkelly/runtime/scope_chain.rb
89
+ - lib/rkelly/token.rb
90
+ - lib/rkelly/tokenizer.rb
91
+ - lib/rkelly/visitable.rb
92
+ - lib/rkelly/visitors.rb
93
+ - lib/rkelly/visitors/dot_visitor.rb
94
+ - lib/rkelly/visitors/ecma_visitor.rb
95
+ - lib/rkelly/visitors/enumerable_visitor.rb
96
+ - lib/rkelly/visitors/evaluation_visitor.rb
97
+ - lib/rkelly/visitors/function_visitor.rb
98
+ - lib/rkelly/visitors/pointcut_visitor.rb
99
+ - lib/rkelly/visitors/real_sexp_visitor.rb
100
+ - lib/rkelly/visitors/sexp_visitor.rb
101
+ - lib/rkelly/visitors/visitor.rb
102
+ - rkelly.gemspec
103
+ - test/ecma_script_test_case.rb
104
+ - test/execute_test_case.rb
105
+ - test/execution_contexts/test_10_1_3-1.rb
106
+ - test/expressions/test_11_3_1.rb
107
+ - test/expressions/test_11_3_2.rb
108
+ - test/expressions/test_11_4_2.rb
109
+ - test/expressions/test_11_4_3.rb
110
+ - test/expressions/test_11_4_4.rb
111
+ - test/expressions/test_11_4_5.rb
112
+ - test/expressions/test_11_4_6.rb
113
+ - test/expressions/test_11_4_8.rb
114
+ - test/expressions/test_11_4_9.rb
115
+ - test/expressions/test_11_5_1.rb
116
+ - test/expressions/test_11_5_2.rb
117
+ - test/expressions/test_11_5_3.rb
118
+ - test/expressions/test_11_6_1-1.rb
119
+ - test/expressions/test_11_9_1.rb
120
+ - test/function/test_15_3_1_1-1.rb
121
+ - test/global_object/test_15_1_1_1.rb
122
+ - test/global_object/test_15_1_1_2.rb
123
+ - test/global_object/test_15_1_1_3.rb
124
+ - test/helper.rb
125
+ - test/node_test_case.rb
126
+ - test/object/test_15_2_1_1.rb
127
+ - test/object/test_15_2_1_2.rb
128
+ - test/object/test_15_2_2_1.rb
129
+ - test/statements/test_12_5-1.rb
130
+ - test/test_add_node.rb
131
+ - test/test_arguments_node.rb
132
+ - test/test_array_node.rb
133
+ - test/test_assign_expr_node.rb
134
+ - test/test_automatic_semicolon_insertion.rb
135
+ - test/test_bit_and_node.rb
136
+ - test/test_bit_or_node.rb
137
+ - test/test_bit_x_or_node.rb
138
+ - test/test_bitwise_not_node.rb
139
+ - test/test_block_node.rb
140
+ - test/test_bracket_accessor_node.rb
141
+ - test/test_break_node.rb
142
+ - test/test_case_block_node.rb
143
+ - test/test_case_clause_node.rb
144
+ - test/test_comma_node.rb
145
+ - test/test_comments.rb
146
+ - test/test_conditional_node.rb
147
+ - test/test_const_statement_node.rb
148
+ - test/test_continue_node.rb
149
+ - test/test_delete_node.rb
150
+ - test/test_divide_node.rb
151
+ - test/test_do_while_node.rb
152
+ - test/test_dot_accessor_node.rb
153
+ - test/test_ecma_visitor.rb
154
+ - test/test_element_node.rb
155
+ - test/test_empty_statement_node.rb
156
+ - test/test_equal_node.rb
157
+ - test/test_evaluation_visitor.rb
158
+ - test/test_expression_statement_node.rb
159
+ - test/test_false_node.rb
160
+ - test/test_for_in_node.rb
161
+ - test/test_for_node.rb
162
+ - test/test_function_body_node.rb
163
+ - test/test_function_call_node.rb
164
+ - test/test_function_decl_node.rb
165
+ - test/test_function_expr_node.rb
166
+ - test/test_function_visitor.rb
167
+ - test/test_getter_property_node.rb
168
+ - test/test_global_object.rb
169
+ - test/test_greater_node.rb
170
+ - test/test_greater_or_equal_node.rb
171
+ - test/test_if_node.rb
172
+ - test/test_in_node.rb
173
+ - test/test_instance_of_node.rb
174
+ - test/test_label_node.rb
175
+ - test/test_left_shift_node.rb
176
+ - test/test_less_node.rb
177
+ - test/test_less_or_equal_node.rb
178
+ - test/test_line_number.rb
179
+ - test/test_logical_and_node.rb
180
+ - test/test_logical_not_node.rb
181
+ - test/test_logical_or_node.rb
182
+ - test/test_modulus_node.rb
183
+ - test/test_multiply_node.rb
184
+ - test/test_new_expr_node.rb
185
+ - test/test_not_equal_node.rb
186
+ - test/test_not_strict_equal_node.rb
187
+ - test/test_null_node.rb
188
+ - test/test_number_node.rb
189
+ - test/test_object_literal_node.rb
190
+ - test/test_op_and_equal_node.rb
191
+ - test/test_op_divide_equal_node.rb
192
+ - test/test_op_equal_node.rb
193
+ - test/test_op_l_shift_equal_node.rb
194
+ - test/test_op_minus_equal_node.rb
195
+ - test/test_op_mod_equal_node.rb
196
+ - test/test_op_multiply_equal_node.rb
197
+ - test/test_op_or_equal_node.rb
198
+ - test/test_op_plus_equal_node.rb
199
+ - test/test_op_r_shift_equal_node.rb
200
+ - test/test_op_u_r_shift_equal_node.rb
201
+ - test/test_op_x_or_equal_node.rb
202
+ - test/test_parameter_node.rb
203
+ - test/test_parser.rb
204
+ - test/test_pointcut_visitor.rb
205
+ - test/test_postfix_node.rb
206
+ - test/test_prefix_node.rb
207
+ - test/test_property_node.rb
208
+ - test/test_regexp_node.rb
209
+ - test/test_resolve_node.rb
210
+ - test/test_return_node.rb
211
+ - test/test_right_shift_node.rb
212
+ - test/test_rkelly.rb
213
+ - test/test_runtime.rb
214
+ - test/test_scope_chain.rb
215
+ - test/test_setter_property_node.rb
216
+ - test/test_source_elements.rb
217
+ - test/test_strict_equal_node.rb
218
+ - test/test_string_node.rb
219
+ - test/test_subtract_node.rb
220
+ - test/test_switch_node.rb
221
+ - test/test_this_node.rb
222
+ - test/test_throw_node.rb
223
+ - test/test_tokenizer.rb
224
+ - test/test_true_node.rb
225
+ - test/test_try_node.rb
226
+ - test/test_type_of_node.rb
227
+ - test/test_unary_minus_node.rb
228
+ - test/test_unary_plus_node.rb
229
+ - test/test_unsigned_right_shift_node.rb
230
+ - test/test_var_decl_node.rb
231
+ - test/test_var_statement_node.rb
232
+ - test/test_void_node.rb
233
+ - test/test_while_node.rb
234
+ - test/test_with_node.rb
235
+ has_rdoc: true
236
+ homepage: http://rkelly.rubyforge.org/
237
+ post_install_message:
238
+ rdoc_options:
239
+ - --main
240
+ - README.txt
241
+ require_paths:
242
+ - lib
243
+ required_ruby_version: !ruby/object:Gem::Requirement
244
+ requirements:
245
+ - - ">="
246
+ - !ruby/object:Gem::Version
247
+ version: "0"
248
+ version:
249
+ required_rubygems_version: !ruby/object:Gem::Requirement
250
+ requirements:
251
+ - - ">="
252
+ - !ruby/object:Gem::Version
253
+ version: "0"
254
+ version:
255
+ requirements: []
256
+
257
+ rubyforge_project: rkelly
258
+ rubygems_version: 1.3.1
259
+ signing_key:
260
+ specification_version: 2
261
+ summary: RKelly parses JavaScript and returns a parse tree suitable for feeding to Ruby2Ruby.
262
+ test_files:
263
+ - test/execution_contexts/test_10_1_3-1.rb
264
+ - test/expressions/test_11_3_1.rb
265
+ - test/expressions/test_11_3_2.rb
266
+ - test/expressions/test_11_4_2.rb
267
+ - test/expressions/test_11_4_3.rb
268
+ - test/expressions/test_11_4_4.rb
269
+ - test/expressions/test_11_4_5.rb
270
+ - test/expressions/test_11_4_6.rb
271
+ - test/expressions/test_11_4_8.rb
272
+ - test/expressions/test_11_4_9.rb
273
+ - test/expressions/test_11_5_1.rb
274
+ - test/expressions/test_11_5_2.rb
275
+ - test/expressions/test_11_5_3.rb
276
+ - test/expressions/test_11_6_1-1.rb
277
+ - test/expressions/test_11_9_1.rb
278
+ - test/function/test_15_3_1_1-1.rb
279
+ - test/global_object/test_15_1_1_1.rb
280
+ - test/global_object/test_15_1_1_2.rb
281
+ - test/global_object/test_15_1_1_3.rb
282
+ - test/object/test_15_2_1_1.rb
283
+ - test/object/test_15_2_1_2.rb
284
+ - test/object/test_15_2_2_1.rb
285
+ - test/statements/test_12_5-1.rb
286
+ - test/test_add_node.rb
287
+ - test/test_arguments_node.rb
288
+ - test/test_array_node.rb
289
+ - test/test_assign_expr_node.rb
290
+ - test/test_automatic_semicolon_insertion.rb
291
+ - test/test_bit_and_node.rb
292
+ - test/test_bit_or_node.rb
293
+ - test/test_bit_x_or_node.rb
294
+ - test/test_bitwise_not_node.rb
295
+ - test/test_block_node.rb
296
+ - test/test_bracket_accessor_node.rb
297
+ - test/test_break_node.rb
298
+ - test/test_case_block_node.rb
299
+ - test/test_case_clause_node.rb
300
+ - test/test_comma_node.rb
301
+ - test/test_comments.rb
302
+ - test/test_conditional_node.rb
303
+ - test/test_const_statement_node.rb
304
+ - test/test_continue_node.rb
305
+ - test/test_delete_node.rb
306
+ - test/test_divide_node.rb
307
+ - test/test_do_while_node.rb
308
+ - test/test_dot_accessor_node.rb
309
+ - test/test_ecma_visitor.rb
310
+ - test/test_element_node.rb
311
+ - test/test_empty_statement_node.rb
312
+ - test/test_equal_node.rb
313
+ - test/test_evaluation_visitor.rb
314
+ - test/test_expression_statement_node.rb
315
+ - test/test_false_node.rb
316
+ - test/test_for_in_node.rb
317
+ - test/test_for_node.rb
318
+ - test/test_function_body_node.rb
319
+ - test/test_function_call_node.rb
320
+ - test/test_function_decl_node.rb
321
+ - test/test_function_expr_node.rb
322
+ - test/test_function_visitor.rb
323
+ - test/test_getter_property_node.rb
324
+ - test/test_global_object.rb
325
+ - test/test_greater_node.rb
326
+ - test/test_greater_or_equal_node.rb
327
+ - test/test_if_node.rb
328
+ - test/test_in_node.rb
329
+ - test/test_instance_of_node.rb
330
+ - test/test_label_node.rb
331
+ - test/test_left_shift_node.rb
332
+ - test/test_less_node.rb
333
+ - test/test_less_or_equal_node.rb
334
+ - test/test_line_number.rb
335
+ - test/test_logical_and_node.rb
336
+ - test/test_logical_not_node.rb
337
+ - test/test_logical_or_node.rb
338
+ - test/test_modulus_node.rb
339
+ - test/test_multiply_node.rb
340
+ - test/test_new_expr_node.rb
341
+ - test/test_not_equal_node.rb
342
+ - test/test_not_strict_equal_node.rb
343
+ - test/test_null_node.rb
344
+ - test/test_number_node.rb
345
+ - test/test_object_literal_node.rb
346
+ - test/test_op_and_equal_node.rb
347
+ - test/test_op_divide_equal_node.rb
348
+ - test/test_op_equal_node.rb
349
+ - test/test_op_l_shift_equal_node.rb
350
+ - test/test_op_minus_equal_node.rb
351
+ - test/test_op_mod_equal_node.rb
352
+ - test/test_op_multiply_equal_node.rb
353
+ - test/test_op_or_equal_node.rb
354
+ - test/test_op_plus_equal_node.rb
355
+ - test/test_op_r_shift_equal_node.rb
356
+ - test/test_op_u_r_shift_equal_node.rb
357
+ - test/test_op_x_or_equal_node.rb
358
+ - test/test_parameter_node.rb
359
+ - test/test_parser.rb
360
+ - test/test_pointcut_visitor.rb
361
+ - test/test_postfix_node.rb
362
+ - test/test_prefix_node.rb
363
+ - test/test_property_node.rb
364
+ - test/test_regexp_node.rb
365
+ - test/test_resolve_node.rb
366
+ - test/test_return_node.rb
367
+ - test/test_right_shift_node.rb
368
+ - test/test_rkelly.rb
369
+ - test/test_runtime.rb
370
+ - test/test_scope_chain.rb
371
+ - test/test_setter_property_node.rb
372
+ - test/test_source_elements.rb
373
+ - test/test_strict_equal_node.rb
374
+ - test/test_string_node.rb
375
+ - test/test_subtract_node.rb
376
+ - test/test_switch_node.rb
377
+ - test/test_this_node.rb
378
+ - test/test_throw_node.rb
379
+ - test/test_tokenizer.rb
380
+ - test/test_true_node.rb
381
+ - test/test_try_node.rb
382
+ - test/test_type_of_node.rb
383
+ - test/test_unary_minus_node.rb
384
+ - test/test_unary_plus_node.rb
385
+ - test/test_unsigned_right_shift_node.rb
386
+ - test/test_var_decl_node.rb
387
+ - test/test_var_statement_node.rb
388
+ - test/test_void_node.rb
389
+ - test/test_while_node.rb
390
+ - test/test_with_node.rb