Added parser project

This commit is contained in:
Pasha Bibko
2025-07-23 19:33:33 +01:00
parent 6a534ba635
commit 86a178b7d5
10 changed files with 93 additions and 30 deletions

19
parser/inc/Parser.h Normal file
View File

@@ -0,0 +1,19 @@
#pragma once
#include <LXC.h>
#include <NodeTypes.h>
#include <Lexer.h>
namespace LXC::Parser
{
struct ParserError {};
struct FunctionAST
{
std::string name;
AST::SyntaxBranch contents;
};
Util::ReturnVal<std::vector<FunctionAST>, ParserError> TurnTokensIntoAST(const Lexer::LexerOutput& input);
}