summaryrefslogtreecommitdiff
path: root/src/parse/common.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/common.hpp')
-rw-r--r--src/parse/common.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse/common.hpp b/src/parse/common.hpp
index 4af48174..da7d767d 100644
--- a/src/parse/common.hpp
+++ b/src/parse/common.hpp
@@ -1,6 +1,7 @@
#ifndef PARSE_COMMON_HPP_INCLUDED
#define PARSE_COMMON_HPP_INCLUDED
#include <iostream>
+#include "../ast/ast.hpp"
#define GET_TOK(tok, lex) ((tok = lex.getToken()).type())
#define LOOK_AHEAD(lex) (lex.lookahead(0))
@@ -28,6 +29,7 @@ extern AST::Path Parse_Path(TokenStream& lex, bool is_abs, eParsePathGenericMo
extern ::std::vector<TypeRef> Parse_Path_GenericList(TokenStream& lex);
extern TypeRef Parse_Type(TokenStream& lex);
extern void Parse_Use(TokenStream& lex, ::std::function<void(AST::Path, ::std::string)> fcn);
+extern AST::Function Parse_FunctionDef(TokenStream& lex, ::std::string abi, AST::MetaItems attrs, bool allow_self, bool can_be_prototype);
extern AST::Expr Parse_Expr(TokenStream& lex, bool const_only);
extern AST::Expr Parse_ExprBlock(TokenStream& lex);