1 #ifndef LITERAL_HPP
2 #define LITERAL_HPP
3 #include <sngcm/cmparser/ParserApi.hpp>
4 #include <sngcm/ast/Literal.hpp>
5 #include <sngcm/cmparser/ParsingContext.hpp>
6 #include <soulng/lexer/Token.hpp>
7 #include <soulng/parser/Match.hpp>
8 #include <soulng/parser/Value.hpp>
9
10
11
12 class CmajorLexer;
13
14 struct LiteralParser
15 {
16 static soulng::parser::Match Literal(CmajorLexer& lexer, boost::uuids::uuid* moduleId, ParsingContext* ctx);
17 static soulng::parser::Match SimpleLiteral(CmajorLexer& lexer, boost::uuids::uuid* moduleId);
18 static soulng::parser::Match ComplexLiteral(CmajorLexer& lexer, boost::uuids::uuid* moduleId, ParsingContext* ctx);
19 static soulng::parser::Match ArrayLiteral(CmajorLexer& lexer, boost::uuids::uuid* moduleId, ParsingContext* ctx);
20 static soulng::parser::Match StructuredLiteral(CmajorLexer& lexer, boost::uuids::uuid* moduleId, ParsingContext* ctx);
21 };
22
23 #endif // LITERAL_HPP