bool 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -123,13 +123,13 @@ typedef void* yyscan_t;
123
123
  /* Put the tokens into the symbol table, so that GDB and other debuggers
124
124
  know about them. */
125
125
  enum yytokentype {
126
- TOKEN_OR = 258,
126
+ TOKEN_VAR = 258,
127
127
  TOKEN_AND = 259,
128
- UNOT = 260,
129
- TOKEN_VAR = 261,
130
- TOKEN_NOT = 262,
131
- TOKEN_LPAREN = 263,
132
- TOKEN_RPAREN = 264
128
+ TOKEN_OR = 260,
129
+ TOKEN_NOT = 261,
130
+ TOKEN_LPAREN = 262,
131
+ TOKEN_RPAREN = 263,
132
+ UNOT = 264
133
133
  };
134
134
  #endif
135
135
 
@@ -407,7 +407,7 @@ union yyalloc
407
407
  /* YYFINAL -- State number of the termination state. */
408
408
  #define YYFINAL 8
409
409
  /* YYLAST -- Last index in YYTABLE. */
410
- #define YYLAST 14
410
+ #define YYLAST 13
411
411
 
412
412
  /* YYNTOKENS -- Number of terminals. */
413
413
  #define YYNTOKENS 10
@@ -468,15 +468,15 @@ static const yytype_uint8 yyprhs[] =
468
468
  /* YYRHS -- A `-1'-separated list of the rules' RHS. */
469
469
  static const yytype_int8 yyrhs[] =
470
470
  {
471
- 11, 0, -1, 12, -1, 6, -1, 12, 4, 12,
472
- -1, 12, 3, 12, -1, 7, 12, -1, 8, 12,
473
- 9, -1
471
+ 11, 0, -1, 12, -1, 3, -1, 12, 4, 12,
472
+ -1, 12, 5, 12, -1, 6, 12, -1, 7, 12,
473
+ 8, -1
474
474
  };
475
475
 
476
476
  /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
477
477
  static const yytype_uint8 yyrline[] =
478
478
  {
479
- 0, 51, 51, 55, 56, 57, 58, 59
479
+ 0, 50, 50, 54, 55, 56, 57, 58
480
480
  };
481
481
  #endif
482
482
 
@@ -485,9 +485,9 @@ static const yytype_uint8 yyrline[] =
485
485
  First, the terminals, then, starting at YYNTOKENS, nonterminals. */
486
486
  static const char *const yytname[] =
487
487
  {
488
- "$end", "error", "$undefined", "TOKEN_OR", "TOKEN_AND", "UNOT",
489
- "TOKEN_VAR", "TOKEN_NOT", "TOKEN_LPAREN", "TOKEN_RPAREN", "$accept",
490
- "input", "expr", YY_NULL
488
+ "$end", "error", "$undefined", "TOKEN_VAR", "TOKEN_AND", "TOKEN_OR",
489
+ "TOKEN_NOT", "TOKEN_LPAREN", "TOKEN_RPAREN", "UNOT", "$accept", "input",
490
+ "expr", YY_NULL
491
491
  };
492
492
  #endif
493
493
 
@@ -518,7 +518,7 @@ static const yytype_uint8 yyr2[] =
518
518
  static const yytype_uint8 yydefact[] =
519
519
  {
520
520
  0, 3, 0, 0, 0, 2, 6, 0, 1, 0,
521
- 0, 7, 5, 4
521
+ 0, 7, 4, 5
522
522
  };
523
523
 
524
524
  /* YYDEFGOTO[NTERM-NUM]. */
@@ -532,8 +532,8 @@ static const yytype_int8 yydefgoto[] =
532
532
  #define YYPACT_NINF -3
533
533
  static const yytype_int8 yypact[] =
534
534
  {
535
- 4, -3, 4, 4, 13, 2, -3, 0, -3, 4,
536
- 4, -3, 10, -3
535
+ -1, -3, -1, -1, 3, 7, -3, 5, -3, -1,
536
+ -1, -3, -3, -3
537
537
  };
538
538
 
539
539
  /* YYPGOTO[NTERM-NUM]. */
@@ -548,8 +548,8 @@ static const yytype_int8 yypgoto[] =
548
548
  #define YYTABLE_NINF -1
549
549
  static const yytype_uint8 yytable[] =
550
550
  {
551
- 6, 7, 0, 9, 10, 9, 10, 12, 13, 11,
552
- 1, 2, 3, 8, 10
551
+ 6, 7, 1, 8, 0, 2, 3, 12, 13, 9,
552
+ 10, 9, 10, 11
553
553
  };
554
554
 
555
555
  #define yypact_value_is_default(Yystate) \
