absyntax/absyntax.hh
changeset 938 31e3b3f2eff1
parent 936 0f7bcc160568
child 958 7474d2cd1d6e
equal deleted inserted replaced
937:887e7d90445a 938:31e3b3f2eff1
   134      * Otherwise, it points to an object of the apropriate data type (e.g. int_type_name_c, bool_type_name_c, ...)
   134      * Otherwise, it points to an object of the apropriate data type (e.g. int_type_name_c, bool_type_name_c, ...)
   135      */
   135      */
   136     symbol_c *datatype;
   136     symbol_c *datatype;
   137     /* The POU in which the symbolic variable (or structured variable, or array variable, or located variable, - any more?)
   137     /* The POU in which the symbolic variable (or structured variable, or array variable, or located variable, - any more?)
   138      * was declared. This will point to a Configuration, Resource, Program, FB, or Function.
   138      * was declared. This will point to a Configuration, Resource, Program, FB, or Function.
       
   139      * This is set in stage 3 by the datatype analyser algorithm (fill/narrow) for the symbols:
       
   140      *  symbolic_variable_c, array_variable_c, structured_variable_c
   139      */
   141      */
   140     symbol_c *scope;    
   142     symbol_c *scope;    
   141 
   143 
   142     /*** constant folding ***/
   144     /*** constant folding ***/
   143     /* During stage 3 (semantic analysis/checking) we will be doing constant folding.
   145     /* During stage 3 (semantic analysis/checking) we will be doing constant folding.