bool 1.0.19 → 1.0.20

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
2
  SHA1:
3
- metadata.gz: e1ad2c646789d9049b9501a1f0dfeeca609abefb
4
- data.tar.gz: 184c6bf932861aa82ea938ff1e787b974f488f5f
3
+ metadata.gz: 606d757cd701884c464f57715204918fdb31d4bb
4
+ data.tar.gz: 74f24e1cc691b03960db1faa58fb3c9921bc6795
5
5
  SHA512:
6
- metadata.gz: 1ac1c0d878dd78135f3369139ece48274de54bb0885b8073e758f1dc82450bc8ec9b54211cf6e964138c5577399c808fcdc2b43ae3539191b5d068927b2bfb84
7
- data.tar.gz: 8e5166b83ed89e83e6be2d6870ceaf07eb57ace793473246637fa0b749eec6c30798878475ae79d5b91117cd336b8c250eef56c8dcb0cb502d09b28beb04662c
6
+ metadata.gz: 69da6b1193fbb1ace681031279af59e01adae2e9a82d6ace159917e82a5d98f83bba42ea8ca3b9febb4e774a865521b24b546f28ab0f97bd9a8fa3912887de96
7
+ data.tar.gz: b3b0cd41f9c24c9ae9460ab5862694db08587ccb359664092d662ddb3bd29c25f1aa1c91a92ba1b0bfba4250048fea798fe241c2b392070c7c04d82cad2b082e
@@ -1,4 +1,4 @@
1
- /* A Bison parser, made by GNU Bison 3.0. */
1
+ /* A Bison parser, made by GNU Bison 3.0.2. */
2
2
 
3
3
  /* Bison implementation for Yacc-like parsers in C
4
4
 
@@ -44,7 +44,7 @@
44
44
  #define YYBISON 1
45
45
 
46
46
  /* Bison version. */
47
- #define YYBISON_VERSION "3.0"
47
+ #define YYBISON_VERSION "3.0.2"
48
48
 
49
49
  /* Skeleton name. */
50
50
  #define YYSKELETON_NAME "yacc.c"
@@ -72,11 +72,11 @@
72
72
 
73
73
  #line 74 "parser.c" /* yacc.c:339 */
74
74
 
75
- # ifndef YY_NULL
75
+ # ifndef YY_NULLPTR
76
76
  # if defined __cplusplus && 201103L <= __cplusplus
77
- # define YY_NULL nullptr
77
+ # define YY_NULLPTR nullptr
78
78
  # else
79
- # define YY_NULL 0
79
+ # define YY_NULLPTR 0
80
80
  # endif
81
81
  # endif
82
82
 
@@ -217,11 +217,30 @@ typedef short int yytype_int16;
217
217
  # endif
218
218
  #endif
219
219
 
220
- #ifndef __attribute__
221
- /* This feature is available in gcc versions 2.5 and later. */
222
- # if (! defined __GNUC__ || __GNUC__ < 2 \
223
- || (__GNUC__ == 2 && __GNUC_MINOR__ < 5))
224
- # define __attribute__(Spec) /* empty */
220
+ #ifndef YY_ATTRIBUTE
221
+ # if (defined __GNUC__ \
222
+ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
223
+ || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
224
+ # define YY_ATTRIBUTE(Spec) __attribute__(Spec)
225
+ # else
226
+ # define YY_ATTRIBUTE(Spec) /* empty */
227
+ # endif
228
+ #endif
229
+
230
+ #ifndef YY_ATTRIBUTE_PURE
231
+ # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
232
+ #endif
233
+
234
+ #ifndef YY_ATTRIBUTE_UNUSED
235
+ # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
236
+ #endif
237
+
238
+ #if !defined _Noreturn \
239
+ && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
240
+ # if defined _MSC_VER && 1200 <= _MSC_VER
241
+ # define _Noreturn __declspec (noreturn)
242
+ # else
243
+ # define _Noreturn YY_ATTRIBUTE ((__noreturn__))
225
244
  # endif
