-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsymbolDef.h
More file actions
45 lines (36 loc) · 785 Bytes
/
symbolDef.h
File metadata and controls
45 lines (36 loc) · 785 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
38
39
40
41
42
43
44
45
#ifndef _SYMBOLDEF_
#define _SYMBOLDEF_
#include "stackTree.h"
#define F_TABLE_SIZE 13
#define IND_TABLE_SIZE 59
#define REC_TABLE_SIZE 19
typedef struct indEntry{
int isvalid;
char name[MAX_LEXEME_SIZE+1];
//TypeList tlist;
varTypes vtype;
int width;
int offset;
struct indEntry *next;
}indEntry;
typedef indEntry *IndTable;
typedef struct recEntry{
int isvalid;
char name[MAX_LEXEME_SIZE+1];
TypeList tlist;
//varTypes vtype;
int width;
struct recEntry *next;
}recEntry;
typedef recEntry *RecTable;
typedef struct funcEntry
{
int isvalid;
char name[MAX_LEXEME_SIZE+1];
IndTable idtable;
AstNode input_par;
AstNode output_par;
struct funcEntry *next;
}funcEntry;
typedef funcEntry *FuncTable;
#endif