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

Download this file

Parameter.hpp    35 lines (27 with data), 1.1 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
#ifndef Parameter_hpp_4033
#define Parameter_hpp_4033
#include <Soul.Parsing/Grammar.hpp>
#include <Soul.Parsing/Keyword.hpp>
#include <Cm.Parser/ParsingContext.hpp>
#include <Cm.Core/Parameter.hpp>
namespace Cm { namespace Parser {
using Cm::Core::ParameterPtr;
using Soul::Parsing::GrammarPtr;
using Soul::Parsing::ParsingDomainPtr;
class ParameterGrammar;
typedef std::shared_ptr<ParameterGrammar> ParameterGrammarPtr;
class ParameterGrammar : public Soul::Parsing::Grammar
{
public:
static ParameterGrammarPtr Create();
static ParameterGrammarPtr Create(ParsingDomainPtr parsingDomain);
ParameterPtr Parse(const std::string& content, int fileIndex, const std::string& fileName, Cm::Core::ScopePtr enclosingScope, ParsingContextPtr ctx, int index);
private:
ParameterGrammar(ParsingDomainPtr parsingDomain_);
virtual void CreateRules();
virtual void GetReferencedGrammars();
class ParameterRule;
class ParameterListRule;
};
} } // namespace Cm.Parser
#endif // Parameter_hpp_4033