bool 1.0.1 → 1.0.2

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.
@@ -0,0 +1,120 @@
1
+ /* A Bison parser, made by GNU Bison 2.7. */
2
+
3
+ /* Bison interface for Yacc-like parsers in C
4
+
5
+ Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
+
20
+ /* As a special exception, you may create a larger work that contains
21
+ part or all of the Bison parser skeleton and distribute that work
22
+ under terms of your choice, so long as that work isn't itself a
23
+ parser generator using the skeleton or a modified version thereof
24
+ as a parser skeleton. Alternatively, if you modify or redistribute
25
+ the parser skeleton itself, you may (at your option) remove this
26
+ special exception, which will cause the skeleton and the resulting
27
+ Bison output files to be licensed under the GNU General Public
28
+ License without this special exception.
29
+
30
+ This special exception was added by the Free Software Foundation in
31
+ version 2.2 of Bison. */
32
+
33
+ #ifndef YY_YY_PARSER_H_INCLUDED
34
+ # define YY_YY_PARSER_H_INCLUDED
35
+ /* Enabling traces. */
36
+ #ifndef YYDEBUG
37
+ # define YYDEBUG 0
38
+ #endif
39
+ #if YYDEBUG
40
+ extern int yydebug;
41
+ #endif
42
+ /* "%code requires" blocks. */
43
+ /* Line 2065 of yacc.c */
44
+ #line 10 "parser.y"
45
+
46
+
47
+ #include "ast.h"
48
+ #ifndef YY_TYPEDEF_YY_SCANNER_T
49
+ #define YY_TYPEDEF_YY_SCANNER_T
50
+ typedef void* yyscan_t;
51
+ #endif
52
+
53
+
54
+ /* Line 2065 of yacc.c */
55
+ #line 56 "parser.h"
56
+
57
+ /* Tokens. */
58
+ #ifndef YYTOKENTYPE
59
+ # define YYTOKENTYPE
60
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
61
+ know about them. */
62
+ enum yytokentype {
63
+ TOKEN_OR = 258,
64
+ TOKEN_AND = 259,
65
+ UNOT = 260,
66
+ TOKEN_VAR = 261,
67
+ TOKEN_NOT = 262,
68
+ TOKEN_LPAREN = 263,
69
+ TOKEN_RPAREN = 264
70
+ };
71
+ #endif
72
+
73
+
74
+ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
75
+ typedef union YYSTYPE
76
+ {
77
+ /* Line 2065 of yacc.c */
78
+ #line 30 "parser.y"
79
+
80
+ char* value;
81
+ Node* node;
82
+
83
+
84
+ /* Line 2065 of yacc.c */
85
+ #line 86 "parser.h"
86
+ } YYSTYPE;
87
+ # define YYSTYPE_IS_TRIVIAL 1
88
+ # define yystype YYSTYPE /* obsolescent; will be withdrawn */
89
+ # define YYSTYPE_IS_DECLARED 1
90
+ #endif
91
+
92
+ #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
93
+ typedef struct YYLTYPE
94
+ {
95
+ int first_line;
96
+ int first_column;
97
+ int last_line;
98
+ int last_column;
99
+ } YYLTYPE;
100
+ # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
101
+ # define YYLTYPE_IS_DECLARED 1
102
+ # define YYLTYPE_IS_TRIVIAL 1
103
+ #endif
104
+
105
+
106
+ #ifdef YYPARSE_PARAM
107
+ #if defined __STDC__ || defined __cplusplus
108
+ int yyparse (void *YYPARSE_PARAM);
109
+ #else
110
+ int yyparse ();
111
+ #endif
112
+ #else /* ! YYPARSE_PARAM */
113
+ #if defined __STDC__ || defined __cplusplus
114
+ int yyparse (Node** node, yyscan_t scanner);
115
+ #else
116
+ int yyparse ();
117
+ #endif
118
+ #endif /* ! YYPARSE_PARAM */
119
+
120
+ #endif /* !YY_YY_PARSER_H_INCLUDED */
@@ -0,0 +1,6 @@
1
+ #ifndef __UNUSED_H__
2
+ #define __UNUSED_H__
3
+
4
+ #define UNUSED(x) (void)(x)
5
+
6
+ #endif
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.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -70,7 +70,14 @@ files:
70
70
  - lib/bool/evaluator.rb
71
71
  - lib/bool.rb
72
72
  - ext/bool_ext/extconf.rb
73
+ - ext/bool_ext/ast.c
73
74
  - ext/bool_ext/ext.c
75
+ - ext/bool_ext/lexer.c
76
+ - ext/bool_ext/parser.c
77
+ - ext/bool_ext/ast.h
78
+ - ext/bool_ext/lexer.h
79
+ - ext/bool_ext/parser.h
80
+ - ext/bool_ext/unused.h
74
81
  homepage:
75
82
  licenses: []
76
83
  post_install_message:
@@ -85,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
92
  version: '0'
86
93
  segments:
87
94
  - 0
88
- hash: -2363318795009182098
95
+ hash: 2027792207605607223
89
96
  required_rubygems_version: !ruby/object:Gem::Requirement
90
97
  none: false
91
98
  requirements:
@@ -94,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
101
  version: '0'
95
102
  segments:
96
103
  - 0
97
- hash: -2363318795009182098
104
+ hash: 2027792207605607223
98
105
  requirements: []
99
106
  rubyforge_project:
100
107
  rubygems_version: 1.8.24