From a3e36c1918e63761dfc4d2221cca3636b98e93aa Mon Sep 17 00:00:00 2001 From: Adam Branes Date: Sun, 2 May 2021 17:45:58 +0300 Subject: initial housekeeping done --- lexer.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lexer.c (limited to 'lexer.c') diff --git a/lexer.c b/lexer.c new file mode 100644 index 0000000..4ade447 --- /dev/null +++ b/lexer.c @@ -0,0 +1,25 @@ +#ifndef LEXER_C +#define LEXER_C +#include + +/* + * 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 -- cgit v1.2.3