diff options
author | thing1 <thing1@Thing1LAP.my.domain> | 2024-09-05 18:20:24 +0100 |
---|---|---|
committer | thing1 <thing1@Thing1LAP.my.domain> | 2024-09-05 18:20:24 +0100 |
commit | 9b83439d9d0204a5092772ae46ef43cea42dbc7c (patch) | |
tree | 1553eb58a8dbaa2f12bfa286880579b6b84edbda /comp/lucas-standen-NEA/code2/tokenizer.c | |
parent | c818366f33527bbd0d23d7ff983bb1eaf82fa34b (diff) |
added some nice stuff
Diffstat (limited to 'comp/lucas-standen-NEA/code2/tokenizer.c')
-rw-r--r-- | comp/lucas-standen-NEA/code2/tokenizer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/comp/lucas-standen-NEA/code2/tokenizer.c b/comp/lucas-standen-NEA/code2/tokenizer.c index 10c70a7..6275a7a 100644 --- a/comp/lucas-standen-NEA/code2/tokenizer.c +++ b/comp/lucas-standen-NEA/code2/tokenizer.c @@ -38,6 +38,11 @@ int readuntil(char *src, char c, char *dst){ // returns how many chars read, wil astNode *tokenize(char *line){ // asume the first set of brackets have been stripped astNode *head = malloc(sizeof(astNode)); + head->func = NULL; + for (int i = 0; i < 8; i++){ + head->args[i] = NULL; + head->children[i] = NULL; + } int depth = 0; int argCount = 0; |