aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
blob: 300f3de1710d5003677babd20e940d4c383ba1ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "include/parser.h"

parser_t* parser_init(token_t* token) {
   parser_t* parser;

   parser = emalloc(sizeof(struct PARSER));
   parser->token = token;
   parser->tree = NULL;

   return parser;
}

void parser_destroy(parser_t* parser) {
   free(parser);
}