rubinius-processor 3.3 → 3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubinius/code/processor/processor.rb +7 -13
- data/lib/rubinius/code/processor/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 991bb0f819b51ff6f0cec0ef46d3ba6a87efe0ef
|
4
|
+
data.tar.gz: 1618784fd634023c34c9aec20c079b5a70da5dcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1d1f57528ebc3d976009b32b098e1b4d72990c38d8ca1c7c48b47bd2dceb30cb5f02a766b0a314cfb0503ca999e4e4e1130a7a2bd9b5aa1b5cc58d30a3eb34f
|
7
|
+
data.tar.gz: 7352f3e791292ae733484d62e1ed92637619dc529084c5fa7c6833d40cd1df8763ea4fe8274db7a8d3300d9917809e2a8a19ddc7818dc28ff7bb190683bb0b1f
|
@@ -198,18 +198,10 @@ module CodeTools
|
|
198
198
|
AST::Define.new line, name, body
|
199
199
|
end
|
200
200
|
|
201
|
-
def process_defnm(line, name, body)
|
202
|
-
AST::DefineMulti.new line, name, body
|
203
|
-
end
|
204
|
-
|
205
201
|
def process_defs(line, receiver, name, body)
|
206
202
|
AST::DefineSingleton.new line, receiver, name, body
|
207
203
|
end
|
208
204
|
|
209
|
-
def process_defsm(line, receiver, name, body)
|
210
|
-
AST::DefineSingletonMulti.new line, receiver, name, body
|
211
|
-
end
|
212
|
-
|
213
205
|
def process_dot2(line, start, finish)
|
214
206
|
AST::Range.new line, start, finish
|
215
207
|
end
|
@@ -314,10 +306,6 @@ module CodeTools
|
|
314
306
|
AST::DefineFunction.new line, name, body
|
315
307
|
end
|
316
308
|
|
317
|
-
def process_funm(line, name, body)
|
318
|
-
AST::DefineFunctionMulti.new line, name, body
|
319
|
-
end
|
320
|
-
|
321
309
|
def process_gasgn(line, name, expr)
|
322
310
|
AST::GlobalVariableAssignment.new line, name, expr
|
323
311
|
end
|
@@ -518,8 +506,14 @@ module CodeTools
|
|
518
506
|
AST::Redo.new line
|
519
507
|
end
|
520
508
|
|
509
|
+
REGEXP_OPTION_PEG = 8
|
510
|
+
|
521
511
|
def process_regex(line, str, flags)
|
522
|
-
|
512
|
+
if flags == REGEXP_OPTION_PEG
|
513
|
+
AST::PEGLiteral.new line, str
|
514
|
+
else
|
515
|
+
AST::RegexLiteral.new line, str, flags
|
516
|
+
end
|
523
517
|
end
|
524
518
|
|
525
519
|
def process_resbody(line, conditions, body, nxt)
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubinius-processor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '3.
|
4
|
+
version: '3.4'
|
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
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
description: Converts Melbourne parse tree into an AST.
|
@@ -58,17 +58,17 @@ require_paths:
|
|
58
58
|
- lib
|
59
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project:
|
71
|
-
rubygems_version: 2.
|
71
|
+
rubygems_version: 2.5.1
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: Converts Melbourne parse tree into an AST.
|