From 854d66bb73cd131bda6452aac74aae3d9a77b91a Mon Sep 17 00:00:00 2001 From: nasr Date: Mon, 9 Mar 2026 19:44:59 +0000 Subject: refactor(main): simplified the project. going towards a single header file project maybe... --- source/lexer.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 source/lexer.h (limited to 'source/lexer.h') diff --git a/source/lexer.h b/source/lexer.h deleted file mode 100644 index c950a58..0000000 --- a/source/lexer.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef ENGINE_LEXER_H -#define ENGINE_LEXER_H - -typedef enum token_flags token_flags; -enum token_flags -{ - START_FL = 1 << 1, - END_FL = 1 << 2, -}; - - -typedef enum token_type token_type; -enum token_type -{ - // first 255 tokens for ascii characters - TOKEN_UNDEFINED = 255, - TOKEN_IDENTIFIER, - TOKEN_VALUE, -}; - -typedef struct token token; -struct token -{ - string8 lexeme; - token_type type; - token_flags flags; - token *next; -}; - -#endif /* ENGINE_LEXER_H */ -- cgit v1.3