@@ -560,16 +560,16 @@ static const yytype_uint8 yytable[] =
560
560
 
561
561
  static const yytype_int8 yycheck[] =
562
562
  {
563
- 2, 3, -1, 3, 4, 3, 4, 9, 10, 9,
564
- 6, 7, 8, 0, 4
563
+ 2, 3, 3, 0, -1, 6, 7, 9, 10, 4,
564
+ 5, 4, 5, 8
565
565
  };
566
566
 
567
567
  /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
568
568
  symbol of state STATE-NUM. */
569
569
  static const yytype_uint8 yystos[] =
570
570
  {
571
- 0, 6, 7, 8, 11, 12, 12, 12, 0, 3,
572
- 4, 9, 12, 12
571
+ 0, 3, 6, 7, 11, 12, 12, 12, 0, 4,
572
+ 5, 8, 12, 12
573
573
  };
574
574
 
575
575
  #define yyerrok (yyerrstatus = 0)
@@ -1505,37 +1505,37 @@ yyreduce:
1505
1505
  {
1506
1506
  case 2:
1507
1507
  /* Line 1807 of yacc.c */
1508
- #line 51 "parser.y"
1508
+ #line 50 "parser.y"
1509
1509
  { *node = (yyvsp[(1) - (1)].node); }
1510
1510
  break;
1511
1511
 
1512
1512
  case 3:
1513
1513
  /* Line 1807 of yacc.c */
1514
- #line 55 "parser.y"
1514
+ #line 54 "parser.y"
1515
1515
  { (yyval.node) = create_var((yyvsp[(1) - (1)].value)); }
1516
1516
  break;
1517
1517
 
1518
1518
  case 4:
1519
1519
  /* Line 1807 of yacc.c */
1520
- #line 56 "parser.y"
1520
+ #line 55 "parser.y"
1521
1521
  { (yyval.node) = create_and((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); }
1522
1522
  break;
1523
1523
 
1524
1524
  case 5:
1525
1525
  /* Line 1807 of yacc.c */
1526
- #line 57 "parser.y"
1526
+ #line 56 "parser.y"
1527
1527
  { (yyval.node) = create_or((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); }
1528
1528
  break;
1529
1529
 
1530
1530
  case 6:
1531
1531
  /* Line 1807 of yacc.c */
1532
- #line 58 "parser.y"
1532
+ #line 57 "parser.y"
1533
1533
  { (yyval.node) = create_not((yyvsp[(2) - (2)].node)); }
1534
1534
  break;
1535
1535
 
1536
1536
  case 7:
1537
1537
  /* Line 1807 of yacc.c */
1538
- #line 59 "parser.y"
1538
+ #line 58 "parser.y"
1539
1539
  { (yyval.node) = (yyvsp[(2) - (3)].node); }
1540
1540
  break;
1541
1541
 
@@ -1780,6 +1780,6 @@ yyreturn:
1780
1780
 
1781
1781
 
1782
1782
  /* Line 2055 of yacc.c */
1783
- #line 62 "parser.y"
1783
+ #line 61 "parser.y"
1784
1784
 
1785
1785
 
@@ -60,13 +60,13 @@ typedef void* yyscan_t;
60
60
  /* Put the tokens into the symbol table, so that GDB and other debuggers
61
61
  know about them. */
62
62
  enum yytokentype {
63
- TOKEN_OR = 258,
63
+ TOKEN_VAR = 258,
64
64
  TOKEN_AND = 259,
65
- UNOT = 260,
66
- TOKEN_VAR = 261,
67
- TOKEN_NOT = 262,
68
- TOKEN_LPAREN = 263,
69
- TOKEN_RPAREN = 264
65
+ TOKEN_OR = 260,
66
+ TOKEN_NOT = 261,
67
+ TOKEN_LPAREN = 262,
68
+ TOKEN_RPAREN = 263,
69
+ UNOT = 264
70
70
  };
71
71
  #endif
72
72
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -67,7 +67,6 @@ extensions:
67
67
  extra_rdoc_files: []
68
68
  files:
69
69
  - lib/bool/ast.rb
70
- - lib/bool/console_printer.rb
71
70
  - lib/bool/evaluator.rb
72
71
  - lib/bool.rb
73
72
  - ext/bool_ext/extconf.rb
@@ -99,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
98
  version: '0'
100
99
  requirements: []
101
100
  rubyforge_project:
102
- rubygems_version: 1.8.24
101
+ rubygems_version: 1.8.23
103
102
  signing_key:
104
103
  specification_version: 3
105
104
  summary: Boolean expression evaluator
@@ -1,5 +0,0 @@
1
- module Bool
2
- class ConsolePrinter
3
-
4
- end
5
- end