diff options
author | Adam Branes <adam@adam> | 2021-05-02 17:45:58 +0300 |
---|---|---|
committer | Adam Branes <adam@adam> | 2021-05-02 17:45:58 +0300 |
commit | a3e36c1918e63761dfc4d2221cca3636b98e93aa (patch) | |
tree | 143722876a02156b0b423de6248298b5cf8c0707 /lexer.c | |
download | MEGATRON-a3e36c1918e63761dfc4d2221cca3636b98e93aa.tar.gz |
initial housekeeping done
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 |