@@ -79,15 +79,14 @@ extern "C"
7979 /** @details Units may be separated as they are special cases with interface and implementation */
8080 typedef struct s_ps_ast_block
8181 {
82- PS_AST_NODE_COMMON ps_identifier name ; /** @brief Every block has a name */
83- struct s_ps_ast_block * parent ; /** @brief Parent block, NULL for PROGRAM */
84- size_t n_vars ; /** @brief Number of variables to allocate at startup */
85- ps_symbol_table * symbols ; /** @brief Constants, types, variables, procedures and functions */
86- size_t n_executables ; /** @brief exactly 1 for procedure and function, 0 or more otherwise */
87- struct s_ps_ast_block * * executables ; /** @brief declarations of procedures and functions */
88- ps_ast_statement_list * statement_list ; /** @brief Statements for this block */
89- ps_formal_signature * signature ; /** @brief Only for procedures and functions, NULL otherwise */
90- ps_symbol * result_type ; /** @brief Only for functions, NULL otherwise */
82+ PS_AST_NODE_COMMON
83+ ps_identifier name ; /** @brief Every block has a name */
84+ struct s_ps_ast_block * parent ; /** @brief Parent block, NULL for PROGRAM */
85+ size_t n_vars ; /** @brief Number of variables to allocate at startup */
86+ ps_symbol_table * symbols ; /** @brief Constants, types, variables, procedures and functions */
87+ ps_ast_statement_list * statement_list ; /** @brief Statements for this block */
88+ ps_formal_signature * signature ; /** @brief Only for procedures and functions, NULL otherwise */
89+ ps_symbol * result_type ; /** @brief Only for functions, NULL otherwise */
9190 } ps_ast_block ;
9291
9392 /** @brief IF statement */
0 commit comments