aboutsummaryrefslogtreecommitdiffstats
path: root/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c25
1 files changed, 25 insertions, 0 deletions
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 <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