20 lines
339 B
C++
20 lines
339 B
C++
#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);
|
|
}
|