aboutsummaryrefslogtreecommitdiff
path: root/src/token.c
blob: 3021a64535689d73bd71f2413e5fd5cbda626320 (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;
}