]> Dogcows Code - chaz/openbox/blob - util/epist/epist.l
add the otk::Point type
[chaz/openbox] / util / epist / epist.l
1 %{
2 #ifdef HAVE_CONFIG_H
3 # include "../../config.h"
4 #endif // HAVE_CONFIG_H
5
6 #include <stdio.h>
7 #include <string.h>
8 #include "yacc_parser.hh"
9
10 extern YYSTYPE yylval;
11
12 %}
13
14 %option yylineno
15
16 %%
17
18 \{ return OBRACE;
19 \} return EBRACE;
20 ; return SEMICOLON;
21 - return DASH;
22 Options |
23 options return OPTIONS;
24 Mod1 |
25 mod1 |
26 Mod2 |
27 mod2 |
28 Mod3 |
29 mod3 |
30 Mod4 |
31 mod4 |
32 Mod5 |
33 mod5 |
34 Control |
35 control |
36 shift |
37 Shift yylval = (int) strdup(yytext); return BINDING;
38 on |
39 On |
40 true |
41 True yylval = (int) strdup(yytext); return TRUE;
42 Off |
43 off |
44 false |
45 False yylval = (int) strdup(yytext); return FALSE;
46 [0-9]+ yylval = (int) strdup(yytext); return NUMBER;
47 \".+\" yylval = (int) strdup(yytext); return QUOTES;
48 [a-zA-Z_0-9]+ yylval = (int) strdup(yytext); return WORD;
49 #.+\n /* ignore */
50 \n /* ignore */
51 [ \t]+ /* */
52 %%
53
This page took 0.033574 seconds and 4 git commands to generate.