]> Dogcows Code - chaz/openbox/blob - util/epist/epist.l
Added On/Off options to the grammar, for parameters.
[chaz/openbox] / 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 on |
31 On |
32 true |
33 True yylval = (int) strdup(yytext); return TRUE;
34 Off |
35 off |
36 false |
37 False yylval = (int) strdup(yytext); return FALSE;
38 [0-9]+ yylval = (int) strdup(yytext); return NUMBER;
39 \".+\" yylval = (int) strdup(yytext); return QUOTES;
40 [a-zA-Z_0-9]+ yylval = (int) strdup(yytext); return WORD;
41 #.+\n /* ignore */
42 \n /* ignore */
43 [ \t]+ /* */
44 %%
45
This page took 0.035456 seconds and 5 git commands to generate.