rubinius-processor 2.2.1 → 2.3.0
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/processor/processor.rb +13 -0
- data/lib/rubinius/processor/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: 2f50279a01528957e57428b64bf31ab38ff119e2
|
|
4
|
+
data.tar.gz: 40af1e15a1f23f90e3b6b395725eea2f3351bf36
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8fb6cfe00c297fe56104706bcf451eabb639c32e71d8e7aa15d094bb5247711f380407ff1f412182c2a8b5f5f55d4c47c19f13f07586fdd18e3a747d9e9dbf62
|
|
7
|
+
data.tar.gz: 18a0bce4f673e0f4412d39434f6b1fae0a5cec8fa270e35ab34b1b190cdfcd830c8bdf7ca51ccc8094b9be65a68166ab637e14ca231dfee318ed4600e0e58b1a
|
|
@@ -424,6 +424,19 @@ module CodeTools
|
|
|
424
424
|
AST::OpAssignOr.new line, var, value
|
|
425
425
|
end
|
|
426
426
|
|
|
427
|
+
def process_op_cdecl(line, var, value, op)
|
|
428
|
+
op_value = case op
|
|
429
|
+
when :and
|
|
430
|
+
AST::And.new line, var, value
|
|
431
|
+
when :or
|
|
432
|
+
AST::Or.new line, var, value
|
|
433
|
+
else
|
|
434
|
+
args = AST::ArrayLiteral.new line, [value]
|
|
435
|
+
AST::SendWithArguments.new line, var, op, args
|
|
436
|
+
end
|
|
437
|
+
AST::ConstantAssignment.new line, var, op_value
|
|
438
|
+
end
|
|
439
|
+
|
|
427
440
|
def process_opt_arg(line, arguments)
|
|
428
441
|
AST::Block.new line, arguments
|
|
429
442
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubinius-processor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Shirai
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|