Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | #include "Source.h"
|
---|
4 | #include "../TypeDef.h"
|
---|
5 | #include "Namespace.h"
|
---|
6 |
|
---|
7 | class Smoothie{
|
---|
8 | public:
|
---|
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 | static BlittableTypes blittableTypes;
|
---|
43 | };
|
---|
44 |
|
---|
45 | static bool isFullCompile;
|
---|
46 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.