blob: 28ee25b9f1bd419789e4ed9f60f6c78696caeb12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// This file defines how to compile optionals and null
#pragma once
#include "../ast.h"
#include "../environment.h"
#include "../stdlib/datatypes.h"
#include "../types.h"
Text_t optional_into_nonnone(type_t *t, Text_t value);
Text_t promote_to_optional(type_t *t, Text_t code);
Text_t compile_none(type_t *t);
Text_t check_none(type_t *t, Text_t value);
Text_t compile_non_optional(env_t *env, ast_t *ast);
|