aboutsummaryrefslogtreecommitdiff
path: root/src/parse/expressions.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-25 01:29:58 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-25 01:29:58 -0400
commitbfb829b1fe85911a84454d6da1948910f42b2c5c (patch)
treebc9d63175ff50bd230ae872a9aaad83cdebfd10b /src/parse/expressions.h
parent6004f8eabb1a41e735a0e28d9b9b93c516526fb7 (diff)
Rename parse -> expressions
Diffstat (limited to 'src/parse/expressions.h')
-rw-r--r--src/parse/expressions.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/parse/expressions.h b/src/parse/expressions.h
new file mode 100644
index 00000000..c7c97f24
--- /dev/null
+++ b/src/parse/expressions.h
@@ -0,0 +1,22 @@
+// Parsing logic
+#pragma once
+
+#include "../ast.h"
+#include "context.h"
+
+ast_t *parse_expr_str(const char *str);
+
+ast_t *parse_bool(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_expr(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_extended_expr(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_heap_alloc(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_negative(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_not(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_none(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_parens(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_reduction(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_stack_reference(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_term(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_term_no_suffix(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_var(parse_ctx_t *ctx, const char *pos);
+ast_t *parse_deserialize(parse_ctx_t *ctx, const char *pos);