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 std::string toktext;
|
||||||
const unsigned long line = 0;
|
const unsigned long line = 0;
|
||||||
tok(type Type, std::string_view Text, decltype(line) line): toktype(Type), toktext(Text), line(line) {}
|
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) {};
|
explicit tok(type Type, decltype(line) line): tok(Type, std::string(1, Type), line) {};
|
||||||
inline tok(type Type, decltype(line) line): tok(Type, Type, line) {};
|
|
||||||
friend std::ostream& operator<<(std::ostream& output, const tok& it) { return output << it.toktext; }
|
friend std::ostream& operator<<(std::ostream& output, const tok& it) { return output << it.toktext; }
|
||||||
};
|
};
|
||||||
std::vector<tok> lex(const std::string& in);
|
std::vector<tok> lex(const std::string& in);
|
||||||
|
|
Loading…
Reference in New Issue