stage4/generate_cc/generate_cc.cc
changeset 40 873a5b60a7ea
parent 39 e08c65e27557
child 41 8998c8b24b60
equal deleted inserted replaced
39:e08c65e27557 40:873a5b60a7ea
   924   /* Insert the header... */
   924   /* Insert the header... */
   925   s4o.print("/*******************************************/\n");
   925   s4o.print("/*******************************************/\n");
   926   s4o.print("/*     FILE GENERATED BY iec2cc            */\n");
   926   s4o.print("/*     FILE GENERATED BY iec2cc            */\n");
   927   s4o.print("/* Editing this file is not recommended... */\n");
   927   s4o.print("/* Editing this file is not recommended... */\n");
   928   s4o.print("/*******************************************/\n\n");
   928   s4o.print("/*******************************************/\n\n");
   929   s4o.print("#include \"plciec.h\"\n\n");
   929   s4o.print("#include \"iec_std_lib.h\"\n\n");
   930   
   930   
   931   /* (A) configuration declaration... */
   931   /* (A) configuration declaration... */
   932   /* (A.1) configuration name in comment */
   932   /* (A.1) configuration name in comment */
   933   s4o.print("// CONFIGURATION ");
   933   s4o.print("// CONFIGURATION ");
   934   symbol->configuration_name->accept(*this);
   934   symbol->configuration_name->accept(*this);
  1136       /* Insert the header... */
  1136       /* Insert the header... */
  1137       s4o.print("/*******************************************/\n");
  1137       s4o.print("/*******************************************/\n");
  1138       s4o.print("/*     FILE GENERATED BY iec2cc            */\n");
  1138       s4o.print("/*     FILE GENERATED BY iec2cc            */\n");
  1139       s4o.print("/* Editing this file is not recommended... */\n");
  1139       s4o.print("/* Editing this file is not recommended... */\n");
  1140       s4o.print("/*******************************************/\n\n");
  1140       s4o.print("/*******************************************/\n\n");
  1141       s4o.print("#include \"plciec.h\"\n\n");
  1141       s4o.print("#include \"iec_std_lib.h\"\n\n");
  1142       
  1142       
  1143       /* (A) resource declaration... */
  1143       /* (A) resource declaration... */
  1144       /* (A.1) resource name in comment */
  1144       /* (A.1) resource name in comment */
  1145       s4o.print("// RESOURCE ");
  1145       s4o.print("// RESOURCE ");
  1146       current_resource_name->accept(*this);
  1146       current_resource_name->accept(*this);