code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(10 lines)
1 // This file defines how to do type promotions during compilation
3 #pragma once
5 #include "../ast.h"
6 #include "../environment.h"
7 #include "../types.h"
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);