226
245
  #endif
227
246
 
@@ -452,7 +471,7 @@ static const char *const yytname[] =
452
471
  {
453
472
  "$end", "error", "$undefined", "TOKEN_VAR", "TOKEN_AND", "TOKEN_OR",
454
473
  "TOKEN_NOT", "TOKEN_LPAREN", "TOKEN_RPAREN", "UNOT", "$accept", "input",
455
- "expr", YY_NULL
474
+ "expr", YY_NULLPTR
456
475
  };
457
476
  #endif
458
477
 
@@ -625,7 +644,7 @@ do { \
625
644
 
626
645
  /* Print *YYLOCP on YYO. Private, do not rely on its existence. */
627
646
 
628
- __attribute__((__unused__))
647
+ YY_ATTRIBUTE_UNUSED
629
648
  static unsigned
630
649
  yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
631
650
  {
@@ -889,11 +908,11 @@ static int
889
908
  yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
890
909
  yytype_int16 *yyssp, int yytoken)
891
910
  {
892
- YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]);
911
+ YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
893
912
  YYSIZE_T yysize = yysize0;
894
913
  enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
895
914
  /* Internationalized format string. */
896
- const char *yyformat = YY_NULL;
915
+ const char *yyformat = YY_NULLPTR;
897
916
  /* Arguments of yyformat. */
898
917
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
899
918
  /* Number of reported tokens (one for the "unexpected", one per
@@ -950,7 +969,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
950
969
  }
951
970
  yyarg[yycount++] = yytname[yyx];
952
971
  {
953
- YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
972
+ YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
954
973
  if (! (yysize <= yysize1
955
974
  && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
956
975
  return 2;
@@ -1308,43 +1327,43 @@ yyreduce:
1308
1327
  switch (yyn)
1309
1328
  {
1310
1329
  case 2:
1311
- #line 42 "parser.y" /* yacc.c:1646 */
1330
+ #line 42 "parser.y" /* yacc.c:1661 */
1312
1331
  { *node = (yyvsp[0].node); }
1313
- #line 1314 "parser.c" /* yacc.c:1646 */
1332
+ #line 1333 "parser.c" /* yacc.c:1661 */
1314
1333
  break;
1315
1334
 
1316
1335
  case 3:
1317
- #line 46 "parser.y" /* yacc.c:1646 */
1336
+ #line 46 "parser.y" /* yacc.c:1661 */
1318
1337
  { (yyval.node) = create_var((yyvsp[0].token)); }
1319
- #line 1320 "parser.c" /* yacc.c:1646 */
1338
+ #line 1339 "parser.c" /* yacc.c:1661 */
1320
1339
  break;
1321
1340
 
1322
1341
  case 4:
1323
- #line 47 "parser.y" /* yacc.c:1646 */
1342
+ #line 47 "parser.y" /* yacc.c:1661 */
1324
1343
  { (yyval.node) = create_and((yyvsp[-1].token), (yyvsp[-2].node), (yyvsp[0].node)); }
1325
- #line 1326 "parser.c" /* yacc.c:1646 */
1344
+ #line 1345 "parser.c" /* yacc.c:1661 */
1326
1345
  break;
1327
1346
 
1328
1347
  case 5:
1329
- #line 48 "parser.y" /* yacc.c:1646 */
1348
+ #line 48 "parser.y" /* yacc.c:1661 */
1330
1349
  { (yyval.node) = create_or((yyvsp[-1].token), (yyvsp[-2].node), (yyvsp[0].node)); }
1331
- #line 1332 "parser.c" /* yacc.c:1646 */
1350
+ #line 1351 "parser.c" /* yacc.c:1661 */
1332
1351
  break;
1333
1352
 
1334
1353
  case 6:
1335
- #line 49 "parser.y" /* yacc.c:1646 */
1354
+ #line 49 "parser.y" /* yacc.c:1661 */
1336
1355
  { (yyval.node) = create_not((yyvsp[-1].token), (yyvsp[0].node)); }
