]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/spotlight_rawquery_lexer.l
Various fixes
[netatalk.git] / etc / afpd / spotlight_rawquery_lexer.l
1 %{
2 #include <string.h>
3 #include <stdbool.h>
4 #include <gio/gio.h>
5 #include <atalk/talloc.h>
6 #include "spotlight.h"
7 #include "spotlight_rawquery_parser.h"
8 %}
9
10 %%
11 InRange                               return FUNC_INRANGE;
12 \$time\.iso                           return DATE_SPEC;
13 ....-..-..T..:..:..Z                  {yylval.sval = talloc_strdup(ssp_slq, yytext); return DATE;}
14 false                                 {yylval.bval = false; return BOOL;}
15 true                                  {yylval.bval = true; return BOOL;}
16 [a-zA-Z\*]+                           {yylval.sval = talloc_strdup(ssp_slq, yytext); return WORD;}
17 \"                                    return QUOTE;
18 \(                                    return OBRACE;
19 \)                                    return CBRACE;
20 \&\&                                  return AND;
21 \|\|                                  return OR;
22 \=\=                                  return EQUAL;
23 !\=                                   return UNEQUAL;
24 \<                                    return LT;
25 \>                                    return GT;
26 \,                                    return COMMA;
27 [ \t\n]                               /* ignore */
28 cwd                                   /* ignore case specifier */
29 cd                                    /* ignore */
30 %%