1 #ifndef ENUMERATION_HPP
2 #define ENUMERATION_HPP
3 #include <sngcpp/parser/ParserApi.hpp>
4 #include <sngcpp/parser/ParsingContext.hpp>
5 #include <sngcpp/ast/Enumeration.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 EnumerationParser
15 {
16 static soulng::parser::Match EnumDeclaration(CppLexer& lexer, sngcpp::cppparser::ParsingContext* ctx);
17 static soulng::parser::Match EnumSpecifier(CppLexer& lexer, sngcpp::cppparser::ParsingContext* ctx);
18 static soulng::parser::Match EnumHead(CppLexer& lexer, sngcpp::cppparser::ParsingContext* ctx);
19 static soulng::parser::Match OpaqueEnumDeclaration(CppLexer& lexer, sngcpp::cppparser::ParsingContext* ctx);
20 static soulng::parser::Match EnumKey(CppLexer& lexer);
21 static soulng::parser::Match EnumName(CppLexer& lexer, sngcpp::cppparser::ParsingContext* ctx);
22 static soulng::parser::Match EnumBase(CppLexer& lexer, sngcpp::cppparser::ParsingContext* ctx);
23 static soulng::parser::Match Enumerators(CppLexer& lexer, sngcpp::cppparser::ParsingContext* ctx, sngcpp::ast::EnumTypeNode* enumTypeNode);
24 static soulng::parser::Match EnumeratorDefinition(CppLexer& lexer, sngcpp::cppparser::ParsingContext* ctx);
25 static soulng::parser::Match Enumerator(CppLexer& lexer);
26 };
27
28 #endif // ENUMERATION_HPP