feat(furc/lexer): add integers

This commit is contained in:
2026-08-07 11:59:45 +02:00
parent 79b6b9742d
commit ecdf6944a7
3 changed files with 26 additions and 2 deletions
+2
View File
@@ -93,6 +93,7 @@ struct token {
// Errors:
UnexpectedCharacter,
UnexpectedEOF,
InvalidInteger,
EndOfFile,
} type;
union value {
@@ -198,6 +199,7 @@ struct token {
case token::U64: return os << "u64";
case token::UnexpectedCharacter: return os << "Unexpected character `" << token.value.character << "`";
case token::UnexpectedEOF: return os << "Unexpected End Of File";
case token::InvalidInteger: return os << "Invalid Integer";
case token::EndOfFile: return os << "End Of File";
}