2 Unix SMB/CIFS implementation.
3 Main metadata server / Spotlight routines
5 Copyright (C) Ralph Boehme 2012-2014
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.
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.
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/>.
23 #include "rpc_server/mdssvc/sparql_parser.tab.h"
26 #define yyalloc SMB_MALLOC
27 #define yyrealloc SMB_REALLOC
30 %option nounput noyyalloc noyyrealloc prefix="mdsyy"
32 ASC [a-zA-Z0-9_\*\:\-\.]
38 UANY {ASC}|{U2}{U}|{U3}{U}{U}|{U4}{U}{U}{U}
39 UONLY {U2}{U}|{U3}{U}{U}|{U4}{U}{U}{U}
42 InRange return FUNC_INRANGE;
43 \$time\.iso return DATE_ISO;
44 false {mdsyylval.bval = false; return BOOL;}
45 true {mdsyylval.bval = true; return BOOL;}
57 {UANY}+ {mdsyylval.sval = talloc_strdup(talloc_tos(), mdsyytext); return WORD;}