sem.h (543B)
1 #ifndef KIT_C_SEM_H 2 #define KIT_C_SEM_H 3 4 #include "type/type.h" 5 6 typedef struct CSemCheck { 7 u8 ok; 8 const char* message; 9 } CSemCheck; 10 11 CSemCheck c_sem_check_assignment(Pool*, const Type* lhs, const Type* rhs); 12 CSemCheck c_sem_check_compound_assignment(Pool*, const Type* lhs, 13 const Type* rhs, int op); 14 CSemCheck c_sem_check_redeclaration(Pool*, const Type* old_type, 15 const Type* new_type, 16 const Type** composite_out); 17 18 #endif