Program for PDA to CFA conversion
Source Code #include<iostream.h> #include<dos.h> #include<stdio.h> #include<stdio.h> #include<conio.h> struct pdastate { int type; char sym; int trno; int trans[20]; char tsym[20]; }; class pda { public: int n; pdastate s[30]; pda(void) { n=0; } void show(void); }; void pda::show(void) { pdastate p; clrscr(); for(int i=0;i<n;i++) { p=s[i]; cout<<" " State No " := "<<i; cout<<" " Tag ""; if(p.type==0) cout<<" " Start State ""; ...