1 #ifndef FUNCTION_HPP
2 #define FUNCTION_HPP
3 #include <sngcpp/parser/ParserApi.hpp>
4 #include <sngcpp/parser/ParsingContext.hpp>
5 #include <sngcpp/ast/Function.hpp>
6 #include <soulng/lexer/Token.hpp>
7 #include <soulng/parser/Match.hpp>
8 #include <soulng/parser/Value.hpp>
9
10
11
12 class CppLexer;
13
14 struct FunctionParser
15 {
16 static soulng::parser::Match FunctionDefinition(CppLexer& lexer, sngcpp::cppparser::ParsingContext* ctx);
17 static soulng::parser::Match FunctionBody(CppLexer& lexer, sngcpp::cppparser::ParsingContext* ctx);
18 static soulng::parser::Match ParameterList(CppLexer& lexer, sngcpp::cppparser::ParsingContext* ctx);
19 static soulng::parser::Match ParameterDeclaration(CppLexer& lexer, sngcpp::cppparser::ParsingContext* ctx);
20 };
21
22 #endif // FUNCTION_HPP