Added parser project
This commit is contained in:
1 parent
6a534ba635
commit
86a178b7d5
10 files changed
+93
-30
No files matched your search
@@ -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