-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dlexer.c
33 lines (26 loc) · 1.31 KB
/
Dlexer.c
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
/**********************************************************************/
/* lab 1 DVG C01 - Driver OBJECT */
/**********************************************************************/
/**********************************************************************/
/* Include files */
/**********************************************************************/
#include <stdio.h>
/**********************************************************************/
/* Other OBJECT's METHODS (IMPORTED) */
/**********************************************************************/
#include "lexer.h"
/**********************************************************************/
/* The main function (the driver) */
/**********************************************************************/
int main()
{
int i=0, t=0;
for (i=0; t!='$'; i++)
printf("\n token is %4d, lexeme is %10s ", t=get_token(), get_lexeme());
printf("\n\n");
printf("\n MVH BENJI");
return 1;
}
/**********************************************************************/
/* End of code */
/**********************************************************************/