source: dev/trunk/abdev/BasicCompiler_Common/include/Smoothie.h@ 159

Last change on this file since 159 was 159, checked in by dai_9181, 17 years ago

プロジェクト内を整理。jengaライブラリのベースを作成。

File size: 942 bytes
RevLine 
[78]1#pragma once
2
[87]3#include "Source.h"
[159]4#include "ObjectModule.h"
[78]5
[88]6class Smoothie{
[78]7public:
[87]8
[91]9 class Logger{
10 static string log;
11 public:
12 static void Initialize(){
13#ifdef _DEBUG
14 log = "";
15
[95]16 ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::trunc );
[91]17 ofs.close();
18#endif
19 }
[107]20 static void Put( const string &text );
[92]21 static void PutFile( const string &fileName, const string &buffer ){
[95]22 ofstream ofs( ( (string)BasicSystemDir + "Log\\" + fileName ).c_str() );
[92]23 ofs << buffer << endl;
24 ofs.close();
25 }
[91]26 };
27
[87]28 class Lexical{
29 public:
30 static BasicSource source;
[101]31 static NamespaceScopes liveingNamespaceScopes;
[87]32 };
33
[143]34 // コンパイル中に一時的に利用する
35 class Temp{
36 public:
37 // 現在インポートされている名前空間
38 static NamespaceScopesCollection importedNamespaces;
39 };
40
[159]41 // プロジェクト中に存在するメタ情報
42 static Meta meta;
43
[112]44 static bool isFullCompile;
[78]45};
Note: See TracBrowser for help on using the repository browser.