Cross platform fixes
This commit is contained in:
parent
72a31b28af
commit
313c996edd
@ -13,7 +13,7 @@ class Function;
|
|||||||
class BuiltinFunction;
|
class BuiltinFunction;
|
||||||
|
|
||||||
// Type tags for the Value union
|
// Type tags for the Value union
|
||||||
enum ValueType : uint8_t {
|
enum ValueType {
|
||||||
VAL_NONE,
|
VAL_NONE,
|
||||||
VAL_NUMBER,
|
VAL_NUMBER,
|
||||||
VAL_BOOLEAN,
|
VAL_BOOLEAN,
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
#include "../headers/helperFunctions/ShortHands.h"
|
#include "../headers/helperFunctions/ShortHands.h"
|
||||||
#include "../headers/ErrorReporter.h"
|
#include "../headers/ErrorReporter.h"
|
||||||
|
|
||||||
#define VERSION "0.0.1"
|
#define VERSION "0.0.2"
|
||||||
|
|
||||||
class Bob
|
class Bob
|
||||||
{
|
{
|
||||||
|
|||||||
@ -421,7 +421,7 @@ std::vector<Token> Lexer::Tokenize(std::string source){
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
tokens.push_back({END_OF_FILE, "eof", line});
|
tokens.push_back({END_OF_FILE, "eof", line, column});
|
||||||
return tokens;
|
return tokens;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,7 @@ void Bob::runPrompt()
|
|||||||
{
|
{
|
||||||
this->interpreter = msptr(Interpreter)(true);
|
this->interpreter = msptr(Interpreter)(true);
|
||||||
|
|
||||||
cout << "Bob v" << VERSION << ", 2023" << endl;
|
cout << "Bob v" << VERSION << ", 2025" << endl;
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
string line;
|
string line;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user