aboutsummaryrefslogtreecommitdiff
path: root/src/doer.c
blob: 21a1045884bba2ef94f88d71e2950362e7f095b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#include "include/doer.h"


/* Creates a new doer from a tree.  */
doer_t* doer_init(tree_t* tree) {
   doer_t* doer;

   doer = emalloc(sizeof(doer_t));

   doer->tree = tree;

   return doer;
}

/*
   Destroys a doer.
   - Does not destroy the `tree`.
*/
void doer_destroy(doer_t* doer) {
   free(doer);
}


void doer_do_blin_print(char* s) {

}

void doer_do_block(tree_t* tree) {
   tree->data.block.val 
}

void doer_do_expr(tree_t* tree) {
   /* For now, assume the only expression that exists is a call to print(). */

   

}

void doer_do_lint(tree_t* tree) {

}

void doer_do_lstr(tree_t* tree) {

}

void doer_do_tag(tree_t* tree) {

}

void doer_do_darg(tree_t* tree) {

}

void doer_do_carg(tree_t* tree) {

}

void doer_do_def(tree_t* tree) {

}

void doer_do_call(tree_t* tree) {

}