diff --git a/src/headers/lex.hpp b/src/headers/lex.hpp index d73e65e..bb418e5 100644 --- a/src/headers/lex.hpp +++ b/src/headers/lex.hpp @@ -23,7 +23,7 @@ struct tok { type toktype; std::string toktext; unsigned long line; - tok(): toktype(UNEXPECTED), toktext(), line(0) {}; + tok() = delete; tok(const type& Type, std::string_view Text, const decltype(line)& line = 0): toktype(Type), toktext(Text), line(line) {} explicit tok(const type& Type, const decltype(line)& line = 0): tok(Type, std::string(1, Type), line) {}; friend std::ostream& operator<<(std::ostream& output, const tok& it) { return output << it.toktext; }