diff options
author | s-over-4 | 2023-06-13 21:19:09 -0400 |
---|---|---|
committer | s-over-4 | 2023-06-13 21:19:09 -0400 |
commit | 4b0d75d3dbfb85e10ee70c16000c48cf0de95740 (patch) | |
tree | 03b1a199f8658b0fde7283bdccf698455f2df44c /src/include | |
parent | 11fbe0ec9b8bf51d237fefee9254e68d3b22259b (diff) |
lexer is done. forever.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/lexer.h | 2 | ||||
-rw-r--r-- | src/include/token.h | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/include/lexer.h b/src/include/lexer.h index f9db17e..200be5d 100644 --- a/src/include/lexer.h +++ b/src/include/lexer.h @@ -28,7 +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_collect (lexer_t* lexer, char end_char, int fskip, int lskip, int type); +extern token_t* lexer_collect (lexer_t* lexer, int (*end_char)(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 f05e962..5fe9d35 100644 --- a/src/include/token.h +++ b/src/include/token.h @@ -45,5 +45,11 @@ int char_could_split_keyword(char* character); int char_could_start_int(char* character); int char_can_ignore(char* character); +int token_char_quote(char c); +int token_char_grave(char c); +int token_char_pound(char c); +int token_char_colon(char c); +int token_char_kywrd(char c); + #endif |