stage3/print_datatypes_error.cc
changeset 552 3c39d80fdede
parent 551 a75e3aea98ff
child 558 9273dfc5fa7c
equal deleted inserted replaced
551:a75e3aea98ff 552:3c39d80fdede
    29  * Based on the
    29  * Based on the
    30  * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10)
    30  * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10)
    31  *
    31  *
    32  */
    32  */
    33 
    33 
       
    34 /* NOTE: The algorithm implemented here assumes that the symbol_c.candidate_datatype, and the symbol_c.datatype 
       
    35  *       annotations have already been apropriately filled in!
       
    36  *       BEFORE running this visitor, be sure to CALL the fill_candidate_datatypes_c, and the narrow_candidate_datatypes_c visitors!
       
    37  */
       
    38 
    34 
    39 
    35 /*
    40 /*
    36  *  Fill candidate list of data types for all symbols
    41  *  By analysing the candidate datatype lists, as well as the chosen datatype for each expression, determine
       
    42  *  if an datatype error has been found, and if so, print out an error message.
    37  */
    43  */
       
    44 
    38 
    45 
    39 #include "print_datatypes_error.hh"
    46 #include "print_datatypes_error.hh"
    40 #include "datatype_functions.hh"
    47 #include "datatype_functions.hh"
    41 
    48 
    42 #include <typeinfo>
    49 #include <typeinfo>