stage4/generate_iec/generate_iec.cc
changeset 146 eef5e62048c7
parent 144 0ee0055a8ffe
child 152 efc510145ab2
equal deleted inserted replaced
145:72ae82e65dbc 146:eef5e62048c7
   604   s4o.print(" : BOOL ");
   604   s4o.print(" : BOOL ");
   605   symbol->edge->accept(*this);
   605   symbol->edge->accept(*this);
   606   return NULL;
   606   return NULL;
   607 }
   607 }
   608 
   608 
       
   609 void *visit(en_param_declaration_c *symbol) {
       
   610   s4o.print("EN : BOOL := 1");
       
   611   return NULL;
       
   612 }
   609 
   613 
   610 void *visit(raising_edge_option_c *symbol) {
   614 void *visit(raising_edge_option_c *symbol) {
   611   s4o.print("R_EDGE");
   615   s4o.print("R_EDGE");
   612   return NULL;
   616   return NULL;
   613 }
   617 }
   676   s4o.print("\n");
   680   s4o.print("\n");
   677   s4o.indent_right();
   681   s4o.indent_right();
   678   symbol->var_init_decl_list->accept(*this);
   682   symbol->var_init_decl_list->accept(*this);
   679   s4o.indent_left();
   683   s4o.indent_left();
   680   s4o.print(s4o.indent_spaces); s4o.print("END_VAR\n");
   684   s4o.print(s4o.indent_spaces); s4o.print("END_VAR\n");
       
   685   return NULL;
       
   686 }
       
   687 
       
   688 void *visit(eno_param_declaration_c *symbol) {
       
   689   s4o.print("EN0 : BOOL");
   681   return NULL;
   690   return NULL;
   682 }
   691 }
   683 
   692 
   684 /*  VAR_IN_OUT  END_VAR */
   693 /*  VAR_IN_OUT  END_VAR */
   685 void *visit(input_output_declarations_c *symbol) {
   694 void *visit(input_output_declarations_c *symbol) {