Added parser project

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

No files matched your search

+19
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);
}