diff options
author | c+1 | 2023-05-04 13:08:33 -0400 |
---|---|---|
committer | c+1 | 2023-05-04 13:08:33 -0400 |
commit | 48f6a2e757ffa49f4a5676e29f5fff935660b6a1 (patch) | |
tree | 943a5e1fc646f012f665dd397c0ebd2354067f2c /src/include | |
parent | 2ac46b8b73896603f6b14d3e52500761c49a3262 (diff) |
HALK HALK HALK
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/lexer.h | 18 | ||||
-rw-r--r-- | src/include/token.h | 6 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/include/lexer.h b/src/include/lexer.h index a20bf8c..e002893 100644 --- a/src/include/lexer.h +++ b/src/include/lexer.h @@ -6,15 +6,15 @@ typedef struct LEXER_STRUC { char c; // current character in content unsigned int i; // index of c char* content; // the code itself -} lexer_T; +} lexer_t; -lexer_T* lexer_init(char* content); -void lexer_next(lexer_T* lexer); -void lexer_pass(lexer_T* lexer); -token_T* lexer_get_next_token(lexer_T* lexer); -token_T* lexer_get_string(lexer_T* lexer); -token_T* lexer_get_id(lexer_T* lexer); -token_T* lexer_next_token(lexer_T* lexer, token_T* token); -char* lexer_get_c_as_string(lexer_T* lexer); +lexer_t* lexer_init(char* content); +void lexer_next(lexer_t* lexer); +void lexer_pass(lexer_t* lexer); +token_t* lexer_get_next_token(lexer_t* lexer); +token_t* lexer_get_string(lexer_t* lexer); +token_t* lexer_get_id(lexer_t* lexer); +token_t* lexer_next_token(lexer_t* lexer, token_t* token); +char* lexer_get_c_as_string(lexer_t* lexer); #endif diff --git a/src/include/token.h b/src/include/token.h index b923734..9bfc4f3 100644 --- a/src/include/token.h +++ b/src/include/token.h @@ -12,13 +12,13 @@ typedef struct TOKEN_STRUC { TOKEN_LBRAK, // '[' TOKEN_RBRAK, // ']' TOKEN_POUND, // '#'' - TOKEN_TILDE, // '~' + TOKEN_tILDE, // '~' TOKEN_QUOTE, // ''' TOKEN_EOF // '\0' } type; char* value; -} token_T; +} token_t; -token_T* token_init(int type, char* value); +token_t* token_init(int type, char* value); #endif |