1 #ifndef COMPILEUNIT_HPP
 2 #define COMPILEUNIT_HPP
 3 #include <sngcm/cmparser/ParserApi.hpp>
 4 #include <sngcm/ast/CompileUnit.hpp>
 5 #include <sngcm/cmparser/ParsingContext.hpp>
 6 #include <memory>
 7 #include <soulng/lexer/Token.hpp>
 8 #include <soulng/parser/Match.hpp>
 9 #include <soulng/parser/Value.hpp>
10 
11 // this file has been automatically generated from 'C:/work/cmajorm/cmajor/sngcm/cmparser/CompileUnit.parser' using soulng parser generator spg version 3.10.0
12 
13 class CmajorLexer;
14 
15 struct CompileUnitParser 
16 {
17     static std::unique_ptr<sngcm::ast::CompileUnitNode> Parse(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
18     static soulng::parser::Match CompileUnit(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
19     static soulng::parser::Match NamespaceContent(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctxsngcm::ast::CompileUnitNode* cusngcm::ast::NamespaceNode* ns);
20     static soulng::parser::Match UsingDirectives(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctxsngcm::ast::NamespaceNode* ns);
21     static soulng::parser::Match UsingDirective(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctxsngcm::ast::NamespaceNode* ns);
22     static soulng::parser::Match UsingAliasDirective(CmajorLexer& lexerboost::uuids::uuid* moduleId);
23     static soulng::parser::Match UsingNamespaceDirective(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
24     static soulng::parser::Match Definitions(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctxsngcm::ast::CompileUnitNode* cusngcm::ast::NamespaceNode* ns);
25     static soulng::parser::Match Definition(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctxsngcm::ast::CompileUnitNode* cusngcm::ast::NamespaceNode* ns);
26     static soulng::parser::Match NamespaceDefinition(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctxsngcm::ast::CompileUnitNode* cusngcm::ast::NamespaceNode* ns);
27     static soulng::parser::Match TypedefDeclaration(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
28     static soulng::parser::Match ConceptDefinition(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
29     static soulng::parser::Match FunctionDefinition(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
30     static soulng::parser::Match ClassDefinition(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
31     static soulng::parser::Match InterfaceDefinition(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
32     static soulng::parser::Match EnumTypeDefinition(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
33     static soulng::parser::Match ConstantDefinition(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
34     static soulng::parser::Match DelegateDefinition(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
35     static soulng::parser::Match ClassDelegateDefinition(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
36     static soulng::parser::Match GlobalVariableDefinition(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctxsngcm::ast::CompileUnitNode* cu);
37     static soulng::parser::Match InstantiationRequestDeclaration(CmajorLexer& lexerboost::uuids::uuid* moduleIdParsingContext* ctx);
38 };
39 
40 #endif // COMPILEUNIT_HPP