]> arthur.barton.de Git - netatalk.git/blob - etc/spotlight/spotlight_rawquery_lexer.l
Move and rename Spotlight module
[netatalk.git] / etc / spotlight / spotlight_rawquery_lexer.l
1 %top{
2 #ifdef HAVE_CONFIG_H
3 #include "config.h"
4 #endif /* HAVE_CONFIG_H */
5 }
6
7 %{
8 #include <stdbool.h>
9 #include <gio/gio.h>
10 #include <atalk/talloc.h>
11 #include <atalk/spotlight.h>
12 #include "slmod_sparql_parser.h"
13 %}
14
15 %%
16 InRange                               return FUNC_INRANGE;
17 \$time\.iso                           return DATE_ISO;
18 false                                 {yylval.bval = false; return BOOL;}
19 true                                  {yylval.bval = true; return BOOL;}
20 [a-zA-Z0-9_\*\:\-\.]+                 {yylval.sval = talloc_strdup(ssp_slq, yytext); return WORD;}
21 \"                                    return QUOTE;
22 \(                                    return OBRACE;
23 \)                                    return CBRACE;
24 \&\&                                  return AND;
25 \|\|                                  return OR;
26 \=\=                                  return EQUAL;
27 \!\=                                  return UNEQUAL;
28 \<                                    return LT;
29 \>                                    return GT;
30 \,                                    return COMMA;
31 [ \t\n]                               /* ignore */
32 %%