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

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

MetaImplを廃止し、Metaにした。
ObjectModuleクラス、Linkerクラスを用意。

File size: 721 bytes
RevLine 
[184]1#pragma once
2
3#include <CodeGenerator.h>
[199]4#include <NamespaceSupporter.h>
[256]5#include <Meta.h>
[224]6#include <DataTable.h>
[225]7#include <CodeGenerator.h>
[256]8#include <Linker.h>
[193]9
[184]10class Compiler
11{
[199]12 // 名前空間サポート
13 NamespaceSupporter namespaceSupporter;
14
[184]15public:
[193]16
[199]17 NamespaceSupporter &GetNamespaceSupporter()
18 {
19 return namespaceSupporter;
20 }
21
[256]22 // オブジェクトモジュール
23 ObjectModule objectModule;
[193]24
[225]25 // コード生成機構
26 CodeGenerator codeGenerator;
27
[256]28 // リンカ
29 Linker linker;
30
[193]31 static bool StringToType( const std::string &typeName, Type &type );
32 static const std::string TypeToString( const Type &type );
[206]33
34 // コンパイル中のクラス
35 const CClass *pCompilingClass;
[184]36};
[193]37
[195]38extern Compiler compiler;
Note: See TracBrowser for help on using the repository browser.