json5 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +60 -0
  7. data/Rakefile +1 -0
  8. data/json5.gemspec +25 -0
  9. data/lib/json5.rb +13 -0
  10. data/lib/json5/parser.rb +461 -0
  11. data/lib/json5/stringifier.rb +242 -0
  12. data/lib/json5/version.rb +3 -0
  13. data/spec/json5/parse_spec.rb +71 -0
  14. data/spec/parse-cases/arrays/empty-array.json +1 -0
  15. data/spec/parse-cases/arrays/leading-comma-array.js +3 -0
  16. data/spec/parse-cases/arrays/lone-trailing-comma-array.js +3 -0
  17. data/spec/parse-cases/arrays/no-comma-array.txt +4 -0
  18. data/spec/parse-cases/arrays/regular-array.json +5 -0
  19. data/spec/parse-cases/arrays/trailing-comma-array.json5 +3 -0
  20. data/spec/parse-cases/comments/block-comment-following-array-element.json5 +6 -0
  21. data/spec/parse-cases/comments/block-comment-following-top-level-value.json5 +5 -0
  22. data/spec/parse-cases/comments/block-comment-in-string.json +1 -0
  23. data/spec/parse-cases/comments/block-comment-preceding-top-level-value.json5 +5 -0
  24. data/spec/parse-cases/comments/block-comment-with-asterisks.json5 +7 -0
  25. data/spec/parse-cases/comments/inline-comment-following-array-element.json5 +3 -0
  26. data/spec/parse-cases/comments/inline-comment-following-top-level-value.json5 +1 -0
  27. data/spec/parse-cases/comments/inline-comment-in-string.json +1 -0
  28. data/spec/parse-cases/comments/inline-comment-preceding-top-level-value.json5 +2 -0
  29. data/spec/parse-cases/comments/top-level-block-comment.txt +4 -0
  30. data/spec/parse-cases/comments/top-level-inline-comment.txt +1 -0
  31. data/spec/parse-cases/comments/unterminated-block-comment.txt +5 -0
  32. data/spec/parse-cases/misc/empty.txt +0 -0
  33. data/spec/parse-cases/misc/npm-package.json +106 -0
  34. data/spec/parse-cases/misc/npm-package.json5 +106 -0
  35. data/spec/parse-cases/misc/readme-example.json5 +25 -0
  36. data/spec/parse-cases/numbers/binary-coffeescript.txt +1 -0
  37. data/spec/parse-cases/numbers/float-leading-decimal-point.json5 +1 -0
  38. data/spec/parse-cases/numbers/float-leading-zero.json +1 -0
  39. data/spec/parse-cases/numbers/float-trailing-decimal-point-with-integer-exponent.json5.todo +1 -0
  40. data/spec/parse-cases/numbers/float-trailing-decimal-point.json5 +1 -0
  41. data/spec/parse-cases/numbers/float-with-integer-exponent.json +1 -0
  42. data/spec/parse-cases/numbers/float.json +1 -0
  43. data/spec/parse-cases/numbers/hexadecimal-empty.txt +1 -0
  44. data/spec/parse-cases/numbers/hexadecimal-lowercase-letter.json5 +1 -0
  45. data/spec/parse-cases/numbers/hexadecimal-uppercase-x.json5 +1 -0
  46. data/spec/parse-cases/numbers/hexadecimal-with-integer-exponent.json5 +1 -0
  47. data/spec/parse-cases/numbers/hexadecimal.json5 +1 -0
  48. data/spec/parse-cases/numbers/infinity.json5 +1 -0
  49. data/spec/parse-cases/numbers/integer-with-float-exponent.txt +1 -0
  50. data/spec/parse-cases/numbers/integer-with-hexadecimal-exponent.txt +1 -0
  51. data/spec/parse-cases/numbers/integer-with-integer-exponent.json +1 -0
  52. data/spec/parse-cases/numbers/integer-with-negative-float-exponent.txt +1 -0
  53. data/spec/parse-cases/numbers/integer-with-negative-hexadecimal-exponent.txt +1 -0
  54. data/spec/parse-cases/numbers/integer-with-negative-integer-exponent.json +1 -0
  55. data/spec/parse-cases/numbers/integer-with-negative-zero-integer-exponent.json +1 -0
  56. data/spec/parse-cases/numbers/integer-with-positive-float-exponent.txt +1 -0
  57. data/spec/parse-cases/numbers/integer-with-positive-hexadecimal-exponent.txt +1 -0
  58. data/spec/parse-cases/numbers/integer-with-positive-integer-exponent.json +1 -0
  59. data/spec/parse-cases/numbers/integer-with-positive-zero-integer-exponent.json +1 -0
  60. data/spec/parse-cases/numbers/integer-with-zero-integer-exponent.json +1 -0
  61. data/spec/parse-cases/numbers/integer.json +1 -0
  62. data/spec/parse-cases/numbers/lone-decimal-point.txt +1 -0
  63. data/spec/parse-cases/numbers/nan.json5 +1 -0
  64. data/spec/parse-cases/numbers/negative-binary-coffeescript.txt +1 -0
  65. data/spec/parse-cases/numbers/negative-float-leading-decimal-point.json5 +1 -0
  66. data/spec/parse-cases/numbers/negative-float-leading-zero.json +1 -0
  67. data/spec/parse-cases/numbers/negative-float-trailing-decimal-point.json5 +1 -0
  68. data/spec/parse-cases/numbers/negative-float.json +1 -0
  69. data/spec/parse-cases/numbers/negative-hexadecimal.js +1 -0
  70. data/spec/parse-cases/numbers/negative-infinity.json5 +1 -0
  71. data/spec/parse-cases/numbers/negative-integer.json +1 -0
  72. data/spec/parse-cases/numbers/negative-noctal.js +1 -0
  73. data/spec/parse-cases/numbers/negative-octal-coffeescript.txt +1 -0
  74. data/spec/parse-cases/numbers/negative-octal.txt +1 -0
  75. data/spec/parse-cases/numbers/negative-zero-binary-coffeescript.txt +1 -0
  76. data/spec/parse-cases/numbers/negative-zero-float-leading-decimal-point.json5 +1 -0
  77. data/spec/parse-cases/numbers/negative-zero-float-trailing-decimal-point.json5 +1 -0
  78. data/spec/parse-cases/numbers/negative-zero-float.json +1 -0
  79. data/spec/parse-cases/numbers/negative-zero-hexadecimal.js +1 -0
  80. data/spec/parse-cases/numbers/negative-zero-integer.json +1 -0
  81. data/spec/parse-cases/numbers/negative-zero-octal-coffeescript.txt +1 -0
  82. data/spec/parse-cases/numbers/negative-zero-octal.txt +1 -0
  83. data/spec/parse-cases/numbers/noctal-with-leading-octal-digit.js +1 -0
  84. data/spec/parse-cases/numbers/noctal.js +1 -0
  85. data/spec/parse-cases/numbers/octal-coffeescript.txt +1 -0
  86. data/spec/parse-cases/numbers/octal.txt +1 -0
  87. data/spec/parse-cases/numbers/positive-binary-coffeescript.txt +1 -0
  88. data/spec/parse-cases/numbers/positive-float-leading-decimal-point.json5 +1 -0
  89. data/spec/parse-cases/numbers/positive-float-leading-zero.json5 +1 -0
  90. data/spec/parse-cases/numbers/positive-float-trailing-decimal-point.json5 +1 -0
  91. data/spec/parse-cases/numbers/positive-float.json5 +1 -0
  92. data/spec/parse-cases/numbers/positive-hexadecimal.js +1 -0
  93. data/spec/parse-cases/numbers/positive-infinity.json5 +1 -0
  94. data/spec/parse-cases/numbers/positive-integer.json5 +1 -0
  95. data/spec/parse-cases/numbers/positive-noctal.js +1 -0
  96. data/spec/parse-cases/numbers/positive-octal-coffeescript.txt +1 -0
  97. data/spec/parse-cases/numbers/positive-octal.txt +1 -0
  98. data/spec/parse-cases/numbers/positive-zero-binary-coffeescript.txt +1 -0
  99. data/spec/parse-cases/numbers/positive-zero-float-leading-decimal-point.json5 +1 -0
  100. data/spec/parse-cases/numbers/positive-zero-float-trailing-decimal-point.json5 +1 -0
  101. data/spec/parse-cases/numbers/positive-zero-float.json5 +1 -0
  102. data/spec/parse-cases/numbers/positive-zero-hexadecimal.js +1 -0
  103. data/spec/parse-cases/numbers/positive-zero-integer.json5 +1 -0
  104. data/spec/parse-cases/numbers/positive-zero-octal-coffeescript.txt +1 -0
  105. data/spec/parse-cases/numbers/positive-zero-octal.txt +1 -0
  106. data/spec/parse-cases/numbers/zero-binary-coffeescript.txt +1 -0
  107. data/spec/parse-cases/numbers/zero-float-leading-decimal-point.json5 +1 -0
  108. data/spec/parse-cases/numbers/zero-float-trailing-decimal-point.json5 +1 -0
  109. data/spec/parse-cases/numbers/zero-float.json +1 -0
  110. data/spec/parse-cases/numbers/zero-hexadecimal.json5 +1 -0
  111. data/spec/parse-cases/numbers/zero-integer-with-integer-exponent.json +1 -0
  112. data/spec/parse-cases/numbers/zero-integer.json +1 -0
  113. data/spec/parse-cases/numbers/zero-octal-coffeescript.txt +1 -0
  114. data/spec/parse-cases/numbers/zero-octal.txt +1 -0
  115. data/spec/parse-cases/objects/empty-object.json +1 -0
  116. data/spec/parse-cases/objects/illegal-unquoted-key-number.txt +3 -0
  117. data/spec/parse-cases/objects/illegal-unquoted-key-symbol.txt +3 -0
  118. data/spec/parse-cases/objects/leading-comma-object.txt +3 -0
  119. data/spec/parse-cases/objects/lone-trailing-comma-object.txt +3 -0
  120. data/spec/parse-cases/objects/no-comma-object.txt +4 -0
  121. data/spec/parse-cases/objects/reserved-unquoted-key.json5 +3 -0
  122. data/spec/parse-cases/objects/single-quoted-key.json5 +3 -0
  123. data/spec/parse-cases/objects/trailing-comma-object.json5 +3 -0
  124. data/spec/parse-cases/objects/unquoted-keys.json5 +8 -0
  125. data/spec/parse-cases/strings/escaped-single-quoted-string.json5 +1 -0
  126. data/spec/parse-cases/strings/multi-line-string.json5 +2 -0
  127. data/spec/parse-cases/strings/single-quoted-string.json5 +1 -0
  128. data/spec/parse-cases/strings/unescaped-multi-line-string.txt +2 -0
  129. data/spec/parse-cases/todo/unicode-escaped-unquoted-key.json5.todo +3 -0
  130. data/spec/parse-cases/todo/unicode-unquoted-key.json5.todo +3 -0
  131. data/spec/spec_helper.rb +15 -0
  132. metadata +363 -0
