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