#ifndef INCLUDED_BNF_LEXER_H #define INCLUDED_BNF_LEXER_H #include #include "utils.h" #include "bnf-lexeme.h" struct bnf_lexer { struct string_view sv; const char *cursor; const char *filename; }; extern struct bnf_lexer bnf_lexer_from_string_view (struct string_view, const char *filename); extern struct bnf_lexer bnf_lexer_from_filename (const char *); extern struct bnf_lexeme bnf_lexer_next_lexeme (struct bnf_lexer *); #endif // INCLUDED_BNF_LEXER_H