Add comments to lexer

Signed-off-by: CHatingPython <chatingpython@gmail.com>
This commit is contained in:
CHatingPython
2026-05-25 11:45:14 +02:00
committed by CHatingPython
parent 438288f8f1
commit 535b088f81
3 changed files with 38 additions and 1 deletions
+1 -1
View File
@@ -103,10 +103,10 @@ struct token {
bool operator==(const token& rhs) const {
if (type != rhs.type) return false;
switch (type) {
case token_t::None:
case token_t::Identifier: return value == rhs.value;
case token_t::Keyword: return keyword == rhs.keyword;
case token_t::Integer: return value == rhs.value;
case token_t::None:
case token_t::Lparen:
case token_t::Rparen:
case token_t::Lbrace: