Started adding Parser

This commit is contained in:
Pasha Bibko
2025-04-16 20:00:28 +01:00
parent 4ac5061f03
commit f28b81ab87
10 changed files with 244 additions and 2 deletions

21
common/Parser.h Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include <Lexer.h>
#include <LLVM.h>
#include <fstream>
#include <vector>
#include <memory>
namespace LX
{
struct GlobalDeclaration
{
};
struct FunctionDeclaration
{
};
std::vector<std::unique_ptr<GlobalDeclaration>> TurnTokensIntoAbstractSyntaxTree(std::vector<Token>& tokens, std::ofstream* log);
}