mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibCpp: Move Cpp::Token to a separate file
This commit is contained in:
parent
3658c4c567
commit
d0b4f9cc0e
5 changed files with 188 additions and 122 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue