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