#include
#include
void FIRST(char[],char );
void result(char[],char);
int nop;
char prod[10][10];
void main()
{
int i;
char choice;
char c;
char res1[20];
clrscr();
printf("How many number of productions ? :");
scanf(" %d",&nop);
printf("enter the production string like E=E+T\n");
for(i=0;i
OUTPUT How many number of productions ? :8 enter the production string like E=E+T Enter productions Number 1 : E=TX Enter productions Number 2 : X=+TX Enter productions Number 3 : X=$ Enter productions Number 4 : T=FY Enter productions Number 5 : Y=*FY Enter productions Number 6 : Y=$ Enter productions Number 7 : F=(E) Enter productions Number 8 : F=i Find the FIRST of :X FIRST(X)= { + $ } press 'y' to continue : Y Find the FIRST of :F FIRST(F)= { ( i } press 'y' to continue : Y Find the FIRST of :Y FIRST(Y)= { * $ } press 'y' to continue : Y Find the FIRST of :E FIRST(E)= { ( i } press 'y' to continue : Y Find the FIRST of :T FIRST(T)= { ( i } press 'y' to continue : N