]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/spotlight_rawquery_parser.h
Use a lexxer and a parser for mapping Spotlight raw queries to SPARQL
[netatalk.git] / etc / afpd / spotlight_rawquery_parser.h
1 /* A Bison parser, made by GNU Bison 2.5.  */
2
3 /* Bison interface for Yacc-like parsers in C
4    
5       Copyright (C) 1984, 1989-1990, 2000-2011 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
34 /* Tokens.  */
35 #ifndef YYTOKENTYPE
36 # define YYTOKENTYPE
37    /* Put the tokens into the symbol table, so that GDB and other debuggers
38       know about them.  */
39    enum yytokentype {
40      DATE = 258,
41      WORD = 259,
42      FUNC_INRANGE = 260,
43      DATE_SPEC = 261,
44      OBRACE = 262,
45      CBRACE = 263,
46      EQUAL = 264,
47      COMMA = 265,
48      QUOTE = 266,
49      AND = 267,
50      OR = 268
51    };
52 #endif
53 /* Tokens.  */
54 #define DATE 258
55 #define WORD 259
56 #define FUNC_INRANGE 260
57 #define DATE_SPEC 261
58 #define OBRACE 262
59 #define CBRACE 263
60 #define EQUAL 264
61 #define COMMA 265
62 #define QUOTE 266
63 #define AND 267
64 #define OR 268
65
66
67
68
69 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
70 typedef union YYSTYPE
71 {
72
73 /* Line 2068 of yacc.c  */
74 #line 33 "spotlight_rawquery_parser.y"
75
76     int ival;
77     const char *sval;
78
79
80
81 /* Line 2068 of yacc.c  */
82 #line 83 "spotlight_rawquery_parser.h"
83 } YYSTYPE;
84 # define YYSTYPE_IS_TRIVIAL 1
85 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
86 # define YYSTYPE_IS_DECLARED 1
87 #endif
88
89 extern YYSTYPE yylval;
90
91
92 /* "%code provides" blocks.  */
93
94 /* Line 2068 of yacc.c  */
95 #line 27 "spotlight_rawquery_parser.y"
96
97   extern const gchar *map_spotlight_to_sparql_query(slq_t *slq);
98   extern slq_t *ssp_slq;
99   extern gchar *ssp_result;
100
101
102
103 /* Line 2068 of yacc.c  */
104 #line 105 "spotlight_rawquery_parser.h"