equal
deleted
inserted
replaced
201 /* helper symbol for structure_declaration */ |
201 /* helper symbol for structure_declaration */ |
202 /* structure_declaration: STRUCT structure_element_declaration_list END_STRUCT */ |
202 /* structure_declaration: STRUCT structure_element_declaration_list END_STRUCT */ |
203 /* structure_element_declaration_list structure_element_declaration ';' */ |
203 /* structure_element_declaration_list structure_element_declaration ';' */ |
204 void *visit(structure_element_declaration_list_c *symbol) { |
204 void *visit(structure_element_declaration_list_c *symbol) { |
205 if (NULL == this->current_type_name) ERROR; |
205 if (NULL == this->current_type_name) ERROR; |
206 return (void *)this->current_type_name; |
206 return (void *)symbol; |
207 } |
207 } |
208 |
208 |
209 /* structure_element_name ':' *_spec_init */ |
209 /* structure_element_name ':' *_spec_init */ |
210 void *visit(structure_element_declaration_c *symbol) {ERROR; return NULL;} /* should never get called... */ |
210 void *visit(structure_element_declaration_c *symbol) {ERROR; return NULL;} /* should never get called... */ |
211 |
211 |