-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlexerDef.h
executable file
·27 lines (20 loc) · 1.15 KB
/
lexerDef.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
//Batch Number : 67
//Dhairya Sangoi - 2012B4A7640P
//Gautam Singhania - 2012B4A7495P
#ifndef LEXERDEF_H_INCLUDED
#define LEXERDEF_H_INCLUDED
//states used in dfs
typedef enum enum_States {
INIT, COMMENT, SYMUNDERSCORE, SYMUNDERSCOREM, SYMUNDERSCOREMA, SYMUNDERSCOREMAI,
SYMHASH, SYMLT, SYMLTDASH, SYMLTDASHTWO, SYMGT, SYMEXCLAIM, SYMEQUAL, SYMAMPERSCENT, SYMAMPERSCENTTWO,
SYMATTHERATE, SYMATTHERATETWO, DIGIT, DIGITDOT, DIGITDOTDIGIT, DIGITDOTDIGITTWO,
BORD, C, CA, CAL, E, EL, ELS, EN, ENDI, ENDR, ENDRE, ENDREC, ENDRECO, ENDRECOR, ENDW, ENDWH, ENDWHI, ENDWHIL,
G, GL, GLO, GLOB, GLOBA, I, IN, INP, INPU, L, LI, LIS, O, OU, OUT, OUTP, OUTPU, P, PA, PAR, PARA, PARAM,
PARAME, PARAMET, PARAMETE, R, RE, REA, REC, RECO, RECOR, RET, RETU, RETUR, T, TH, THE, TY, TYP,
W, WH, WHI, WHIL, WI, WIT, WR, WRI, WRIT,
ID, IDCHAR, IDCHARDIGIT, FIELDID, MAIN, FUNCTIONID, FUNCTIONIDDIGITS, RECORDID,
CALL, IF, ELSE, END, ENDIF, ENDRECORD, ENDWHILE, GLOBAL, INPUT, INT, LIST, OUTPUT, PARAMETER, PARAMETERS,
RECORD, REAL, READ, RETURN, THEN, TYPE, WHILE, WITH, WRITE,
ERRTONOTEALPHANUM, ERRTONOTESYM, ERRUNKNOWN}
State;
#endif // LEXERDEF_H_INCLUDED