1337
- #line 1338 "parser.c" /* yacc.c:1646 */
1356
+ #line 1357 "parser.c" /* yacc.c:1661 */
1338
1357
  break;
1339
1358
 
1340
1359
  case 7:
1341
- #line 50 "parser.y" /* yacc.c:1646 */
1360
+ #line 50 "parser.y" /* yacc.c:1661 */
1342
1361
  { (yyval.node) = (yyvsp[-1].node); }
1343
- #line 1344 "parser.c" /* yacc.c:1646 */
1362
+ #line 1363 "parser.c" /* yacc.c:1661 */
1344
1363
  break;
1345
1364
 
1346
1365
 
1347
- #line 1348 "parser.c" /* yacc.c:1646 */
1366
+ #line 1367 "parser.c" /* yacc.c:1661 */
1348
1367
  default: break;
1349
1368
  }
1350
1369
  /* User semantic actions sometimes alter yychar, and that requires
@@ -1,4 +1,4 @@
1
- /* A Bison parser, made by GNU Bison 3.0. */
1
+ /* A Bison parser, made by GNU Bison 3.0.2. */
2
2
 
3
3
  /* Bison interface for Yacc-like parsers in C
4
4
 
@@ -40,11 +40,11 @@
40
40
  extern int yydebug;
41
41
  #endif
42
42
  /* "%code requires" blocks. */
43
- #line 9 "parser.y" /* yacc.c:1909 */
43
+ #line 9 "parser.y" /* yacc.c:1915 */
44
44
 
45
45
  #include "ast.h"
46
46
 
47
- #line 48 "parser.h" /* yacc.c:1909 */
47
+ #line 48 "parser.h" /* yacc.c:1915 */
48
48
 
49
49
  /* Token type. */
50
50
  #ifndef YYTOKENTYPE
@@ -66,12 +66,12 @@ extern int yydebug;
66
66
  typedef union YYSTYPE YYSTYPE;
67
67
  union YYSTYPE
68
68
  {
69
- #line 21 "parser.y" /* yacc.c:1909 */
69
+ #line 21 "parser.y" /* yacc.c:1915 */
70
70
 
71
71
  Token* token;
72
72
  Node* node;
73
73
 
74
- #line 75 "parser.h" /* yacc.c:1909 */
74
+ #line 75 "parser.h" /* yacc.c:1915 */
75
75
  };
76
76
  # define YYSTYPE_IS_TRIVIAL 1
77
77
  # define YYSTYPE_IS_DECLARED 1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.19
4
+ version: 1.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-27 00:00:00.000000000 Z
11
+ date: 2014-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3.5
33
+ version: 1.5.2
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
- version: 1.3.5
40
+ version: 1.5.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake-compiler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 0.9.1
47
+ version: 0.9.2
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 0.9.1
54
+ version: 0.9.2
55
55
  description:
56
56
  email:
57
57
  executables: []
@@ -59,19 +59,19 @@ extensions:
59
59
  - ext/bool_ext/extconf.rb
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - lib/bool.rb
63
62
  - lib/bool/ast.rb
64
- - lib/bool/renderer.rb
65
63
  - lib/bool/evaluator.rb
64
+ - lib/bool/renderer.rb
65
+ - lib/bool.rb
66
66
  - ext/bool_ext/extconf.rb
67
67
  - ext/bool_ext/ast.c
68
68
  - ext/bool_ext/ext.c
69
69
  - ext/bool_ext/lexer.c
70
70
  - ext/bool_ext/parser.c
71
- - ext/bool_ext/parser.h
71
+ - ext/bool_ext/ast.h
72
72
  - ext/bool_ext/lexer.h
73
+ - ext/bool_ext/parser.h
73
74
  - ext/bool_ext/unused.h
74
- - ext/bool_ext/ast.h
75
75
  homepage:
76
76
  licenses: []
77
77
  metadata: {}
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.0.3
94
+ rubygems_version: 2.0.14
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Boolean expression evaluator