This commit is contained in:
2025-12-21 12:06:55 +11:00
parent 869f71466e
commit d2f295f46a
10 changed files with 1075 additions and 948 deletions

17
src/lexer.h Normal file
View File

@@ -0,0 +1,17 @@
#include <string>
#include <optional>
#include <vector>
namespace Solstice {
class Lexer {
std::string input;
size_t size;
size_t current;
std::optional<char> peek(int ahead = 1);
std::optional<char> consume();
public:
Lexer(std::string in);
std::vector<std::string> lex();
};
}