Added parser project
This commit is contained in:
19
parser/inc/Parser.h
Normal file
19
parser/inc/Parser.h
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user