|
Last change
on this file since 159 was 159, checked in by dai_9181, 18 years ago |
|
プロジェクト内を整理。jengaライブラリのベースを作成。
|
|
File size:
942 bytes
|
| Line | |
|---|
| 1 | #pragma once
|
|---|
| 2 |
|
|---|
| 3 | #include "Source.h"
|
|---|
| 4 | #include "ObjectModule.h"
|
|---|
| 5 |
|
|---|
| 6 | class Smoothie{
|
|---|
| 7 | public:
|
|---|
| 8 |
|
|---|
| 9 | class Logger{
|
|---|
| 10 | static string log;
|
|---|
| 11 | public:
|
|---|
| 12 | static void Initialize(){
|
|---|
| 13 | #ifdef _DEBUG
|
|---|
| 14 | log = "";
|
|---|
| 15 |
|
|---|
| 16 | ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::trunc );
|
|---|
| 17 | ofs.close();
|
|---|
| 18 | #endif
|
|---|
| 19 | }
|
|---|
| 20 | static void Put( const string &text );
|
|---|
| 21 | static void PutFile( const string &fileName, const string &buffer ){
|
|---|
| 22 | ofstream ofs( ( (string)BasicSystemDir + "Log\\" + fileName ).c_str() );
|
|---|
| 23 | ofs << buffer << endl;
|
|---|
| 24 | ofs.close();
|
|---|
| 25 | }
|
|---|
| 26 | };
|
|---|
| 27 |
|
|---|
| 28 | class Lexical{
|
|---|
| 29 | public:
|
|---|
| 30 | static BasicSource source;
|
|---|
| 31 | static NamespaceScopes liveingNamespaceScopes;
|
|---|
| 32 | };
|
|---|
| 33 |
|
|---|
| 34 | // コンパイル中に一時的に利用する
|
|---|
| 35 | class Temp{
|
|---|
| 36 | public:
|
|---|
| 37 | // 現在インポートされている名前空間
|
|---|
| 38 | static NamespaceScopesCollection importedNamespaces;
|
|---|
| 39 | };
|
|---|
| 40 |
|
|---|
| 41 | // プロジェクト中に存在するメタ情報
|
|---|
| 42 | static Meta meta;
|
|---|
| 43 |
|
|---|
| 44 | static bool isFullCompile;
|
|---|
| 45 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.