inital
This commit is contained in:
1 parent
5dac8fe0cd
commit
5626bdd9bf
36 files changed
+40532
-1
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user