PEP8: fix E305: expected 2 blank lines after class or function definition, found 1
[Samba.git] / source3 / rpc_server / mdssvc / sparql_lexer.l
blobe60a3fb5de37477a80c777761768262bae1fe640
1 /*
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/>.
22 #include "includes.h"
23 #include "rpc_server/mdssvc/sparql_parser.tab.h"
25 #define YY_NO_INPUT
26 #define yyalloc SMB_MALLOC
27 #define yyrealloc SMB_REALLOC
30 %option nounput noyyalloc noyyrealloc prefix="mdsyy"
32 ASC     [a-zA-Z0-9_\*\:\-\.]
33 U       [\x80-\xbf]
34 U2      [\xc2-\xdf]
35 U3      [\xe0-\xef]
36 U4      [\xf0-\xf4]
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;}
46 \"                return QUOTE;
47 \(                return OBRACE;
48 \)                return CBRACE;
49 \&\&              return AND;
50 \|\|              return OR;
51 \=\=              return EQUAL;
52 \!\=              return UNEQUAL;
53 \=                return EQUAL;
54 \<                return LT;
55 \>                return GT;
56 \,                return COMMA;
57 {UANY}+           {mdsyylval.sval = talloc_strdup(talloc_tos(), mdsyytext); return WORD;}
58 [ \t\n]           /* ignore */