cast 0.3.0 → 0.3.1
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 +5 -5
- data/.gitignore +2 -0
- data/CHANGELOG +4 -0
- data/lib/cast/c.y +1 -0
- data/lib/cast/version.rb +1 -1
- data/test/c_nodes_test.rb +2 -2
- data/test/node_list_test.rb +1 -1
- data/test/parse_test.rb +3 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8d28ed8c2a4e614f19a15b7a11f03248e113460a1696aee87f297f13b5f2accd
|
4
|
+
data.tar.gz: 05f1e875efc4c582d266716c75947d678763acae895550d97840dd60f8d4f4d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 153f75a811886c45e1babfb2ba5b3f797bbe3abb7d8b9cfedd328ea6a0027d7790d8ed586c9a8875acfb926d3dec9005c0d3db4b737dd79047085e848eb3072d
|
7
|
+
data.tar.gz: 3c6c578a7b8fb2dda38b5428b82eaadd2fc399747047b5100153e560cd3c4da41b8baad145cd0ecc65ddbf30ce6c8516339fd1e98b0fa14526b66deac06e93f4
|
data/.gitignore
CHANGED
data/CHANGELOG
CHANGED
data/lib/cast/c.y
CHANGED
@@ -173,6 +173,7 @@ struct_declaration_list
|
|
173
173
|
# Returns Declaration
|
174
174
|
struct_declaration
|
175
175
|
: specifier_qualifier_list struct_declarator_list SEMICOLON {result = make_declaration(val[0][0], val[0][1], val[1])}
|
176
|
+
| specifier_qualifier_list SEMICOLON {result = make_declaration(val[0][0], val[0][1], NodeArray[])}
|
176
177
|
|
177
178
|
# Returns {Pos, [Symbol]}
|
178
179
|
specifier_qualifier_list
|
data/lib/cast/version.rb
CHANGED
data/test/c_nodes_test.rb
CHANGED
@@ -194,7 +194,7 @@ EOS
|
|
194
194
|
|
195
195
|
c.wide = false
|
196
196
|
assert(!c.wide?)
|
197
|
-
|
197
|
+
assert_nil(c.prefix)
|
198
198
|
end
|
199
199
|
def test_string_literal_wide
|
200
200
|
s = C::StringLiteral.new('abc', 'L')
|
@@ -219,6 +219,6 @@ EOS
|
|
219
219
|
|
220
220
|
s.wide = false
|
221
221
|
assert(!s.wide?)
|
222
|
-
|
222
|
+
assert_nil(s.prefix)
|
223
223
|
end
|
224
224
|
end
|
data/test/node_list_test.rb
CHANGED
@@ -1298,7 +1298,7 @@ module NodeListArrayQueryTests
|
|
1298
1298
|
assert_equal(0, list.index(a))
|
1299
1299
|
assert_equal(1, list.index(l1))
|
1300
1300
|
assert_equal(1, list.index(_List[C::Int.new(2)]))
|
1301
|
-
|
1301
|
+
assert_nil(list.index([b]))
|
1302
1302
|
assert_nil(list.index([a]))
|
1303
1303
|
assert_nil(list.index(C::Int.new))
|
1304
1304
|
assert_nil(list.index(nil))
|
data/test/parse_test.rb
CHANGED
@@ -1761,10 +1761,12 @@ Struct
|
|
1761
1761
|
name: "s"
|
1762
1762
|
EOS
|
1763
1763
|
check C::Struct, <<EOS
|
1764
|
-
const struct {int i, j : 4;}
|
1764
|
+
const struct {float; int i, j : 4;}
|
1765
1765
|
----
|
1766
1766
|
Struct (const)
|
1767
1767
|
members:
|
1768
|
+
- Declaration
|
1769
|
+
type: Float
|
1768
1770
|
- Declaration
|
1769
1771
|
type: Int
|
1770
1772
|
declarators:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- George Ogata
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -71,8 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
|
75
|
-
rubygems_version: 2.4.8
|
74
|
+
rubygems_version: 3.1.3
|
76
75
|
signing_key:
|
77
76
|
specification_version: 4
|
78
77
|
summary: C parser and AST constructor.
|