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