source:
dev/trunk/abdev/BasicCompiler_Common/include/Compiler.h@
206
Last change on this file since 206 was 206, checked in by , 17 years ago | |
---|---|
File size: 707 bytes |
Rev | Line | |
---|---|---|
[184] | 1 | #pragma once |
2 | ||
3 | #include <CodeGenerator.h> | |
[199] | 4 | #include <NamespaceSupporter.h> |
[193] | 5 | #include <MetaImpl.h> |
6 | ||
[184] | 7 | class Compiler |
8 | { | |
[199] | 9 | // ネイティブコード |
[193] | 10 | NativeCode nativeCode; |
[199] | 11 | |
12 | // 名前空間サポート | |
13 | NamespaceSupporter namespaceSupporter; | |
14 | ||
15 | // メタ情報 | |
[193] | 16 | MetaImpl metaImpl; |
17 | ||
[184] | 18 | public: |
[193] | 19 | NativeCode &GetNativeCode() |
[184] | 20 | { |
21 | return nativeCode; | |
22 | } | |
[193] | 23 | |
[199] | 24 | NamespaceSupporter &GetNamespaceSupporter() |
25 | { | |
26 | return namespaceSupporter; | |
27 | } | |
28 | ||
[193] | 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 ); | |
[206] | 36 | |
37 | // コンパイル中のクラス | |
38 | const CClass *pCompilingClass; | |
[184] | 39 | }; |
[193] | 40 | |
[195] | 41 | extern Compiler compiler; |
Note:
See TracBrowser
for help on using the repository browser.