-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.h
More file actions
42 lines (42 loc) · 831 Bytes
/
code.h
File metadata and controls
42 lines (42 loc) · 831 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
struct simbol{
char* nume;
struct Tip_Date* tip;
char* valoare;
};
struct list{
char* dimensiune[20];
int nr_dimensiuni;
};
struct tabela_simboluri {
struct simbol entries[100];
unsigned int nr_entries;
};
struct Tip_Date {
struct list* size;
int is_const;
char* tip;
};
struct functie {
char* name;
struct Tip_Date* return_type;
struct simbol* param[10];
int nr_param;
};
struct tabela_functii {
struct functie entries[100];
unsigned int nr_entries;
};
struct UserDef {
char* nume;
struct tabela_simboluri* date;
};
enum Types {OP, IDENTIFIER, INT, STR, CHR, BOL, FLT, FNC};
struct AstNode {
struct AstNode* Left, *Right;
int valoare;
int tip;
};
static struct tabela_simboluri sy_table;
static struct tabela_simboluri* sym_table;
static struct tabela_functii fn_table;
static struct list userdef_table;