diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-24 17:27:40 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-24 17:27:40 -0400 |
| commit | 559d7f24cf5d3a129fdf7b6cc7c75ecb6ca5a8c5 (patch) | |
| tree | 2f67db86daa970ca45e570b923e0229bc112e58f /src/compile/optionals.h | |
| parent | 1e21c4b71afd09e642a630c414addcb7e42a9129 (diff) | |
Move optional stuff into its file
Diffstat (limited to 'src/compile/optionals.h')
| -rw-r--r-- | src/compile/optionals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compile/optionals.h b/src/compile/optionals.h index f8d18b86..2a93d53e 100644 --- a/src/compile/optionals.h +++ b/src/compile/optionals.h @@ -1,3 +1,5 @@ +#include "../ast.h" +#include "../environment.h" #include "../stdlib/datatypes.h" #include "../types.h" @@ -5,3 +7,5 @@ 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); |
