source: dev/trunk/abdev/BasicCompiler_Common/include/Compiler.h@ 199

Last change on this file since 199 was 199, checked in by dai_9181, 17 years ago
File size: 646 bytes
Line 
1#pragma once
2
3#include <CodeGenerator.h>
4#include <NamespaceSupporter.h>
5#include <MetaImpl.h>
6
7class Compiler
8{
9 // ネイティブコード
10 NativeCode nativeCode;
11
12 // 名前空間サポート
13 NamespaceSupporter namespaceSupporter;
14
15 // メタ情報
16 MetaImpl metaImpl;
17
18public:
19 NativeCode &GetNativeCode()
20 {
21 return nativeCode;
22 }
23
24 NamespaceSupporter &GetNamespaceSupporter()
25 {
26 return namespaceSupporter;
27 }
28
29 MetaImpl &GetMeta()
30 {
31 return metaImpl;
32 }
33
34 static bool StringToType( const std::string &typeName, Type &type );
35 static const std::string TypeToString( const Type &type );
36};
37
38extern Compiler compiler;
Note: See TracBrowser for help on using the repository browser.