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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75fd7b51e0af4cd6023348ac17ae71a627b3204f
4
- data.tar.gz: a701f57877dd548e15f4a8bb01a07902250e2e7b
3
+ metadata.gz: c2af6a3703dc8665c369955fb1b50bde34a25362
4
+ data.tar.gz: cda970e9f8c7713fd5f338a257d8a320fd0f92b1
5
5
  SHA512:
6
- metadata.gz: 838fa2e7fdec86c2e76f577856bab0234d866c246e8750b8b77b73918a2298bef25a5322b8cd6d4d6545aae298f3c3b3b880bf024a6068e9bb4bb9c92d01c229
7
- data.tar.gz: 84fcbba243be2c8a78b4d3b6627bb0c0231b21be45c8bd5a2d2d3deb06ddeb75d7b75f80a1f03ddd83c72416124a7881a783b042744857a0a4e4f5fe32fa0517
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
 
@@ -1,5 +1,5 @@
1
1
  module CodeTools
2
2
  module AST
3
- VERSION = "3.12"
3
+ VERSION = "3.13"
4
4
  end
5
5
  end
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.12'
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: 2017-10-17 00:00:00.000000000 Z
11
+ date: 2018-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler