X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Fepist.l;h=6c7e08a5acdb567bba9b7bd03d43b0f2de297517;hb=eb19a6b69e89c6adae1b99705b0a26edc344c87a;hp=146d4b0eb71d1796bb591e0b8a7bf53b27fe9022;hpb=97e86c912ee33e9e75e68f9c193d78879f91d542;p=chaz%2Fopenbox diff --git a/util/epist/epist.l b/util/epist/epist.l index 146d4b0e..6c7e08a5 100644 --- a/util/epist/epist.l +++ b/util/epist/epist.l @@ -1,24 +1,48 @@ %{ +#ifdef HAVE_CONFIG_H +# include "../../config.h" +#endif // HAVE_CONFIG_H + #include #include #include "yacc_parser.hh" extern YYSTYPE yylval; - + %} +%option yylineno + %% \{ return OBRACE; \} return EBRACE; ; return SEMICOLON; - return DASH; +Options | +options return OPTIONS; Mod1 | +mod1 | Mod2 | +mod2 | Mod3 | +mod3 | Mod4 | +mod4 | +Mod5 | +mod5 | 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;