#ifndef CMONKEY_LEXER_H #define CMONKEY_LEXER_H #include "slice.h" #include "token.h" #include struct lexer { const char *input; size_t len; struct slice word; }; struct lexer *lexer_new(); void lexer_reset(struct lexer *, const char *input); void lexer_read_char(struct lexer *); struct token lexer_next_token(struct lexer *); void lexer_destroy(struct lexer *); #endif