From f98c8330820d7d1a043d510fd46b31169dad3ac3 Mon Sep 17 00:00:00 2001 From: c Date: Thu, 7 Dec 2023 11:25:17 -0500 Subject: Defined the doer. --- src/include/doer.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/include/doer.h (limited to 'src/include') diff --git a/src/include/doer.h b/src/include/doer.h new file mode 100644 index 0000000..f349749 --- /dev/null +++ b/src/include/doer.h @@ -0,0 +1,27 @@ +#ifndef DOER_H +#define DOER_H + +#include "util.h" +#include "tree.h" + +/* Doer? I 'ardly know 'er! */ +typedef struct DOER { + tree_t* tree; +} doer_t; + +doer_t* doer_init(tree_t* tree); +void doer_destroy(doer_t* doer); + +void doer_do_blin_print(char* s); + +tree_t* doer_do_block(doer_t* doer); +tree_t* doer_do_expr(doer_t* doer); +tree_t* doer_do_lint(doer_t* doer); +tree_t* doer_do_lstr(doer_t* doer); +tree_t* doer_do_tag(doer_t* doer); +tree_t* doer_do_darg(doer_t* doer); +tree_t* doer_do_carg(doer_t* doer); +tree_t* doer_do_def(doer_t* doer); +tree_t* doer_do_call(doer_t* doer); + +#endif -- cgit v1.2.3