mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Use op instead of integer_val for ADDOP etc.
This commit is contained in:
parent
edaa6235e7
commit
e34f7caeb0
2 changed files with 3 additions and 3 deletions
|
@ -237,7 +237,7 @@ keyword_or_id (const char *token)
|
||||||
keyword = Hash_Find (keyword_tab, token);
|
keyword = Hash_Find (keyword_tab, token);
|
||||||
if (keyword) {
|
if (keyword) {
|
||||||
if (keyword->value == ADDOP || keyword->value == MULOP) {
|
if (keyword->value == ADDOP || keyword->value == MULOP) {
|
||||||
yylval.integer_val = yytext[0];
|
yylval.op = yytext[0];
|
||||||
} else {
|
} else {
|
||||||
yylval.type = keyword->type;
|
yylval.type = keyword->type;
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,8 +105,8 @@ int yylex (void);
|
||||||
%nonassoc ELSE
|
%nonassoc ELSE
|
||||||
|
|
||||||
%left <string_val> RELOP
|
%left <string_val> RELOP
|
||||||
%left <integer_val> ADDOP
|
%left <op> ADDOP
|
||||||
%left <integer_val> MULOP
|
%left <op> MULOP
|
||||||
%right UNARY
|
%right UNARY
|
||||||
|
|
||||||
%token <type> TYPE
|
%token <type> TYPE
|
||||||
|
|
Loading…
Reference in a new issue