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

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