rubinius-ast 3.12 → 3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rubinius/code/ast/definitions.rb +0 -12
- data/lib/rubinius/code/ast/literals.rb +31 -0
- data/lib/rubinius/code/ast/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2af6a3703dc8665c369955fb1b50bde34a25362
|
4
|
+
data.tar.gz: cda970e9f8c7713fd5f338a257d8a320fd0f92b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76b505e2275d84631044bfa071012b3063f9c8d11f86b95df90a4ae5e0cea17dca09e08f00264579768fd9b152df1b38b82a2b21563c96f63aac9a8d25786106
|
7
|
+
data.tar.gz: ae77909f0babcae4d315c6ebe3a50dc691fdd85e78ff3ebffd498f212953f7636b4d7f812547c9b7b36b1283d9fbabe24d53818773df030083bf1b2467a480a7
|
@@ -212,12 +212,6 @@ module CodeTools
|
|
212
212
|
end
|
213
213
|
end
|
214
214
|
|
215
|
-
class DefineFunctionMulti < DefineFunction
|
216
|
-
def sexp_name
|
217
|
-
:funm
|
218
|
-
end
|
219
|
-
end
|
220
|
-
|
221
215
|
class Define < ClosedScope
|
222
216
|
attr_accessor :name, :arguments
|
223
217
|
|
@@ -271,9 +265,6 @@ module CodeTools
|
|
271
265
|
end
|
272
266
|
end
|
273
267
|
|
274
|
-
class DefineMulti < Define
|
275
|
-
end
|
276
|
-
|
277
268
|
class DefineSingleton < Node
|
278
269
|
attr_accessor :receiver, :body
|
279
270
|
|
@@ -295,9 +286,6 @@ module CodeTools
|
|
295
286
|
end
|
296
287
|
end
|
297
288
|
|
298
|
-
class DefineSingletonMulti < DefineSingleton
|
299
|
-
end
|
300
|
-
|
301
289
|
class DefineSingletonScope < Define
|
302
290
|
def initialize(line, name, block)
|
303
291
|
super line, name, block
|
@@ -350,6 +350,37 @@ module CodeTools
|
|
350
350
|
end
|
351
351
|
end
|
352
352
|
|
353
|
+
class PEGLiteral < Node
|
354
|
+
attr_accessor :source
|
355
|
+
|
356
|
+
def initialize(line, str)
|
357
|
+
@line = line
|
358
|
+
@source = str
|
359
|
+
end
|
360
|
+
|
361
|
+
def bytecode(g)
|
362
|
+
pos(g)
|
363
|
+
build = g.new_label
|
364
|
+
done = g.new_label
|
365
|
+
|
366
|
+
g.push_nil
|
367
|
+
|
368
|
+
build.set!
|
369
|
+
g.push_memo nil
|
370
|
+
g.dup
|
371
|
+
g.goto_if_not_nil done
|
372
|
+
|
373
|
+
g.pop
|
374
|
+
g.push_rubinius
|
375
|
+
g.find_const :PEG
|
376
|
+
g.push_literal @source
|
377
|
+
g.send :compile, 1
|
378
|
+
g.goto build
|
379
|
+
|
380
|
+
done.set!
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
353
384
|
class RegexLiteral < Node
|
354
385
|
attr_accessor :source, :options
|
355
386
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubinius-ast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '3.
|
4
|
+
version: '3.13'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|