Split up some code to more in line with what its actually doing.

This commit is contained in:
2022-01-27 18:20:09 +00:00
parent f88613a160
commit 375fd46045
5 changed files with 202 additions and 185 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
#include <stdio.h>
#include <string.h>
#include "../includes/list.h"
#include "../includes/tokenizer.h"
#include "../includes/lexer.h"
typedef struct {
char *opcode;
@@ -22,7 +22,7 @@ int main(int argc, char* args[]) {
}
// char* test = "user_id";
// printf("Key for '%s' is %d for size %d\n", test, GetKeyIndex(test, HASHTABLEDEFAULTSIZE), HASHTABLEDEFAULTSIZE);
TokenizeString(args[1]);
GenerateTokensFromFile(args[1]);
// for (int i = 1; i < argc; i++) {
// input_files[i - 1] = args[i];