diff options
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 |