-
Notifications
You must be signed in to change notification settings - Fork 0
/
lexer.h
29 lines (22 loc) · 688 Bytes
/
lexer.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
///////////////////////////////////////
// Author: Vishal Golcha
// Id: 2014B5A70717P
///////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>
#include "lexerDef.h"
htable * create_hashtable(int array_size);
unsigned long hash(char *str);
node * create_node(int y);
str_node *str_create_node();
llsti attach(llsti x,int val);
llsti rev_attach(llsti x,int val);
llst_str attach_str(llst_str x,char *z,int n);
void llst_traverse(llsti x);
llsti llst_pop(llsti x);
node* llst_top(llsti x);
void llst_traverse_str(llst_str x);
htable * insert(htable *z , char * y,int id);
int hfind(htable* z,char *y);
token* get_next_token();
// extern htable * keyword_hash ;