Remove a useless constructor in lex.hpp
This commit is contained in:
parent
f2322ea1bf
commit
cfbebed895
|
@ -21,8 +21,7 @@ struct tok {
|
|||
const std::string toktext;
|
||||
const unsigned long line = 0;
|
||||
tok(type Type, std::string_view Text, decltype(line) line): toktype(Type), toktext(Text), line(line) {}
|
||||
explicit tok(type Type, const char& character, decltype(line) line): tok(Type, std::string(1, character), line) {};
|
||||
inline tok(type Type, decltype(line) line): tok(Type, Type, line) {};
|
||||
explicit tok(type Type, decltype(line) line): tok(Type, std::string(1, Type), line) {};
|
||||
friend std::ostream& operator<<(std::ostream& output, const tok& it) { return output << it.toktext; }
|
||||
};
|
||||
std::vector<tok> lex(const std::string& in);
|
||||
|
|
Loading…
Reference in New Issue