-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlexerDef.h
More file actions
44 lines (36 loc) · 717 Bytes
/
lexerDef.h
File metadata and controls
44 lines (36 loc) · 717 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
///////////////////////////////////////
// Author: Vishal Golcha
// Id: 2014B5A70717P
///////////////////////////////////////
typedef struct node{
int val;
struct node * next ;
}node;
typedef struct str_node{
char * str_val;
int arrid;
struct str_node * next ;
}str_node;
typedef struct llst__int{
node *head;
node *tail;
int cnt;
}llsti;
typedef struct llst__str{
str_node *head;
str_node *tail;
int cnt;
int key_map;
}llst_str;
typedef struct _htable{
llst_str * llarray ;
int cnt;
}htable;
typedef struct token{
// int tk_name;
int line_no;
char *tok_name; // this is the token name only as of now
char *lexeme;
} token ;
extern int eof_flag;
extern char * key_words[100];