blob: d30aaefb5e5a7c0198e00dbba9f592f30c03069b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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_optional(env_t *env, ast_t *ast);
Text_t compile_non_optional(env_t *env, ast_t *ast);
|