2025-01-25 Latest Changes

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2025-01-25 16:27:50 +01:00
parent f0ffbafee1
commit e191173e7b
18 changed files with 182 additions and 759 deletions
+6 -2
View File
@@ -1,6 +1,7 @@
// AUTOGENERATED COPYRIGHT HEADER START
// Copyright (C) 2017-2024 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
// AUTOGENERATED COPYRIGHT HEADER END
#include <clocale>
#include <iostream>
#include "compiler.hpp"
#include "error.hpp"
@@ -8,6 +9,8 @@
int main(int argc, char** argv)
{
std::setlocale(LC_ALL, "en_US.UTF-8");
std::cout << argv[1] << std::endl;
blitz::lexer lex(argv[1]);
@@ -32,6 +35,7 @@ int main(int argc, char** argv)
case blitz::token::variant::NEWLINE:
std::cout << std::endl;
break;
default:
std::cout << token.to_string() << " ";
break;
@@ -47,7 +51,7 @@ int main(int argc, char** argv)
std::cout << ex.what() << std::endl;
}
std::cin.get();
//std::cin.get();
return 0;
}
@@ -86,7 +90,7 @@ int main(int argc, char** argv)
// Field Bla
// End Type
// Local myName.myName = New myName
// Print Int(myName) ; <- Prints the address of the object contained in myName.
// Print Int(myName) ; <- Prints the address of the object contained in myName.
// ```
//
// As this is a Basic language, there is no concept of undefined or uninitialized anything. Every behavior is well defined.