openbox/util/epist/epist.l

46 lines
901 B
Text
Raw Normal View History

2002-08-06 23:08:54 +00:00
%{
#include <stdio.h>
#include <string.h>
2002-08-06 23:08:54 +00:00
#include "yacc_parser.hh"
extern YYSTYPE yylval;
2002-08-06 23:08:54 +00:00
%}
%%
\{ return OBRACE;
\} return EBRACE;
; return SEMICOLON;
- return DASH;
Options |
options return OPTIONS;
2002-08-06 23:08:54 +00:00
Mod1 |
mod1 |
2002-08-06 23:08:54 +00:00
Mod2 |
mod2 |
2002-08-06 23:08:54 +00:00
Mod3 |
mod3 |
2002-08-06 23:08:54 +00:00
Mod4 |
mod4 |
2002-08-06 23:08:54 +00:00
Control |
control |
shift |
Shift yylval = (int) strdup(yytext); return BINDING;
on |
On |
true |
True yylval = (int) strdup(yytext); return TRUE;
Off |
off |
false |
False yylval = (int) strdup(yytext); return FALSE;
[0-9]+ yylval = (int) strdup(yytext); return NUMBER;
\".+\" yylval = (int) strdup(yytext); return QUOTES;
[a-zA-Z_0-9]+ yylval = (int) strdup(yytext); return WORD;
2002-08-06 23:08:54 +00:00
#.+\n /* ignore */
\n /* ignore */
[ \t]+ /* */
%%