]> Dogcows Code - chaz/openbox/commitdiff
Made case requirements less strict (you can now have "control" as well as "Control...
authorMarius Nita <marius@cs.pdx.edu>
Mon, 26 Aug 2002 06:38:02 +0000 (06:38 +0000)
committerMarius Nita <marius@cs.pdx.edu>
Mon, 26 Aug 2002 06:38:02 +0000 (06:38 +0000)
util/epist/epist.l
util/epist/epist.y

index 86db62aea81654cfd053259c2bd1bc8f3ca02e15..55dc8d615f757d347ebf5d80e639997e1768eb56 100644 (file)
@@ -16,11 +16,21 @@ extern YYSTYPE yylval;
 Options |
 options             return OPTIONS;
 Mod1 |
+mod1 |
 Mod2 |
+mod2 |
 Mod3 |
+mod3 |
 Mod4 |
+mod4 |
 Control |
+control |
+shift |
 Shift               yylval = (int) strdup(yytext); return BINDING;
+true |
+True                yylval = (int) strdup(yytext); return TRUE;
+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;
index f91162f74828f8dfe86fad505d737e8744b15e9b..d187e96f0c2f19c5da9222b46b0f83452df40813 100644 (file)
@@ -24,7 +24,7 @@ void yyerror(const char *c) {
 
 %}
 
-%token OBRACE EBRACE SEMICOLON DASH NUMBER QUOTES WORD BINDING OPTIONS
+%token OBRACE EBRACE SEMICOLON DASH NUMBER QUOTES WORD BINDING OPTIONS TRUE FALSE
 
 %%
 
@@ -86,6 +86,8 @@ parameter:
     | NUMBER      { ((parser*)parser_obj)->setArgumentNum($1); }
     | DASH NUMBER { ((parser*)parser_obj)->setArgumentNegNum($2); }
     | QUOTES      { ((parser*)parser_obj)->setArgumentStr($1); }
+    | TRUE        { ((parser*)parser_obj)->setArgumentTrue($1); }
+    | FALSE       { ((parser*)parser_obj)->setArgumentFalse($1); }
     ;
 
 options_keyword:
This page took 0.026057 seconds and 4 git commands to generate.