absyntax_utils/spec_init_separator.cc
changeset 810 d9c48ad646f1
parent 596 4efb11e44065
child 909 8b2a31dea131
equal deleted inserted replaced
809:9204559768f1 810:d9c48ad646f1
   156   }
   156   }
   157   ERROR; /* should never occur */
   157   ERROR; /* should never occur */
   158   return NULL;
   158   return NULL;
   159 }
   159 }
   160 
   160 
       
   161 /*  function_block_type_name ASSIGN structure_initialization */
       
   162 /* structure_initialization -> may be NULL ! */
       
   163 //SYM_REF2(fb_spec_init_c, function_block_type_name, structure_initialization)
       
   164 void *spec_init_sperator_c::visit(fb_spec_init_c *symbol) {
       
   165   TRACE("spec_init_sperator_c::fb_spec_init_c");
       
   166   switch (search_what) {
       
   167     case search_spec: return symbol->function_block_type_name;
       
   168     case search_init: return symbol->structure_initialization;
       
   169   }
       
   170   ERROR; /* should never occur */
       
   171   return NULL;
       
   172 }
   161 
   173 
   162 /******************************************/
   174 /******************************************/
   163 /* B 1.4.3 - Declaration & Initialisation */
   175 /* B 1.4.3 - Declaration & Initialisation */
   164 /******************************************/
   176 /******************************************/
   165 
   177 
   166 /* fb_name_list ':' function_block_type_name ASSIGN structure_initialization */
       
   167 /* structure_initialization -> may be NULL ! */
       
   168 void *spec_init_sperator_c::visit(fb_name_decl_c *symbol) {
       
   169   TRACE("spec_init_sperator_c::fb_name_decl_c");
       
   170   switch (search_what) {
       
   171     case search_spec: return symbol->function_block_type_name;
       
   172     case search_init: return symbol->structure_initialization;
       
   173   }
       
   174   ERROR; /* should never occur */
       
   175   return NULL;
       
   176 }
       
   177 
       
   178 
       
   179 /* STRING '[' integer ']' 
   178 /* STRING '[' integer ']' 
   180  * STRING ASSIGN single_byte_character_string
   179  * STRING ASSIGN single_byte_character_string
   181  * STRING '[' integer ']' ASSIGN single_byte_character_string
   180  * STRING '[' integer ']' ASSIGN single_byte_character_string
   182  */
   181  */
   183 void *spec_init_sperator_c::visit(single_byte_string_spec_c *symbol) {
   182 void *spec_init_sperator_c::visit(single_byte_string_spec_c *symbol) {