diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-12-26 17:31:33 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-12-26 17:31:33 -0500 |
| commit | acd3f2d39edb2cc306632a19a1eb4b7b0ba02836 (patch) | |
| tree | 60a05a85ee2ff987991da84666ba941edde3f3af /compile.c | |
| parent | 32cbf7b7c8d9634863af6be9defc8a02c780ff82 (diff) | |
Add text indexing
Diffstat (limited to 'compile.c')
| -rw-r--r-- | compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3700,6 +3700,8 @@ CORD compile(env_t *env, ast_t *ast) } else { code_err(indexing->index, "This table doesn't have a value type or a default value"); } + } else if (container_t->tag == TextType) { + return CORD_all("Text$cluster(", compile_to_pointer_depth(env, indexing->indexed, 0, false), ", ", compile_to_type(env, indexing->index, Type(BigIntType)), ")"); } else { code_err(ast, "Indexing is not supported for type: %T", container_t); } |
