lexer_toplevel_done = 1;
}
';'
+ {}
| ENT_STRUCT options '{' struct_fields '}'
{
new_structure ($1->u.s.tag, UNION_P ($1), &lexer_line,
lexer_toplevel_done = 1;
}
';'
+ {}
;
externstatic: ENT_EXTERNSTATIC options lasttype ID semiequal
{
- note_variable ($4, adjust_field_type ($3, $2), $2,
+ note_variable ($4, adjust_field_type ($3, $2), $2,
&lexer_line);
}
| ENT_EXTERNSTATIC options lasttype ID ARRAY semiequal
;
lasttype: type
- {
+ {
lexer_toplevel_done = 1;
$$ = $1;
}
yacc_typematch: /* empty */
{ $$ = NULL; }
| yacc_typematch PERCENT_ID yacc_ids
- {
+ {
pair_p p;
for (p = $3; p->next != NULL; p = p->next)
{
yacc_ids: /* empty */
{ $$ = NULL; }
| yacc_ids ID
- {
+ {
pair_p p = xcalloc (1, sizeof (*p));
p->next = $1;
p->line = lexer_line;
$$ = o;
}
| ID '(' STRING ')'
- {
+ {
options_p o = xmalloc (sizeof (*o));
o->name = $1;
o->info = (void *)$3;
}
;
-optionseqopt: { $$ = NULL }
+optionseqopt: { $$ = NULL; }
| optionseq { $$ = $1; }
;
%%