Acceptedwhen the end-of-file has been reached. It should also print the name of the non-terminal that has been matched at the end of the production on which it appears on the left of the arrow.
writeterminals. The function that compares strings in C is
strcmp. Issue the command
man strcmpto get information about this function.
whilestatements and not
For example, given the input
a := 15 + 7 // Comment here.your C program would produce
ID(a) ASSIGN NUMBER(15) PLUS NUMBER(7)Turn in the flex input file and the C source code program that your input file produces.