diff options
Diffstat (limited to 'lexer.c')
-rw-r--r-- | lexer.c | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,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 |