summaryrefslogtreecommitdiff
path: root/source/lexer.h
diff options
context:
space:
mode:
authornasr <nsrddyn@gmail.com>2026-03-09 19:44:59 +0000
committernasr <nsrddyn@gmail.com>2026-03-09 19:44:59 +0000
commit854d66bb73cd131bda6452aac74aae3d9a77b91a (patch)
treefcc083e70f01aa170df6e0fedb8597f8c9081648 /source/lexer.h
parente5d6d76e803a8ea7ae86cd8302826bbfc6bd57fa (diff)
refactor(main): simplified the project. going towards a single header file project maybe...
Diffstat (limited to 'source/lexer.h')
-rw-r--r--source/lexer.h30
1 files changed, 0 insertions, 30 deletions
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 @@
1#ifndef ENGINE_LEXER_H
2#define ENGINE_LEXER_H
3
4typedef enum token_flags token_flags;
5enum token_flags
6{
7 START_FL = 1 << 1,
8 END_FL = 1 << 2,
9};
10
11
12typedef enum token_type token_type;
13enum token_type
14{
15 // first 255 tokens for ascii characters
16 TOKEN_UNDEFINED = 255,
17 TOKEN_IDENTIFIER,
18 TOKEN_VALUE,
19};
20
21typedef struct token token;
22struct token
23{
24 string8 lexeme;
25 token_type type;
26 token_flags flags;
27 token *next;
28};
29
30#endif /* ENGINE_LEXER_H */