-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlexer.h
28 lines (24 loc) · 778 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
/*---------------------------------------------------------------------------------------------
Group #28
2016B5A70607P Manan Agarwal
2015B5A70614P Anirudh Buvanesh
2015B4A70824P Anubhav Bansal
2015B4A70716P Aayush Agarwal
2015B4A70636P Ashish Kumar
---------------------------------------------------------------------------------------------*/
#ifndef lexer
#define lexer
#include "lexerDef.h"
#endif
FILE *fp;
unsigned long hash(char *sym);
unsigned long keyword_hash(char *sym);
void populate_table();
void populate_keyword_table();
NODE string_to_enum(char* input);
NODE is_keyword(char *input);
tokenInfo* tokenize(char *str);
void getstream();
tokenInfo* getNextToken();
void removeComments(char *testcaseFile, char *cleanFile);
void printTokens(char *filename);