1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

LibCpp: Move Cpp::Token to a separate file

This commit is contained in:
Itamar 2021-03-12 12:28:20 +02:00 committed by Andreas Kling
parent 3658c4c567
commit d0b4f9cc0e
5 changed files with 188 additions and 122 deletions

View file

@ -791,17 +791,4 @@ Vector<Token> Lexer::lex()
return tokens;
}
bool Position::operator<(const Position& other) const
{
return line < other.line || (line == other.line && column < other.column);
}
bool Position::operator>(const Position& other) const
{
return !(*this < other) && !(*this == other);
}
bool Position::operator==(const Position& other) const
{
return line == other.line && column == other.column;
}
}