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

Last change on this file since 199 was 199, checked in by dai_9181, 17 years ago
File size: 646 bytes
RevLine 
[184]1#pragma once
2
3#include <CodeGenerator.h>
[199]4#include <NamespaceSupporter.h>
[193]5#include <MetaImpl.h>
6
[184]7class Compiler
8{
[199]9 // ネイティブコード
[193]10 NativeCode nativeCode;
[199]11
12 // 名前空間サポート
13 NamespaceSupporter namespaceSupporter;
14
15 // メタ情報
[193]16 MetaImpl metaImpl;
17
[184]18public:
[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 );
[184]36};
[193]37
[195]38extern Compiler compiler;
Note: See TracBrowser for help on using the repository browser.