More work on getting parsing to be functional

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2025-01-25 19:25:14 +01:00
parent e191173e7b
commit b61005bcaa
16 changed files with 855 additions and 400 deletions
+6 -2
View File
@@ -1,5 +1,5 @@
/// AUTOGENERATED COPYRIGHT HEADER START
// Copyright (C) 2017-2024 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
// Copyright (C) 2017-2025 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
// AUTOGENERATED COPYRIGHT HEADER END
#pragma once
#include <cinttypes>
@@ -21,6 +21,7 @@ namespace blitz {
std::pair<uint64_t, uint64_t> location;
std::string text;
enum class variant : uint64_t {
NONE, // There is no token here.
UNKNOWN, // We have absolutely no fucking clue.
ENDOFFILE, // End of the file.
NEWLINE, // New Line.
@@ -48,7 +49,7 @@ namespace blitz {
std::pair<uint64_t, uint64_t> _location;
blitz::token _current;
blitz::token _override;
blitz::token _next;
public:
~lexer();
@@ -69,5 +70,8 @@ namespace blitz {
* The current token will remain in-tact.
*/
blitz::token peek();
public:
std::filesystem::path file();
};
} // namespace blitz