]> icculus.org git repositories - mikachu/openbox.git/blob - util/epist/epist.l
Made case requirements less strict (you can now have "control" as well as "Control...
[mikachu/openbox.git] / util / epist / epist.l
1 %{
2 #include <stdio.h>
3 #include <string.h>
4 #include "yacc_parser.hh"
5
6 extern YYSTYPE yylval;
7     
8 %}
9
10 %%
11
12 \{                  return OBRACE;
13 \}                  return EBRACE;
14 ;                   return SEMICOLON;
15 -                   return DASH;
16 Options |
17 options             return OPTIONS;
18 Mod1 |
19 mod1 |
20 Mod2 |
21 mod2 |
22 Mod3 |
23 mod3 |
24 Mod4 |
25 mod4 |
26 Control |
27 control |
28 shift |
29 Shift               yylval = (int) strdup(yytext); return BINDING;
30 true |
31 True                yylval = (int) strdup(yytext); return TRUE;
32 false |
33 False               yylval = (int) strdup(yytext); return FALSE;
34 [0-9]+              yylval = (int) strdup(yytext); return NUMBER;
35 \".+\"              yylval = (int) strdup(yytext); return QUOTES;
36 [a-zA-Z_0-9]+       yylval = (int) strdup(yytext); return WORD;
37 #.+\n               /* ignore */
38 \n                  /* ignore */
39 [ \t]+              /* */
40 %%
41