//PROGRAMA ANALIZADOR LEXICO //ROSA IMELDA GARCIA CHI #include <string.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include <iostream.h> #include <ctype.h> int matriz[9][14]={ {7,8,101,102,103,1,4,5,109,6,0,113,201}, {100,100,100,100,2,100,100,100,100,100,100,100,100}, {2,2,2,2,3,2,2,2,2,2,2,2,2}, {2,2,2,2,2,0,2,2,2,2,2,2,2}, {106,106,106,106,106,106,106,105,104,106,106,106,106}, {108,108,108,108,108,108,108,108,107,108,108,108,108}, {200,200,200,200,200,200,200,200,110,200,200,200,200}, {7,7,111,111,111,111,111,111,111,111,111,111,111}, {112,8,112,112,112,112,112,112,112,112,112,112,112} }; FILE *fp; typedef char string[15]; string ts[100]; int q, clase, tipo,pendiente, ultimo=19; char c; int x=5; int y=5; string componente; class lexico { public: //constructor lexico() { llena_reservada(); } int trae_indice(char c) { int uno,otro=0; switch (c) { case '+': uno=2;break; case '-': uno=3;break; case '*': uno=4;break;