bool 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bool/ast.rb +1 -1
- data/lib/bool/evaluator.rb +1 -1
- metadata +8 -8
- data/ext/bool_ext/libbool/bool_ast.c +0 -102
- data/ext/bool_ext/libbool/bool_ast.h +0 -43
- data/ext/bool_ext/libbool/lexer.c +0 -1965
- data/ext/bool_ext/libbool/lexer.h +0 -341
- data/ext/bool_ext/libbool/parser.c +0 -1657
- data/ext/bool_ext/libbool/parser.h +0 -109
@@ -1,109 +0,0 @@
|
|
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 "bool_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
|
-
|
55
|
-
/* Line 2065 of yacc.c */
|
56
|
-
#line 57 "parser.h"
|
57
|
-
|
58
|
-
/* Tokens. */
|
59
|
-
#ifndef YYTOKENTYPE
|
60
|
-
# define YYTOKENTYPE
|
61
|
-
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
62
|
-
know about them. */
|
63
|
-
enum yytokentype {
|
64
|
-
TOKEN_OR = 258,
|
65
|
-
TOKEN_AND = 259,
|
66
|
-
UNOT = 260,
|
67
|
-
TOKEN_VAR = 261,
|
68
|
-
TOKEN_NOT = 262,
|
69
|
-
TOKEN_LPAREN = 263,
|
70
|
-
TOKEN_RPAREN = 264,
|
71
|
-
TOKEN_ERROR = 265
|
72
|
-
};
|
73
|
-
#endif
|
74
|
-
|
75
|
-
|
76
|
-
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
77
|
-
typedef union YYSTYPE
|
78
|
-
{
|
79
|
-
/* Line 2065 of yacc.c */
|
80
|
-
#line 28 "parser.y"
|
81
|
-
|
82
|
-
char* value;
|
83
|
-
Node* node;
|
84
|
-
|
85
|
-
|
86
|
-
/* Line 2065 of yacc.c */
|
87
|
-
#line 88 "parser.h"
|
88
|
-
} YYSTYPE;
|
89
|
-
# define YYSTYPE_IS_TRIVIAL 1
|
90
|
-
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
91
|
-
# define YYSTYPE_IS_DECLARED 1
|
92
|
-
#endif
|
93
|
-
|
94
|
-
|
95
|
-
#ifdef YYPARSE_PARAM
|
96
|
-
#if defined __STDC__ || defined __cplusplus
|
97
|
-
int yyparse (void *YYPARSE_PARAM);
|
98
|
-
#else
|
99
|
-
int yyparse ();
|
100
|
-
#endif
|
101
|
-
#else /* ! YYPARSE_PARAM */
|
102
|
-
#if defined __STDC__ || defined __cplusplus
|
103
|
-
int yyparse (Node** node, yyscan_t scanner);
|
104
|
-
#else
|
105
|
-
int yyparse ();
|
106
|
-
#endif
|
107
|
-
#endif /* ! YYPARSE_PARAM */
|
108
|
-
|
109
|
-
#endif /* !YY_YY_PARSER_H_INCLUDED */
|