cast 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d3fa7d3a1b922bb9896e01e72d120241bf45af9e
4
- data.tar.gz: 59d62d402059410cc60537316d74fbdb885f0df8
2
+ SHA256:
3
+ metadata.gz: 8d28ed8c2a4e614f19a15b7a11f03248e113460a1696aee87f297f13b5f2accd
4
+ data.tar.gz: 05f1e875efc4c582d266716c75947d678763acae895550d97840dd60f8d4f4d3
5
5
  SHA512:
6
- metadata.gz: 45f872c0b249b174267ebfe998b09fe54979c74fde293d0701ce4006ccaa11a534f996d03452ac8c47c6598a7e4ec2f97c972d381e101d4a4bbaf18eab25ca83
7
- data.tar.gz: b28567344263130cd777c5b3d3b3ae323284a59b93537b68f6262107f5f7c00f3f92dae904d6925e6d9fb3d45b6f308a9dc65b65ab2a239e7f8059511c5b07a3
6
+ metadata.gz: 153f75a811886c45e1babfb2ba5b3f797bbe3abb7d8b9cfedd328ea6a0027d7790d8ed586c9a8875acfb926d3dec9005c0d3db4b737dd79047085e848eb3072d
7
+ data.tar.gz: 3c6c578a7b8fb2dda38b5428b82eaadd2fc399747047b5100153e560cd3c4da41b8baad145cd0ecc65ddbf30ce6c8516339fd1e98b0fa14526b66deac06e93f4
data/.gitignore CHANGED
@@ -3,6 +3,8 @@
3
3
  /ext/Makefile
4
4
  /ext/*.bundle
5
5
  /ext/*.o
6
+ /ext/*.so
6
7
  /ext/yylex.c
8
+ /lib/cast/cast.so
7
9
  /lib/cast/c.tab.rb
8
10
  /lib/cast/cast.bundle
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.3.1 2020-07-15
2
+
3
+ * Support struct/union member declarations with no declarators. [Brice Videau]
4
+
1
5
  == 0.3.0 2016-03-21
2
6
 
3
7
  * Fix popping & shifting from an empty NodeList.
@@ -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
@@ -1,5 +1,5 @@
1
1
  module C
2
- VERSION = [0, 3, 0]
2
+ VERSION = [0, 3, 1]
3
3
 
4
4
  class << VERSION
5
5
  include Comparable
@@ -194,7 +194,7 @@ EOS
194
194
 
195
195
  c.wide = false
196
196
  assert(!c.wide?)
197
- assert_equal(nil, c.prefix)
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
- assert_equal(nil, s.prefix)
222
+ assert_nil(s.prefix)
223
223
  end
224
224
  end
@@ -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
- assert_equal(nil, list.index([b]))
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))
@@ -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.0
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: 2016-03-21 00:00:00.000000000 Z
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
- rubyforge_project:
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.