[r302]: cmajor++ / Cm / Cm.Parser / Concept.hpp Maximize Restore History

Download this file

Concept.hpp    53 lines (45 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef Concept_hpp_4033
#define Concept_hpp_4033
#include <Soul.Parsing/Grammar.hpp>
#include <Soul.Parsing/Keyword.hpp>
#include <Cm.Core/Concept.hpp>
#include <Cm.Parser/ParsingContext.hpp>
namespace Cm { namespace Parser {
using Cm::Core::WhereConstraintPtr;
using Cm::Core::ConceptPtr;
using Soul::Parsing::GrammarPtr;
using Soul::Parsing::ParsingDomainPtr;
class ConceptGrammar;
typedef std::shared_ptr<ConceptGrammar> ConceptGrammarPtr;
class ConceptGrammar : public Soul::Parsing::Grammar
{
public:
static ConceptGrammarPtr Create();
static ConceptGrammarPtr Create(ParsingDomainPtr parsingDomain);
ConceptPtr Parse(const std::string& content, int fileIndex, const std::string& fileName, Cm::Core::ScopePtr enclosingScope, ParsingContextPtr ctx);
private:
ConceptGrammar(ParsingDomainPtr parsingDomain_);
virtual void CreateRules();
virtual void GetReferencedGrammars();
class ConceptRule;
class RefinedConceptRule;
class ConceptBodyRule;
class ConceptBodyConstraintRule;
class AxiomRule;
class AxiomBodyRule;
class AxiomStatementRule;
class TypenameConstraintRule;
class SignatureConstraintRule;
class ConstructorConstraintRule;
class DestructorConstraintRule;
class MemberFunctionConstraintRule;
class FunctionConstraintRule;
class EmbeddedConstraintRule;
class WhereConstraintRule;
class ConstraintsRule;
class IsConstraintRule;
class ConceptOrTypeNameRule;
class MultiParamConstraintRule;
};
} } // namespace Cm.Parser
#endif // Concept_hpp_4033