1 1000 programa 1 2 1001 inicio 2 3 700 &&asignamos a num1 un valor 3 4 1004 entero 4 5 100 num1$ 4 6 800 = 4 7 200 14 4 8 900 ; 4 9 1004 entero 5 10 100 num2$ 5 11 800 = 5 12 200 2 5 13 900 ; 5 14 1005 real 6 15 800 = 6 16 200 0 6 17 900 ; 6 Los números al lado de los components léxicos son los 18 100 suma$ 8 tokens para identificar cada uno y abajo se muestran 19 800 = 8 las expresiones regulares 20 100 num1$ 8 21 400 + 8 22 300 6.5 8 IDENTIFICADORES 100 23 403 / 8 (a-z)+$ 24 100 num2$ 8 NUMEROS ENTEROS 200 25 900 ; 8 (0-9)+ 26 100 suma$ 9 NUMEROS DECIMALES 300 27 601 > 9 (0-9)+.(0-9)+ 28 900 ; 9 29 2000 "El total de la suma es " 9 OPERADORES ARITMETICOS 400(+),401(-),402(*),403(/) 30 900 ; 9 +U-U*U/ 31 1002 fin 10 OPERADORES LOGICOS 500(and),501(or),502(not) and U or U not Tabla de simbolos OPERADORES RELACIONALES 600(<),601(>),602(==) No.Consecutivoidentificador Tipo de dato Valor inicial <U>U== 1 num1$ entero 14 COMENTARIOS 700 2 num2$ entero 2 &&(a-z)+ 3 suma$ real 8 ASIGNACIÓN 800 = Tabla de errores No.Consecutivo Error No.linea DELIMITADORES 900(;),901(:),902(.),930(,) 1 suma 6 ;U:U.U, 2 &se asigna las operaciones a suma 7 PALABRAS RESERVADAS 1000(programa),1001(inicio),1002(fin),1003(variable), El primero es error pues faltó agregar el “$” 1004(entero),1005(real) Y el segundo es ya que se olvidó agregar el segundo “&” programaUinicioUfinUvariableUenteroUreal CONSTANTE STRING 2000 "(a-z)+" REPRESENTACIÓN GRÁFICA EN LA ENTRADA DEL ANALIZADOR SINTÁTICO(CARÁCTER POR CARACTER)