[dad864]: Compiler.h Maximize Restore History

Download this file

Compiler.h    54 lines (46 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Compiler.h: interface for the Compiler class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_COMPILER_H__7DCEF5CB_14D9_4D38_997E_DADA9256476E__INCLUDED_)
#define AFX_COMPILER_H__7DCEF5CB_14D9_4D38_997E_DADA9256476E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define READ_BUFFERLENGTH 4096
//compiler states
#define TA_ACTION 0
#define TA_TRIGGER 1
#define TA_IF 2
#define TA_RESPONSE 3
class Compiler
{
public:
Compiler(int arg_log);
virtual ~Compiler();
public:
bool Compile(CString filepath, CString output);
void CloseAll();
void ReadLine(int maxlength);
bool HandleTrigger();
bool HandleResponse();
bool HandleAction();
bool ProcessLine();
void WriteObject(object &ob);
void WriteString(CString tmp);
void WriteError(CString tmp);
private:
int logging;
int flog, fhandle, fout;
char *buffer;
CString line;
int num_or;
int bpoi, valid;
int ObjectFieldsCount;
int MaxObjectNesting;
bool HasAdditionalRect;
bool HasTriggerPoint;
int ExtraParametersCount;
int state;
int linecount;
};
#endif // !defined(AFX_COMPILER_H__7DCEF5CB_14D9_4D38_997E_DADA9256476E__INCLUDED_)