-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.h
58 lines (42 loc) · 1.63 KB
/
global.h
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
54
55
56
57
58
// ****************************************************************************
// ****************************************************************************
// grammar.h
// ****************************************************************************
//
// ****************************************************************************
// ****************************************************************************
// ****************************************************************************
// Defines
// ****************************************************************************
#ifndef H_GLOBAL
#define H_GLOBAL
// ****************************************************************************
// Global Class
// ****************************************************************************
class Global {
public:
static void run(int argc,
char** argv);
static void readCmdLine(int argc,
char** argv,
char* inFile,
char* grammarFile);
static void fail();
static void succeed();
static bool isNumeric(const char* buf);
static bool isDebug() {return m_debug;}
static bool isDumpFSA() {return m_dumpFSA;}
static bool isDumpGrammar() {return m_dumpGrammar;}
static bool isGenerateTree() {return m_generateTree;}
private:
static bool m_debug;
static bool m_dumpFSA;
static bool m_dumpGrammar;
static bool m_generateTree;
};
// ****************************************************************************
// Entry Point Declaration
// ****************************************************************************
int main(int argc,
char** argv);
#endif