llm
Download
10 lines 295 BCModified 2025-08-25 raw
12345678910
// This file defines how to do type promotions during compilation

#pragma once

#include "../ast.h"
#include "../environment.h"
#include "../types.h"

bool promote(env_t *env, ast_t *ast, Text_t *code, type_t *actual, type_t *needed);
Text_t compile_to_type(env_t *env, ast_t *ast, type_t *t);