diff options
author | s-over-4 | 2023-06-10 18:30:31 -0400 |
---|---|---|
committer | s-over-4 | 2023-06-10 18:30:31 -0400 |
commit | c0a2fd32d69afa8c9c5b31fa763c81fffe7f99f6 (patch) | |
tree | d6e72420439c3fded635092d903702a752043ecc /src/include | |
parent | e55519fae1a4053eb7f76dbaa686353c64a8cd9f (diff) |
ah
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/lexer.h | 3 | ||||
-rw-r--r-- | src/include/token.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/include/lexer.h b/src/include/lexer.h index a86f5bb..853a35c 100644 --- a/src/include/lexer.h +++ b/src/include/lexer.h @@ -28,8 +28,7 @@ extern char* lexer_get_c_as_string (lexer_t* lexer); // collectors extern token_t* lexer_get_arr (lexer_t* lexer); -extern token_t* lexer_get_str (lexer_t* lexer); -extern token_t* lexer_get_com (lexer_t* lexer); +extern token_t* lexer_collect (lexer_t* lexer, char end_char, int fskip, int lskip, int type); // special def collectors extern token_t* lexer_get_directive (lexer_t* lexer); diff --git a/src/include/token.h b/src/include/token.h index 8964ccd..b58233d 100644 --- a/src/include/token.h +++ b/src/include/token.h @@ -10,7 +10,7 @@ #define TOKEN_CHAR_FIRST_CHAR_INT "0123456789" typedef struct TOKEN_STRUC { - enum { + enum TOKEN_ENUM { TOKEN_KEYWORD, // keyword TOKEN_PRIM_STR_DELIM, // ' TOKEN_PRIM_STR, // 'string' |