start implimenting a parser

This commit is contained in:
2025-05-27 17:19:09 +01:00
parent 3dedd7f348
commit 43bc7663fc
14 changed files with 241 additions and 195 deletions

View File

@@ -1,5 +1,7 @@
#include "lexer/lexer.h"
#include "parser/parser.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@@ -46,9 +48,11 @@ int main() {
};
lexer(state);
free(content);
for (int i = 0; i<tokenStruct->count; i++) {
printf("%d\n", tokenStruct->tokens[i].type);
}
TaggedValueStruct taggedValueStruct = init_TaggedValueStruct();
parser(&taggedValueStruct, tokenStruct, false);
free_tokens(tokenStruct);
return 0;
}