openbox/util/epist/epist.l

32 lines
689 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 |
Mod2 |
Mod3 |
Mod4 |
Control |
Shift yylval = (int) strdup(yytext); return BINDING;
[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]+ /* */
%%