summaryrefslogtreecommitdiff
path: root/source/lexer.h
diff options
context:
space:
mode:
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 */