aboutsummaryrefslogtreecommitdiff
path: root/include/grecs/tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/grecs/tree.h')
-rw-r--r--include/grecs/tree.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/grecs/tree.h b/include/grecs/tree.h
index 2fb26dd..f13a74b 100644
--- a/include/grecs/tree.h
+++ b/include/grecs/tree.h
@@ -64,8 +64,16 @@ grecs_match_buf_t grecs_match_buf_create(int argc, char **argv,
struct grecs_node *grecs_match_buf_first(struct grecs_match_buf *buf,
struct grecs_node *tree);
struct grecs_node *grecs_match_buf_get_node(grecs_match_buf_t buf);
size_t grecs_match_buf_get_args(grecs_match_buf_t buf, char ***argv);
struct grecs_node *grecs_match_buf_get_root(grecs_match_buf_t buf);
void grecs_match_buf_set_root(grecs_match_buf_t buf, struct grecs_node *root);
+
+/* Assertions */
+int grecs_assert_value_type(const grecs_value_t *value, int type,
+ grecs_locus_t *refloc);
+int grecs_assert_scalar_stmt(grecs_locus_t *locus,
+ enum grecs_callback_command cmd);
+int grecs_assert_node_value_type(enum grecs_callback_command cmd,
+ grecs_node_t *node, int type);
#endif

Return to:

Send suggestions and report system problems to the System administrator.