This commit is contained in:
Damian committed 2026-10-12 23:29:09 +02:00
1 parent 5dac8fe0cd
commit 5626bdd9bf
36 files changed
+40532 -1

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
#ifndef DLANG_LEXER_HPP
#define DLANG_LEXER_HPP
#include <iostream>
#include <string>
#include <vector>
#include "types/include.hpp"
class Lexer
{
private:
std::vector<PreToken> _tokens;
std::vector<Token> _organizedTokens;
public:
Lexer() = default;
void Parse(const std::string& code);
void ParseOrganizedTokens();
std::vector<PreToken> GetTokens() const;
std::vector<Token> GetOrganizedTokens() const;
};
#endif