Exp 6 Aditya
Exp 6 Aditya
Date:
Program:
#include<stdio.h>
#include<ctype.h>
#include<string.h>
int count, n = 0;
int jm = 0; int km
= 0;
int i, choice; char
c, ch;
count = 8;
strcpy(production[0], "E=TR");
strcpy(production[1], "R=+TR");
strcpy(production[2], "R=#");
strcpy(production[3], "T=FY");
strcpy(production[4], "Y=*FY");
strcpy(production[5], "Y=#");
strcpy(production[6], "F=(E)");
strcpy(production[7], "F=i");
int kay;
char done[count];
int ptr = -1;
if (x == 1)
continue; //
Function call
findfirst(c, 0, 0); ptr +=
1;
if (first[i] == calc_first[point1][lark])
{
chk = 1;
break;
}
}
if(chk == 0)
{
printf("%c, ", first[i]);
calc_first[point1][point2++] = first[i];
}
}
printf("}\n");
jm = n;
point1++;
}
printf("\n");
printf("-----------------------------------------------\n\n");
char donee[count];
ptr = -1;
// Checking if Follow of ck
// has alredy been calculated for(kay =
0; kay <= ptr;kay++) if(ck ==
donee[kay]) x
= 1;
if (x == 1)
continue;
land += 1;
// Function call
follow(ck);
ptr += 1;
void follow(char c)
{ int i, j;