From cb3065c34756a70cb6006fc25777ce3e720ff1a8 Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Sun, 13 Apr 2025 18:16:19 +0000
Subject: [PATCH] implement variable contexts, add function body store and parsing

---
 src/Lexer.hpp |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/Lexer.hpp b/src/Lexer.hpp
index d374fa1..5648ab7 100644
--- a/src/Lexer.hpp
+++ b/src/Lexer.hpp
@@ -38,6 +38,19 @@
     Token variableDeclaration(Variables::Type type);
     void  matchAndConsume(const std::string & sequence, bool caseSensitive = true);
 
+    // create token methods
+    Token createToken(TokenType type, const std::string & lexeme) const;
+    Token createSingleCharToken(TokenType type, const std::string & lexeme);
+    Token createUnknownToken(const std::string & lexeme) const;
+    Token createErrorToken(const std::string & lexeme) const;
+    Token stringToken();
+    Token numberToken();
+    Token identifierToken();
+    Token variableToken();
+    Token commentToken();
+    Token keywordOrIdentifierToken();
+    Token variableDeclarationToken(Variables::Type type);
+
     // validate number types from string
     template <typename Numeric> static bool is_number(const std::string & s) {
         Numeric n;

--
Gitblit v1.9.3