diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-24 18:13:53 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-24 18:13:53 -0400 |
| commit | e56f4b447e785a7b0ad95d9f2c21e36e3d2bed2c (patch) | |
| tree | 786f56793781977d9dbf899fd59e2f904dee481e /src/compile/whens.h | |
| parent | 222fbcd0027f085c48e93c6e70445699eec79d96 (diff) | |
Split 'when' into its own file
Diffstat (limited to 'src/compile/whens.h')
| -rw-r--r-- | src/compile/whens.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compile/whens.h b/src/compile/whens.h new file mode 100644 index 00000000..473124d5 --- /dev/null +++ b/src/compile/whens.h @@ -0,0 +1,9 @@ +// This file defines how to compile 'when' statements/expressions +#pragma once + +#include "../ast.h" +#include "../environment.h" +#include "../stdlib/datatypes.h" + +Text_t compile_when_statement(env_t *env, ast_t *ast); +Text_t compile_when_expression(env_t *env, ast_t *ast); |
