[r1]: trunk / Cm / Cm.Parser / Function.hpp  Maximize  Restore  History

Download this file

42 lines (34 with data), 1.2 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
#ifndef Function_hpp_8254
#define Function_hpp_8254
#include <Soul.Parsing/Grammar.hpp>
#include <Soul.Parsing/Keyword.hpp>
#include <Cm.Core/Function.hpp>
namespace Cm { namespace Parser {
using Cm::Core::FunctionPtr;
using Cm::Core::ScopePtr;
using Soul::Parsing::GrammarPtr;
using Soul::Parsing::ParsingDomainPtr;
using Soul::Parsing::String;
using Soul::Parsing::KeywordRule;
class FunctionParser;
typedef boost::shared_ptr<FunctionParser> FunctionParserGrammarPtr;
class FunctionParser : public Soul::Parsing::Grammar
{
public:
static FunctionParserGrammarPtr Create();
static FunctionParserGrammarPtr Create(const ParsingDomainPtr& parsingDomain);
FunctionPtr Parse(const String& content, int fileIndex, const String& fileName, ScopePtr scope);
private:
FunctionParser(const ParsingDomainPtr& parsingDomain_);
virtual void CreateRules();
virtual void GetReferencedGrammars();
class FunctionRuleParser;
class ReturnTypeRuleParser;
class DeclaredFunctionSetNameRuleParser;
class FunctionSetNameRuleParser;
class OperatorRuleParser;
class ParametersRuleParser;
class BodyRuleParser;
};
} } // Cm.Parser
#endif // Function_hpp_8254

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

Sign up for the SourceForge newsletter:





No, thanks