X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=lexer.h;h=34d965d7c5dba0037f9fdf2f0ac66fdf3bfc3c42;hb=0e674539be8e3f8453a81f0ba6f463f3d098075e;hp=f22f4450027e02e439ee09d1651a4833b288870f;hpb=d5e8df5885f97ea65839f8970b8697549c207610;p=cparser diff --git a/lexer.h b/lexer.h index f22f445..34d965d 100644 --- a/lexer.h +++ b/lexer.h @@ -4,8 +4,18 @@ #include "symbol_table_t.h" #include "token_t.h" -typedef struct lexer_t lexer_t; +extern token_t lexer_token; -void lexer_next_token(lexer_t *lexer, token_t *token); +void lexer_next_token(void); + +/* for debugging */ +void lexer_next_preprocessing_token(void); + +void init_lexer(void); +void exit_lexer(void); + +void lexer_open_stream(FILE *stream, const char *input_name); + +const char *concat_strings(const char *string1, const char *string2); #endif