-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.cpp
More file actions
37 lines (26 loc) · 957 Bytes
/
globals.cpp
File metadata and controls
37 lines (26 loc) · 957 Bytes
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
/**
RIGHT TO USE, DISTRIBUTE AND MODIFY
===================================
Copyright (C) 2015 Ganesh Prasad Sahoo - All Rights Reserved
You may use, distribute and modify this code under the Terms
of GNU GPL V3 License. You should have received a copy of the
GNU GPL v3 License with this file. If not please write to
sir.gnsp@gmail.com
or visit
http://www.gnu.org/licenses/gpl.txt
*****************************************************************************
*/
#include "parser.hpp"
using namespace std;
const char *KEYWORDS[18]={"ENT", "WEAK", "ATTR", "KEY", "DERIVED", "MULTI",
"COMPOSITE", "RELN", "ONE", "MANY", "FROM", "TO",
"PARTIAL", "TOTAL", "DIAGRAM",
"BEGIN", "END", "CONNECT" }; // TOTAL is the string
// for keyword COMPLETE
EntityTable entTbl_;
int line_no = 0;
int col_no = 0;
void error(const char *msg){
cout<<"ERROR at ("<<line_no<<","<<col_no<<") : "<<msg<<endl;
exit(0);
}