diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-09 16:27:54 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-09 16:27:54 -0500 |
| commit | 898bee15817573b5ab865a1dae7e52da310affa8 (patch) | |
| tree | b8531a828190997a63a1e1ef32f4aa568304e61c /environment.h | |
| parent | 7a4f2e73addf6dfcde2a6b17b62b961608e556a0 (diff) | |
Introduce a `Match` struct to represent pattern matching results, which
improves the usability of a lot of the APIs. Also bugfix some issues
with ranges.
Diffstat (limited to 'environment.h')
| -rw-r--r-- | environment.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/environment.h b/environment.h index a579dbdd..d0427a9b 100644 --- a/environment.h +++ b/environment.h @@ -80,6 +80,7 @@ void set_binding(env_t *env, const char *name, binding_t *binding); binding_t *get_namespace_binding(env_t *env, ast_t *self, const char *name); #define code_err(ast, ...) compiler_err((ast)->file, (ast)->start, (ast)->end, __VA_ARGS__) extern type_t *TEXT_TYPE; +extern type_t *MATCH_TYPE; extern type_t *RANGE_TYPE; extern type_t *RNG_TYPE; extern type_t *THREAD_TYPE; |
