/* * Quark lexer (lexical analyzer). * Turns source code into tokens. * Copyright (c) 2023-2024, Quinn Stephens and the OSMORA team. * Provided under the BSD 3-Clause license. */ #ifndef _LEXER_H #define _LEXER_H #include "lexer/token.h" struct lexer { char *pos; char *line_start; int line; }; void lexer_next(struct lexer *ctx, struct token *tok); void lexer_init(struct lexer *ctx, char *source); #endif /* !_LEXER_H */