mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
Use IDENTIFIER instead of TYPE_NAME for structure names
Since there is no track of which names are structure names during parsing, TYPE_NAME cannot be produced by the lexer. Use IDENTIFIER and let the AST processor sort it out.
This commit is contained in:
parent
bf783ecea6
commit
1f959ab4d6
1 changed files with 2 additions and 2 deletions
|
|
@ -84,7 +84,7 @@
|
|||
%token ISAMPLER1DARRAY ISAMPLER2DARRAY USAMPLER1D USAMPLER2D USAMPLER3D
|
||||
%token USAMPLERCUBE USAMPLER1DARRAY USAMPLER2DARRAY
|
||||
%token STRUCT VOID WHILE
|
||||
%token <identifier> IDENTIFIER TYPE_NAME
|
||||
%token <identifier> IDENTIFIER
|
||||
%token <real> FLOATCONSTANT
|
||||
%token <n> INTCONSTANT UINTCONSTANT BOOLCONSTANT
|
||||
%token <identifier> FIELD_SELECTION
|
||||
|
|
@ -941,7 +941,7 @@ type_specifier_nonarray:
|
|||
$$ = new ast_type_specifier($1);
|
||||
$$->set_location(yylloc);
|
||||
}
|
||||
| TYPE_NAME
|
||||
| IDENTIFIER
|
||||
{
|
||||
$$ = new ast_type_specifier($1);
|
||||
$$->set_location(yylloc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue