|
Last change
on this file since 257 was 256, checked in by dai_9181, 18 years ago |
|
MetaImplを廃止し、Metaにした。
ObjectModuleクラス、Linkerクラスを用意。
|
|
File size:
721 bytes
|
| Line | |
|---|
| 1 | #pragma once
|
|---|
| 2 |
|
|---|
| 3 | #include <CodeGenerator.h>
|
|---|
| 4 | #include <NamespaceSupporter.h>
|
|---|
| 5 | #include <Meta.h>
|
|---|
| 6 | #include <DataTable.h>
|
|---|
| 7 | #include <CodeGenerator.h>
|
|---|
| 8 | #include <Linker.h>
|
|---|
| 9 |
|
|---|
| 10 | class Compiler
|
|---|
| 11 | {
|
|---|
| 12 | // 名前空間サポート
|
|---|
| 13 | NamespaceSupporter namespaceSupporter;
|
|---|
| 14 |
|
|---|
| 15 | public:
|
|---|
| 16 |
|
|---|
| 17 | NamespaceSupporter &GetNamespaceSupporter()
|
|---|
| 18 | {
|
|---|
| 19 | return namespaceSupporter;
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
| 22 | // オブジェクトモジュール
|
|---|
| 23 | ObjectModule objectModule;
|
|---|
| 24 |
|
|---|
| 25 | // コード生成機構
|
|---|
| 26 | CodeGenerator codeGenerator;
|
|---|
| 27 |
|
|---|
| 28 | // リンカ
|
|---|
| 29 | Linker linker;
|
|---|
| 30 |
|
|---|
| 31 | static bool StringToType( const std::string &typeName, Type &type );
|
|---|
| 32 | static const std::string TypeToString( const Type &type );
|
|---|
| 33 |
|
|---|
| 34 | // コンパイル中のクラス
|
|---|
| 35 | const CClass *pCompilingClass;
|
|---|
| 36 | };
|
|---|
| 37 |
|
|---|
| 38 | extern Compiler compiler;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.