diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-18 00:43:50 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-18 00:43:50 -0400 |
| commit | 6f5de04b14b87d5f9f3c65433c13e1bce8892e95 (patch) | |
| tree | 375380801d5b0654e46b5a762993186673b3ff7d | |
| parent | 7e0b1a321466e89e43b9b23463530141355ff87d (diff) | |
Deprecate dead code
| -rw-r--r-- | parse.c | 20 | ||||
| -rw-r--r-- | parse.h | 1 |
2 files changed, 0 insertions, 21 deletions
@@ -2411,24 +2411,4 @@ type_ast_t *parse_type_str(const char *str) { return ast; } -ast_t *parse_expression_str(const char *str) { - file_t *file = spoof_file("<expression>", str); - parse_ctx_t ctx = { - .file=file, - .on_err=NULL, - .next_lambda_id=0, - }; - - const char *pos = file->text; - whitespace(&pos); - ast_t *ast = parse_extended_expr(&ctx, pos); - if (!ast) return ast; - pos = ast->end; - whitespace(&pos); - if (strlen(pos) > 0) { - parser_err(&ctx, pos, pos + strlen(pos), "I couldn't parse this part of the expression"); - } - return ast; -} - // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 @@ -7,7 +7,6 @@ #include "ast.h" type_ast_t *parse_type_str(const char *str); -ast_t *parse_expression_str(const char *str); ast_t *parse_file(const char *path, jmp_buf *on_err); // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
