aboutsummaryrefslogtreecommitdiff
path: root/src/token.c
diff options
context:
space:
mode:
authorc+12023-05-03 12:42:57 -0400
committerc+12023-05-03 12:42:57 -0400
commit640b395ef000dc20056ec04d6b5ff5d488baf2aa (patch)
tree1b4c691fb8e6d349dfe12a9eefe180aa1e7789fb /src/token.c
parent9d981a2597dca067572ee16d1a3f6e99f9c6ddd6 (diff)
HALK HALK HALK
Diffstat (limited to 'src/token.c')
-rw-r--r--src/token.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/token.c b/src/token.c
index e69de29..da38b9a 100644
--- a/src/token.c
+++ b/src/token.c
@@ -0,0 +1,10 @@
+#include "include/token.h"
+#include <stdlib.h>
+
+token_T* token_init(int type, char* val) {
+ token_T* token = calloc(1, sizeof(struct TOKEN_STRUC));
+ token->type = type;
+ token->value = val;
+
+ return token;
+}