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

Download this file

33 lines (25 with data), 906 Bytes

 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
#ifndef BasicType_hpp_4033
#define BasicType_hpp_4033
#include <Soul.Parsing/Grammar.hpp>
#include <Soul.Parsing/Keyword.hpp>
#include <Cm.Core/BasicType.hpp>
namespace Cm { namespace Parser {
using Cm::Core::TypePtr;
using Soul::Parsing::GrammarPtr;
using Soul::Parsing::ParsingDomainPtr;
class BasicTypeGrammar;
typedef std::shared_ptr<BasicTypeGrammar> BasicTypeGrammarPtr;
class BasicTypeGrammar : public Soul::Parsing::Grammar
{
public:
static BasicTypeGrammarPtr Create();
static BasicTypeGrammarPtr Create(ParsingDomainPtr parsingDomain);
TypePtr Parse(const std::string& content, int fileIndex, const std::string& fileName);
private:
BasicTypeGrammar(ParsingDomainPtr parsingDomain_);
virtual void CreateRules();
virtual void GetReferencedGrammars();
class BasicTypeRule;
};
} } // namespace Cm.Parser
#endif // BasicType_hpp_4033

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks