diff options
Diffstat (limited to 'src/token.c')
-rw-r--r-- | src/token.c | 10 |
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; +} |