X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fparse.y;h=7e92efd6767dc8e6e703fab08ceee9b8b1066b2c;hb=2b2beddc7447197d12fcbcae96772e1f38eef138;hp=de221f9f094fd6f13ce4e50c3f60566846632391;hpb=5cf61ee02354c1c9f80c11f3796afc4b948055d6;p=chaz%2Fopenbox diff --git a/openbox/parse.y b/openbox/parse.y index de221f9f..7e92efd6 100644 --- a/openbox/parse.y +++ b/openbox/parse.y @@ -17,7 +17,9 @@ } %{ +#define NO_TAB_H #include "parse.h" +#undef NO_TAB_H extern int yylex(); extern int yyparse(); @@ -39,7 +41,7 @@ void parse_set_section(char *section); %token INTEGER %token STRING %token IDENTIFIER -%token BOOL +%token BOOLEAN %token '(' %token ')' %token '{' @@ -76,7 +78,7 @@ token: | INTEGER { t.type = TOKEN_INTEGER; t.data.integer = $1; } | STRING { t.type = TOKEN_STRING; t.data.string = $1; } | IDENTIFIER { t.type = TOKEN_IDENTIFIER; t.data.identifier = $1; } - | BOOL { t.type = TOKEN_BOOL; t.data.bool = $1; } + | BOOLEAN { t.type = TOKEN_BOOL; t.data.bool = $1; } | list { t.type = TOKEN_LIST; t.data.list = $1; } | '{' { t.type = $1; t.data.character = $1; } | '}' { t.type = $1; t.data.character = $1; } @@ -105,7 +107,7 @@ listtoken: | INTEGER { t.type = TOKEN_INTEGER; t.data.integer = $1; } | STRING { t.type = TOKEN_STRING; t.data.string = $1; } | IDENTIFIER { t.type = TOKEN_IDENTIFIER; t.data.identifier = $1; } - | BOOL { t.type = TOKEN_BOOL; t.data.bool = $1; } + | BOOLEAN { t.type = TOKEN_BOOL; t.data.bool = $1; } | list { t.type = TOKEN_LIST; t.data.list = $1; } | '{' { t.type = $1; t.data.character = $1; } | '}' { t.type = $1; t.data.character = $1; }