aboutsummaryrefslogtreecommitdiffstats
path: root/lexer.c
blob: 4ade4479a8011064d2cac2329a3fc3e109cb4c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef LEXER_C
#define LEXER_C
#include <lexer.h>

/*
 *	placeholder very slow lexer that I will probabbly not replace 
 */
void lex(struct Queue *token_destination,struct Source *src,struct Translation_Data *translation_data)
{
}
struct token* get_token(char *data,size_t size)
{
	struct token *ret;
	ret=malloc(sizeof(struct token));
	ret->data=data;
	ret->size=size;

	return ret;
}
void delete_token(struct token *token)
{
	free(token);
}

#endif