]> icculus.org git repositories - mikachu/openbox.git/blob - util/epist/epist.l
uber patch.
[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 Mod2 |
20 Mod3 |
21 Mod4 |
22 Control |
23 Shift               yylval = (int) strdup(yytext); return BINDING;
24 [0-9]+              yylval = (int) strdup(yytext); return NUMBER;
25 \".+\"              yylval = (int) strdup(yytext); return QUOTES;
26 [a-zA-Z_0-9]+       yylval = (int) strdup(yytext); return WORD;
27 #.+\n               /* ignore */
28 \n                  /* ignore */
29 [ \t]+              /* */
30 %%
31