aboutsummaryrefslogtreecommitdiff
path: root/src/token.c
blob: da38b9a5c830f569d92115935897d9770b77670b (plain) (blame)
1
2
3
4
5
6
7
8
9
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;
}