stage4/generate_iec/generate_iec.cc
changeset 1022 0d4d3a502d82
parent 1016 91bef6704b44
child 1041 56ebe2a31b5b
equal deleted inserted replaced
1008:59435d4c5e0c 1022:0d4d3a502d82
   390 
   390 
   391 
   391 
   392 /***********************************/
   392 /***********************************/
   393 /* B 1.3.1 - Elementary Data Types */
   393 /* B 1.3.1 - Elementary Data Types */
   394 /***********************************/
   394 /***********************************/
   395 void *visit(time_type_name_c *symbol)        {s4o.print("TIME");        return NULL;}
   395 void *visit(       time_type_name_c *symbol) {s4o.print("TIME");        return NULL;}
   396 void *visit(bool_type_name_c *symbol)        {s4o.print("BOOL");        return NULL;}
   396 void *visit(       bool_type_name_c *symbol) {s4o.print("BOOL");        return NULL;}
   397 void *visit(sint_type_name_c *symbol)        {s4o.print("SINT");        return NULL;}
   397 void *visit(       sint_type_name_c *symbol) {s4o.print("SINT");        return NULL;}
   398 void *visit(int_type_name_c *symbol)         {s4o.print("INT");         return NULL;}
   398 void *visit(        int_type_name_c *symbol) {s4o.print("INT");         return NULL;}
   399 void *visit(dint_type_name_c *symbol)        {s4o.print("DINT");        return NULL;}
   399 void *visit(       dint_type_name_c *symbol) {s4o.print("DINT");        return NULL;}
   400 void *visit(lint_type_name_c *symbol)        {s4o.print("LINT");        return NULL;}
   400 void *visit(       lint_type_name_c *symbol) {s4o.print("LINT");        return NULL;}
   401 void *visit(usint_type_name_c *symbol)       {s4o.print("USINT");       return NULL;}
   401 void *visit(      usint_type_name_c *symbol) {s4o.print("USINT");       return NULL;}
   402 void *visit(uint_type_name_c *symbol)        {s4o.print("UINT");        return NULL;}
   402 void *visit(       uint_type_name_c *symbol) {s4o.print("UINT");        return NULL;}
   403 void *visit(udint_type_name_c *symbol)       {s4o.print("UDINT");       return NULL;}
   403 void *visit(      udint_type_name_c *symbol) {s4o.print("UDINT");       return NULL;}
   404 void *visit(ulint_type_name_c *symbol)       {s4o.print("ULINT");       return NULL;}
   404 void *visit(      ulint_type_name_c *symbol) {s4o.print("ULINT");       return NULL;}
   405 void *visit(real_type_name_c *symbol)        {s4o.print("REAL");        return NULL;}
   405 void *visit(       real_type_name_c *symbol) {s4o.print("REAL");        return NULL;}
   406 void *visit(lreal_type_name_c *symbol)       {s4o.print("LREAL");       return NULL;}
   406 void *visit(      lreal_type_name_c *symbol) {s4o.print("LREAL");       return NULL;}
   407 void *visit(date_type_name_c *symbol)        {s4o.print("DATE");        return NULL;}
   407 void *visit(       date_type_name_c *symbol) {s4o.print("DATE");        return NULL;}
   408 void *visit(tod_type_name_c *symbol)         {s4o.print("TOD");         return NULL;}
   408 void *visit(        tod_type_name_c *symbol) {s4o.print("TOD");         return NULL;}
   409 void *visit(dt_type_name_c *symbol)          {s4o.print("DT");          return NULL;}
   409 void *visit(         dt_type_name_c *symbol) {s4o.print("DT");          return NULL;}
   410 void *visit(byte_type_name_c *symbol)        {s4o.print("BYTE");        return NULL;}
   410 void *visit(       byte_type_name_c *symbol) {s4o.print("BYTE");        return NULL;}
   411 void *visit(word_type_name_c *symbol)        {s4o.print("WORD");        return NULL;}
   411 void *visit(       word_type_name_c *symbol) {s4o.print("WORD");        return NULL;}
   412 void *visit(lword_type_name_c *symbol)       {s4o.print("LWORD");       return NULL;}
   412 void *visit(      lword_type_name_c *symbol) {s4o.print("LWORD");       return NULL;}
   413 void *visit(dword_type_name_c *symbol)       {s4o.print("DWORD");       return NULL;}
   413 void *visit(      dword_type_name_c *symbol) {s4o.print("DWORD");       return NULL;}
   414 void *visit(string_type_name_c *symbol)      {s4o.print("STRING");      return NULL;}
   414 void *visit(     string_type_name_c *symbol) {s4o.print("STRING");      return NULL;}
   415 void *visit(wstring_type_name_c *symbol)     {s4o.print("WSTRING");     return NULL;}
   415 void *visit(    wstring_type_name_c *symbol) {s4o.print("WSTRING");     return NULL;}
   416 
   416 
   417 void *visit(safetime_type_name_c *symbol)    {s4o.print("SAFETIME");    return NULL;}
   417 void *visit(       void_type_name_c *symbol) {s4o.print("VOID");        return NULL;} /* a non-standard extension! */
   418 void *visit(safebool_type_name_c *symbol)    {s4o.print("SAFEBOOL");    return NULL;}
   418 
   419 void *visit(safesint_type_name_c *symbol)    {s4o.print("SAFESINT");    return NULL;}
   419 void *visit(   safetime_type_name_c *symbol) {s4o.print("SAFETIME");    return NULL;}
   420 void *visit(safeint_type_name_c *symbol)     {s4o.print("SAFEINT");     return NULL;}
   420 void *visit(   safebool_type_name_c *symbol) {s4o.print("SAFEBOOL");    return NULL;}
   421 void *visit(safedint_type_name_c *symbol)    {s4o.print("SAFEDINT");    return NULL;}
   421 void *visit(   safesint_type_name_c *symbol) {s4o.print("SAFESINT");    return NULL;}
   422 void *visit(safelint_type_name_c *symbol)    {s4o.print("SAFELINT");    return NULL;}
   422 void *visit(    safeint_type_name_c *symbol) {s4o.print("SAFEINT");     return NULL;}
   423 void *visit(safeusint_type_name_c *symbol)   {s4o.print("SAFEUSINT");   return NULL;}
   423 void *visit(   safedint_type_name_c *symbol) {s4o.print("SAFEDINT");    return NULL;}
   424 void *visit(safeuint_type_name_c *symbol)    {s4o.print("SAFEUINT");    return NULL;}
   424 void *visit(   safelint_type_name_c *symbol) {s4o.print("SAFELINT");    return NULL;}
   425 void *visit(safeudint_type_name_c *symbol)   {s4o.print("SAFEUDINT");   return NULL;}
   425 void *visit(  safeusint_type_name_c *symbol) {s4o.print("SAFEUSINT");   return NULL;}
   426 void *visit(safeulint_type_name_c *symbol)   {s4o.print("SAFEULINT");   return NULL;}
   426 void *visit(   safeuint_type_name_c *symbol) {s4o.print("SAFEUINT");    return NULL;}
   427 void *visit(safereal_type_name_c *symbol)    {s4o.print("SAFEREAL");    return NULL;}
   427 void *visit(  safeudint_type_name_c *symbol) {s4o.print("SAFEUDINT");   return NULL;}
   428 void *visit(safelreal_type_name_c *symbol)   {s4o.print("SAFELREAL");   return NULL;}
   428 void *visit(  safeulint_type_name_c *symbol) {s4o.print("SAFEULINT");   return NULL;}
   429 void *visit(safedate_type_name_c *symbol)    {s4o.print("SAFEDATE");    return NULL;}
   429 void *visit(   safereal_type_name_c *symbol) {s4o.print("SAFEREAL");    return NULL;}
   430 void *visit(safetod_type_name_c *symbol)     {s4o.print("SAFETOD");     return NULL;}
   430 void *visit(  safelreal_type_name_c *symbol) {s4o.print("SAFELREAL");   return NULL;}
   431 void *visit(safedt_type_name_c *symbol)      {s4o.print("SAFEDT");      return NULL;}
   431 void *visit(   safedate_type_name_c *symbol) {s4o.print("SAFEDATE");    return NULL;}
   432 void *visit(safebyte_type_name_c *symbol)    {s4o.print("SAFEBYTE");    return NULL;}
   432 void *visit(    safetod_type_name_c *symbol) {s4o.print("SAFETOD");     return NULL;}
   433 void *visit(safeword_type_name_c *symbol)    {s4o.print("SAFEWORD");    return NULL;}
   433 void *visit(     safedt_type_name_c *symbol) {s4o.print("SAFEDT");      return NULL;}
   434 void *visit(safelword_type_name_c *symbol)   {s4o.print("SAFELWORD");   return NULL;}
   434 void *visit(   safebyte_type_name_c *symbol) {s4o.print("SAFEBYTE");    return NULL;}
   435 void *visit(safedword_type_name_c *symbol)   {s4o.print("SAFEDWORD");   return NULL;}
   435 void *visit(   safeword_type_name_c *symbol) {s4o.print("SAFEWORD");    return NULL;}
   436 void *visit(safestring_type_name_c *symbol)  {s4o.print("SAFESTRING");  return NULL;}
   436 void *visit(  safelword_type_name_c *symbol) {s4o.print("SAFELWORD");   return NULL;}
       
   437 void *visit(  safedword_type_name_c *symbol) {s4o.print("SAFEDWORD");   return NULL;}
       
   438 void *visit( safestring_type_name_c *symbol) {s4o.print("SAFESTRING");  return NULL;}
   437 void *visit(safewstring_type_name_c *symbol) {s4o.print("SAFEWSTRING"); return NULL;}
   439 void *visit(safewstring_type_name_c *symbol) {s4o.print("SAFEWSTRING"); return NULL;}
   438 
   440 
   439 /********************************/
   441 /********************************/
   440 /* B.1.3.2 - Generic data types */
   442 /* B.1.3.2 - Generic data types */
   441 /********************************/
   443 /********************************/