@@ -0,0 +1,15 @@
1
+ require 'v8'
2
+ require 'oj'
3
+ require 'json5'
4
+ require 'rspec/autorun'
5
+
6
+ RSpec.configure do |config|
7
+ config.color = true
8
+ config.filter_run focus: true
9
+ config.filter_run_excluding skip: true
10
+ config.mock_with :rspec
11
+ config.order = 'random'
12
+ config.treat_symbols_as_metadata_keys_with_true_values = true
13
+ config.run_all_when_everything_filtered = true
14
+ config.profile_examples = true
15
+ end
metadata ADDED
@@ -0,0 +1,363 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: json5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Bartosz Kopinski
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: oj
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: therubyracer
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description:
84
+ email:
85
+ - bartosz.kopinski@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".ruby-version"
92
+ - Gemfile
93
+ - LICENSE.txt
94
+ - README.md
95
+ - Rakefile
96
+ - json5.gemspec
97
+ - lib/json5.rb
98
+ - lib/json5/parser.rb
99
+ - lib/json5/stringifier.rb
100
+ - lib/json5/version.rb
101
+ - spec/json5/parse_spec.rb
102
+ - spec/parse-cases/arrays/empty-array.json
103
+ - spec/parse-cases/arrays/leading-comma-array.js
104
+ - spec/parse-cases/arrays/lone-trailing-comma-array.js
105
+ - spec/parse-cases/arrays/no-comma-array.txt
106
+ - spec/parse-cases/arrays/regular-array.json
107
+ - spec/parse-cases/arrays/trailing-comma-array.json5
108
+ - spec/parse-cases/comments/block-comment-following-array-element.json5
109
+ - spec/parse-cases/comments/block-comment-following-top-level-value.json5
110
+ - spec/parse-cases/comments/block-comment-in-string.json
111
+ - spec/parse-cases/comments/block-comment-preceding-top-level-value.json5
112
+ - spec/parse-cases/comments/block-comment-with-asterisks.json5
113
+ - spec/parse-cases/comments/inline-comment-following-array-element.json5
114
+ - spec/parse-cases/comments/inline-comment-following-top-level-value.json5
115
+ - spec/parse-cases/comments/inline-comment-in-string.json
116
+ - spec/parse-cases/comments/inline-comment-preceding-top-level-value.json5
117
+ - spec/parse-cases/comments/top-level-block-comment.txt
118
+ - spec/parse-cases/comments/top-level-inline-comment.txt
119
+ - spec/parse-cases/comments/unterminated-block-comment.txt
120
+ - spec/parse-cases/misc/empty.txt
121
+ - spec/parse-cases/misc/npm-package.json
122
+ - spec/parse-cases/misc/npm-package.json5
123
+ - spec/parse-cases/misc/readme-example.json5
124
+ - spec/parse-cases/numbers/binary-coffeescript.txt
125
+ - spec/parse-cases/numbers/float-leading-decimal-point.json5
126
+ - spec/parse-cases/numbers/float-leading-zero.json
127
+ - spec/parse-cases/numbers/float-trailing-decimal-point-with-integer-exponent.json5.todo
128
+ - spec/parse-cases/numbers/float-trailing-decimal-point.json5
129
+ - spec/parse-cases/numbers/float-with-integer-exponent.json
130
+ - spec/parse-cases/numbers/float.json
131
+ - spec/parse-cases/numbers/hexadecimal-empty.txt
132
+ - spec/parse-cases/numbers/hexadecimal-lowercase-letter.json5
133
+ - spec/parse-cases/numbers/hexadecimal-uppercase-x.json5
134
+ - spec/parse-cases/numbers/hexadecimal-with-integer-exponent.json5
135
+ - spec/parse-cases/numbers/hexadecimal.json5
136
+ - spec/parse-cases/numbers/infinity.json5
137
+ - spec/parse-cases/numbers/integer-with-float-exponent.txt
138
+ - spec/parse-cases/numbers/integer-with-hexadecimal-exponent.txt
139
+ - spec/parse-cases/numbers/integer-with-integer-exponent.json
140
+ - spec/parse-cases/numbers/integer-with-negative-float-exponent.txt
141
+ - spec/parse-cases/numbers/integer-with-negative-hexadecimal-exponent.txt
142
+ - spec/parse-cases/numbers/integer-with-negative-integer-exponent.json
143
+ - spec/parse-cases/numbers/integer-with-negative-zero-integer-exponent.json
144
+ - spec/parse-cases/numbers/integer-with-positive-float-exponent.txt
145
+ - spec/parse-cases/numbers/integer-with-positive-hexadecimal-exponent.txt
146
+ - spec/parse-cases/numbers/integer-with-positive-integer-exponent.json
147
+ - spec/parse-cases/numbers/integer-with-positive-zero-integer-exponent.json
148
+ - spec/parse-cases/numbers/integer-with-zero-integer-exponent.json
149
+ - spec/parse-cases/numbers/integer.json
150
+ - spec/parse-cases/numbers/lone-decimal-point.txt
151
+ - spec/parse-cases/numbers/nan.json5
152
+ - spec/parse-cases/numbers/negative-binary-coffeescript.txt
153
+ - spec/parse-cases/numbers/negative-float-leading-decimal-point.json5
154
+ - spec/parse-cases/numbers/negative-float-leading-zero.json
155
+ - spec/parse-cases/numbers/negative-float-trailing-decimal-point.json5
156
+ - spec/parse-cases/numbers/negative-float.json
157
+ - spec/parse-cases/numbers/negative-hexadecimal.js
158
+ - spec/parse-cases/numbers/negative-infinity.json5
159
+ - spec/parse-cases/numbers/negative-integer.json
160
+ - spec/parse-cases/numbers/negative-noctal.js
161
+ - spec/parse-cases/numbers/negative-octal-coffeescript.txt
162
+ - spec/parse-cases/numbers/negative-octal.txt
163
+ - spec/parse-cases/numbers/negative-zero-binary-coffeescript.txt
164
+ - spec/parse-cases/numbers/negative-zero-float-leading-decimal-point.json5
165
+ - spec/parse-cases/numbers/negative-zero-float-trailing-decimal-point.json5
166
+ - spec/parse-cases/numbers/negative-zero-float.json
167
+ - spec/parse-cases/numbers/negative-zero-hexadecimal.js
168
+ - spec/parse-cases/numbers/negative-zero-integer.json
169
+ - spec/parse-cases/numbers/negative-zero-octal-coffeescript.txt
170
+ - spec/parse-cases/numbers/negative-zero-octal.txt
171
+ - spec/parse-cases/numbers/noctal-with-leading-octal-digit.js
172
+ - spec/parse-cases/numbers/noctal.js
173
+ - spec/parse-cases/numbers/octal-coffeescript.txt
174
+ - spec/parse-cases/numbers/octal.txt
175
+ - spec/parse-cases/numbers/positive-binary-coffeescript.txt
176
+ - spec/parse-cases/numbers/positive-float-leading-decimal-point.json5
177
+ - spec/parse-cases/numbers/positive-float-leading-zero.json5
178
+ - spec/parse-cases/numbers/positive-float-trailing-decimal-point.json5
179
+ - spec/parse-cases/numbers/positive-float.json5
180
+ - spec/parse-cases/numbers/positive-hexadecimal.js
181
+ - spec/parse-cases/numbers/positive-infinity.json5
182
+ - spec/parse-cases/numbers/positive-integer.json5
183
+ - spec/parse-cases/numbers/positive-noctal.js
184
+ - spec/parse-cases/numbers/positive-octal-coffeescript.txt
185
+ - spec/parse-cases/numbers/positive-octal.txt
186
+ - spec/parse-cases/numbers/positive-zero-binary-coffeescript.txt
187
+ - spec/parse-cases/numbers/positive-zero-float-leading-decimal-point.json5
188
+ - spec/parse-cases/numbers/positive-zero-float-trailing-decimal-point.json5
189
+ - spec/parse-cases/numbers/positive-zero-float.json5
190
+ - spec/parse-cases/numbers/positive-zero-hexadecimal.js
191
+ - spec/parse-cases/numbers/positive-zero-integer.json5
192
+ - spec/parse-cases/numbers/positive-zero-octal-coffeescript.txt
193
+ - spec/parse-cases/numbers/positive-zero-octal.txt
194
+ - spec/parse-cases/numbers/zero-binary-coffeescript.txt
195
+ - spec/parse-cases/numbers/zero-float-leading-decimal-point.json5
196
+ - spec/parse-cases/numbers/zero-float-trailing-decimal-point.json5
197
+ - spec/parse-cases/numbers/zero-float.json
198
+ - spec/parse-cases/numbers/zero-hexadecimal.json5
199
+ - spec/parse-cases/numbers/zero-integer-with-integer-exponent.json
200
+ - spec/parse-cases/numbers/zero-integer.json
201
+ - spec/parse-cases/numbers/zero-octal-coffeescript.txt
202
+ - spec/parse-cases/numbers/zero-octal.txt
203
+ - spec/parse-cases/objects/empty-object.json
204
+ - spec/parse-cases/objects/illegal-unquoted-key-number.txt
205
+ - spec/parse-cases/objects/illegal-unquoted-key-symbol.txt
206
+ - spec/parse-cases/objects/leading-comma-object.txt
207
+ - spec/parse-cases/objects/lone-trailing-comma-object.txt
208
+ - spec/parse-cases/objects/no-comma-object.txt
209
+ - spec/parse-cases/objects/reserved-unquoted-key.json5
210
+ - spec/parse-cases/objects/single-quoted-key.json5
211
+ - spec/parse-cases/objects/trailing-comma-object.json5
212
+ - spec/parse-cases/objects/unquoted-keys.json5
213
+ - spec/parse-cases/strings/escaped-single-quoted-string.json5
214
+ - spec/parse-cases/strings/multi-line-string.json5
215
+ - spec/parse-cases/strings/single-quoted-string.json5
216
+ - spec/parse-cases/strings/unescaped-multi-line-string.txt
217
+ - spec/parse-cases/todo/unicode-escaped-unquoted-key.json5.todo
218
+ - spec/parse-cases/todo/unicode-unquoted-key.json5.todo
219
+ - spec/spec_helper.rb
220
+ homepage: http://json5.org/
221
+ licenses:
222
+ - MIT
223
+ metadata: {}
224
+ post_install_message:
225
+ rdoc_options: []
226
+ require_paths:
227
+ - lib
228
+ required_ruby_version: !ruby/object:Gem::Requirement
229
+ requirements:
230
+ - - ">="
231
+ - !ruby/object:Gem::Version
232
+ version: '0'
233
+ required_rubygems_version: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ requirements: []
239
+ rubyforge_project:
240
+ rubygems_version: 2.2.2
241
+ signing_key:
242
+ specification_version: 4
243
+ summary: JSON5 parser in Ruby
244
+ test_files:
245
+ - spec/json5/parse_spec.rb
246
+ - spec/parse-cases/arrays/empty-array.json
247
+ - spec/parse-cases/arrays/leading-comma-array.js
248
+ - spec/parse-cases/arrays/lone-trailing-comma-array.js
249
+ - spec/parse-cases/arrays/no-comma-array.txt
250
+ - spec/parse-cases/arrays/regular-array.json
251
+ - spec/parse-cases/arrays/trailing-comma-array.json5
252
+ - spec/parse-cases/comments/block-comment-following-array-element.json5
253
+ - spec/parse-cases/comments/block-comment-following-top-level-value.json5
254
+ - spec/parse-cases/comments/block-comment-in-string.json
255
+ - spec/parse-cases/comments/block-comment-preceding-top-level-value.json5
256
+ - spec/parse-cases/comments/block-comment-with-asterisks.json5
257
+ - spec/parse-cases/comments/inline-comment-following-array-element.json5
258
+ - spec/parse-cases/comments/inline-comment-following-top-level-value.json5
259
+ - spec/parse-cases/comments/inline-comment-in-string.json
260
+ - spec/parse-cases/comments/inline-comment-preceding-top-level-value.json5
261
+ - spec/parse-cases/comments/top-level-block-comment.txt
262
+ - spec/parse-cases/comments/top-level-inline-comment.txt
263
+ - spec/parse-cases/comments/unterminated-block-comment.txt
264
+ - spec/parse-cases/misc/empty.txt
265
+ - spec/parse-cases/misc/npm-package.json
266
+ - spec/parse-cases/misc/npm-package.json5
267
+ - spec/parse-cases/misc/readme-example.json5
268
+ - spec/parse-cases/numbers/binary-coffeescript.txt
269
+ - spec/parse-cases/numbers/float-leading-decimal-point.json5
270
+ - spec/parse-cases/numbers/float-leading-zero.json
271
+ - spec/parse-cases/numbers/float-trailing-decimal-point-with-integer-exponent.json5.todo
272
+ - spec/parse-cases/numbers/float-trailing-decimal-point.json5
273
+ - spec/parse-cases/numbers/float-with-integer-exponent.json
274
+ - spec/parse-cases/numbers/float.json
275
+ - spec/parse-cases/numbers/hexadecimal-empty.txt
276
+ - spec/parse-cases/numbers/hexadecimal-lowercase-letter.json5
277
+ - spec/parse-cases/numbers/hexadecimal-uppercase-x.json5
278
+ - spec/parse-cases/numbers/hexadecimal-with-integer-exponent.json5
279
+ - spec/parse-cases/numbers/hexadecimal.json5
280
+ - spec/parse-cases/numbers/infinity.json5
281
+ - spec/parse-cases/numbers/integer-with-float-exponent.txt
282
+ - spec/parse-cases/numbers/integer-with-hexadecimal-exponent.txt
283
+ - spec/parse-cases/numbers/integer-with-integer-exponent.json
284
+ - spec/parse-cases/numbers/integer-with-negative-float-exponent.txt
285
+ - spec/parse-cases/numbers/integer-with-negative-hexadecimal-exponent.txt
286
+ - spec/parse-cases/numbers/integer-with-negative-integer-exponent.json
287
+ - spec/parse-cases/numbers/integer-with-negative-zero-integer-exponent.json
288
+ - spec/parse-cases/numbers/integer-with-positive-float-exponent.txt
289
+ - spec/parse-cases/numbers/integer-with-positive-hexadecimal-exponent.txt
290
+ - spec/parse-cases/numbers/integer-with-positive-integer-exponent.json
291
+ - spec/parse-cases/numbers/integer-with-positive-zero-integer-exponent.json
292
+ - spec/parse-cases/numbers/integer-with-zero-integer-exponent.json
293
+ - spec/parse-cases/numbers/integer.json
294
+ - spec/parse-cases/numbers/lone-decimal-point.txt
295
+ - spec/parse-cases/numbers/nan.json5
296
+ - spec/parse-cases/numbers/negative-binary-coffeescript.txt
297
+ - spec/parse-cases/numbers/negative-float-leading-decimal-point.json5
298
+ - spec/parse-cases/numbers/negative-float-leading-zero.json
299
+ - spec/parse-cases/numbers/negative-float-trailing-decimal-point.json5
300
+ - spec/parse-cases/numbers/negative-float.json
301
+ - spec/parse-cases/numbers/negative-hexadecimal.js
302
+ - spec/parse-cases/numbers/negative-infinity.json5
303
+ - spec/parse-cases/numbers/negative-integer.json
304
+ - spec/parse-cases/numbers/negative-noctal.js
305
+ - spec/parse-cases/numbers/negative-octal-coffeescript.txt
306
+ - spec/parse-cases/numbers/negative-octal.txt
307
+ - spec/parse-cases/numbers/negative-zero-binary-coffeescript.txt
308
+ - spec/parse-cases/numbers/negative-zero-float-leading-decimal-point.json5
309
+ - spec/parse-cases/numbers/negative-zero-float-trailing-decimal-point.json5
310
+ - spec/parse-cases/numbers/negative-zero-float.json
311
+ - spec/parse-cases/numbers/negative-zero-hexadecimal.js
312
+ - spec/parse-cases/numbers/negative-zero-integer.json
313
+ - spec/parse-cases/numbers/negative-zero-octal-coffeescript.txt
314
+ - spec/parse-cases/numbers/negative-zero-octal.txt
315
+ - spec/parse-cases/numbers/noctal-with-leading-octal-digit.js
316
+ - spec/parse-cases/numbers/noctal.js
317
+ - spec/parse-cases/numbers/octal-coffeescript.txt
318
+ - spec/parse-cases/numbers/octal.txt
319
+ - spec/parse-cases/numbers/positive-binary-coffeescript.txt
320
+ - spec/parse-cases/numbers/positive-float-leading-decimal-point.json5
321
+ - spec/parse-cases/numbers/positive-float-leading-zero.json5
322
+ - spec/parse-cases/numbers/positive-float-trailing-decimal-point.json5
323
+ - spec/parse-cases/numbers/positive-float.json5
324
+ - spec/parse-cases/numbers/positive-hexadecimal.js
325
+ - spec/parse-cases/numbers/positive-infinity.json5
326
+ - spec/parse-cases/numbers/positive-integer.json5
327
+ - spec/parse-cases/numbers/positive-noctal.js
328
+ - spec/parse-cases/numbers/positive-octal-coffeescript.txt
329
+ - spec/parse-cases/numbers/positive-octal.txt
330
+ - spec/parse-cases/numbers/positive-zero-binary-coffeescript.txt
331
+ - spec/parse-cases/numbers/positive-zero-float-leading-decimal-point.json5
332
+ - spec/parse-cases/numbers/positive-zero-float-trailing-decimal-point.json5
333
+ - spec/parse-cases/numbers/positive-zero-float.json5
334
+ - spec/parse-cases/numbers/positive-zero-hexadecimal.js
335
+ - spec/parse-cases/numbers/positive-zero-integer.json5
336
+ - spec/parse-cases/numbers/positive-zero-octal-coffeescript.txt
337
+ - spec/parse-cases/numbers/positive-zero-octal.txt
338
+ - spec/parse-cases/numbers/zero-binary-coffeescript.txt
339
+ - spec/parse-cases/numbers/zero-float-leading-decimal-point.json5
340
+ - spec/parse-cases/numbers/zero-float-trailing-decimal-point.json5
341
+ - spec/parse-cases/numbers/zero-float.json
342
+ - spec/parse-cases/numbers/zero-hexadecimal.json5
343
+ - spec/parse-cases/numbers/zero-integer-with-integer-exponent.json
344
+ - spec/parse-cases/numbers/zero-integer.json
345
+ - spec/parse-cases/numbers/zero-octal-coffeescript.txt
346
+ - spec/parse-cases/numbers/zero-octal.txt
347
+ - spec/parse-cases/objects/empty-object.json
348
+ - spec/parse-cases/objects/illegal-unquoted-key-number.txt
349
+ - spec/parse-cases/objects/illegal-unquoted-key-symbol.txt
350
+ - spec/parse-cases/objects/leading-comma-object.txt
351
+ - spec/parse-cases/objects/lone-trailing-comma-object.txt
352
+ - spec/parse-cases/objects/no-comma-object.txt
353
+ - spec/parse-cases/objects/reserved-unquoted-key.json5
354
+ - spec/parse-cases/objects/single-quoted-key.json5
355
+ - spec/parse-cases/objects/trailing-comma-object.json5
356
+ - spec/parse-cases/objects/unquoted-keys.json5
357
+ - spec/parse-cases/strings/escaped-single-quoted-string.json5
358
+ - spec/parse-cases/strings/multi-line-string.json5
359
+ - spec/parse-cases/strings/single-quoted-string.json5
360
+ - spec/parse-cases/strings/unescaped-multi-line-string.txt
361
+ - spec/parse-cases/todo/unicode-escaped-unquoted-key.json5.todo
362
+ - spec/parse-cases/todo/unicode-unquoted-key.json5.todo
363
+ - spec/spec_helper.rb