diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-24 17:07:41 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-24 17:07:41 -0400 |
| commit | 476bacc27671de92e8fdbc5b2a904bbf8bc80377 (patch) | |
| tree | 035183cccc5aa42cb5885dbbccdb6f9cf4f2aa23 /src/compile/text.h | |
| parent | e4d080f598b8528d5200deccde279ff02ac5750e (diff) | |
More splitting out into separate files.
Diffstat (limited to 'src/compile/text.h')
| -rw-r--r-- | src/compile/text.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compile/text.h b/src/compile/text.h index cdee4a5d..80502971 100644 --- a/src/compile/text.h +++ b/src/compile/text.h @@ -2,9 +2,14 @@ #include "../ast.h" #include "../environment.h" #include "../stdlib/datatypes.h" +#include "../stdlib/text.h" +#include "../stdlib/util.h" #include "../types.h" Text_t compile_text_ast(env_t *env, ast_t *ast); Text_t compile_text(env_t *env, ast_t *ast, Text_t color); Text_t compile_text_literal(Text_t literal); Text_t expr_as_text(Text_t expr, type_t *t, Text_t color); + +MACROLIKE Text_t quoted_str(const char *str) { return Text$quoted(Text$from_str(str), false, Text("\"")); } +MACROLIKE Text_t quoted_text(Text_t text) { return Text$quoted(text, false, Text("\"")); } |
