From 313c996edde66e1c095f2b1b3600c984bc0cad25 Mon Sep 17 00:00:00 2001 From: Bobby Lucero Date: Tue, 5 Aug 2025 01:42:38 -0400 Subject: [PATCH] Cross platform fixes --- headers/Value.h | 2 +- headers/bob.h | 2 +- source/Lexer.cpp | 2 +- source/bob.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/headers/Value.h b/headers/Value.h index 13fcc93..b606d33 100644 --- a/headers/Value.h +++ b/headers/Value.h @@ -13,7 +13,7 @@ class Function; class BuiltinFunction; // Type tags for the Value union -enum ValueType : uint8_t { +enum ValueType { VAL_NONE, VAL_NUMBER, VAL_BOOLEAN, diff --git a/headers/bob.h b/headers/bob.h index eaa113d..5d92767 100644 --- a/headers/bob.h +++ b/headers/bob.h @@ -8,7 +8,7 @@ #include "../headers/helperFunctions/ShortHands.h" #include "../headers/ErrorReporter.h" -#define VERSION "0.0.1" +#define VERSION "0.0.2" class Bob { diff --git a/source/Lexer.cpp b/source/Lexer.cpp index 821318f..945c680 100644 --- a/source/Lexer.cpp +++ b/source/Lexer.cpp @@ -421,7 +421,7 @@ std::vector Lexer::Tokenize(std::string source){ } } - tokens.push_back({END_OF_FILE, "eof", line}); + tokens.push_back({END_OF_FILE, "eof", line, column}); return tokens; } diff --git a/source/bob.cpp b/source/bob.cpp index 53cca32..0d2d9f6 100644 --- a/source/bob.cpp +++ b/source/bob.cpp @@ -33,7 +33,7 @@ void Bob::runPrompt() { this->interpreter = msptr(Interpreter)(true); - cout << "Bob v" << VERSION << ", 2023" << endl; + cout << "Bob v" << VERSION << ", 2025" << endl; for(;;) { string line;