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

Last change on this file since 206 was 206, checked in by dai_9181, 17 years ago

コード全体のリファクタリングを実施

File size: 707 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 // コンパイル中のクラス
38 const CClass *pCompilingClass;
39};
40
41extern Compiler compiler;
Note: See TracBrowser for help on using the repository browser.