]> Dogcows Code - chaz/openbox/blob - util/epist/epist.l
added config.h includes
[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 %%
15
16 \{ return OBRACE;
17 \} return EBRACE;
18 ; return SEMICOLON;
19 - return DASH;
20 Options |
21 options return OPTIONS;
22 Mod1 |
23 mod1 |
24 Mod2 |
25 mod2 |
26 Mod3 |
27 mod3 |
28 Mod4 |
29 mod4 |
30 Control |
31 control |
32 shift |
33 Shift yylval = (int) strdup(yytext); return BINDING;
34 on |
35 On |
36 true |
37 True yylval = (int) strdup(yytext); return TRUE;
38 Off |
39 off |
40 false |
41 False yylval = (int) strdup(yytext); return FALSE;
42 [0-9]+ yylval = (int) strdup(yytext); return NUMBER;
43 \".+\" yylval = (int) strdup(yytext); return QUOTES;
44 [a-zA-Z_0-9]+ yylval = (int) strdup(yytext); return WORD;
45 #.+\n /* ignore */
46 \n /* ignore */
47 [ \t]+ /* */
48 %%
49
This page took 0.035593 seconds and 5 git commands to generate.