1 // This file defines how to do type promotions during compilation 2 3 #pragma once 4 5 #include "../ast.h" 6 #include "../environment.h" 7 #include "../types.h" 8 9 bool promote(env_t *env, ast_t *ast, Text_t *code, type_t *actual, type_t *needed); 10 Text_t compile_to_type(env_t *env, ast_t *ast, type_t *t);