More work on getting parsing to be functional
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user