source: dev/BasicCompiler_Common/include/Smoothie.h@ 107

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

Importsステートメントを導入した。実装は作り途中。

File size: 959 bytes
Line 
1#pragma once
2
3#include "Source.h"
4#include "../TypeDef.h"
5#include "Namespace.h"
6
7class Smoothie{
8public:
9
10 class Logger{
11 static string log;
12 public:
13 static void Initialize(){
14#ifdef _DEBUG
15 log = "";
16
17 ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::trunc );
18 ofs.close();
19#endif
20 }
21 static void Put( const string &text );
22 static void PutFile( const string &fileName, const string &buffer ){
23 ofstream ofs( ( (string)BasicSystemDir + "Log\\" + fileName ).c_str() );
24 ofs << buffer << endl;
25 ofs.close();
26 }
27 };
28
29 class Lexical{
30 public:
31 static BasicSource source;
32 static NamespaceScopes liveingNamespaceScopes;
33 };
34
35 class Meta{
36 public:
37 // TypeDef
38 static TypeDefCollection typeDefs;
39 static vector<ProcPointer *> procPointers;
40 static NamespaceScopesCollection namespaceScopesCollection;
41 static NamespaceScopesCollection importedNamespaces;
42 };
43};
Note: See TracBrowser for help on using the repository browser.