absyntax_utils/absyntax_utils.cc
changeset 971 8aee27d46208
parent 909 8b2a31dea131
child 972 bc90dd4bbf4f
equal deleted inserted replaced
970:0ede7ca157e2 971:8aee27d46208
   106 /* A symbol table with all globally declared functions... */
   106 /* A symbol table with all globally declared functions... */
   107 function_declaration_c null_symbol1(NULL,NULL,NULL,NULL);
   107 function_declaration_c null_symbol1(NULL,NULL,NULL,NULL);
   108 dsymtable_c<function_declaration_c *, &null_symbol1> function_symtable;
   108 dsymtable_c<function_declaration_c *, &null_symbol1> function_symtable;
   109 
   109 
   110 /* A symbol table with all globally declared functions block types... */
   110 /* A symbol table with all globally declared functions block types... */
   111 function_block_declaration_c null_symbol2(NULL,NULL,NULL);
   111 symtable_c<function_block_declaration_c *> function_block_type_symtable;
   112 symtable_c<function_block_declaration_c *, &null_symbol2> function_block_type_symtable;
       
   113 
   112 
   114 /* A symbol table with all globally declared program types... */
   113 /* A symbol table with all globally declared program types... */
   115 program_declaration_c null_symbol3(NULL,NULL,NULL);
   114 symtable_c<program_declaration_c *> program_type_symtable;
   116 symtable_c<program_declaration_c *, &null_symbol3> program_type_symtable;
       
   117 
   115 
   118 /* A symbol table with all user declared type definitions... */
   116 /* A symbol table with all user declared type definitions... */
   119 /* Note that function block types and program types have their
   117 /* Note that function block types and program types have their
   120  * own symbol tables, so do not get placed in this symbol table!
   118  * own symbol tables, so do not get placed in this symbol table!
   121  *
   119  *
   122  * The symbol_c * associated to the value will point to the data type declaration.
   120  * The symbol_c * associated to the value will point to the data type declaration.
   123  */
   121  */
   124 symbol_c null_symbol4;
   122 symtable_c<symbol_c *> type_symtable;
   125 symtable_c<symbol_c *, &null_symbol4> type_symtable;
       
   126 
   123 
   127 
   124 
   128 /***********************************************************************/
   125 /***********************************************************************/
   129 /***********************************************************************/
   126 /***********************************************************************/
   130 /***********************************************************************/
   127 /***********************************************************************/