Files
LXC/parser/inc/Parser.h
2025-07-24 17:49:23 +01:00

28 lines
492 B
C++

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