#ifndef __SCC_AST_H__ #define __SCC_AST_H__ #include "ast_def.h" /** * @brief 语义分析回调函数类型 */ typedef void (*scc_sema_callback_t)(void *context, scc_ast_node_type_t node_type, void *node); /** * @brief 语义分析回调集合 */ typedef struct scc_sema_callbacks { scc_sema_callback_t on_decl; scc_sema_callback_t on_stmt; scc_sema_callback_t on_expr; scc_sema_callback_t on_type; void *context; } scc_sema_callbacks_t; #endif /* __SCC_AST_H__ */