| Line | |
|---|
| 1 | #pragma once
|
|---|
| 2 |
|
|---|
| 3 | #include <CodeGenerator.h>
|
|---|
| 4 | #include <NamespaceSupporter.h>
|
|---|
| 5 | #include <MetaImpl.h>
|
|---|
| 6 | #include <DataTable.h>
|
|---|
| 7 |
|
|---|
| 8 | class Compiler
|
|---|
| 9 | {
|
|---|
| 10 | // 名前空間サポート
|
|---|
| 11 | NamespaceSupporter namespaceSupporter;
|
|---|
| 12 |
|
|---|
| 13 | // メタ情報
|
|---|
| 14 | MetaImpl metaImpl;
|
|---|
| 15 |
|
|---|
| 16 | // データテーブル
|
|---|
| 17 | DataTable dataTable;
|
|---|
| 18 |
|
|---|
| 19 | public:
|
|---|
| 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 |
|
|---|
| 43 | extern Compiler compiler;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.