Advertisement
Guest User

BisonOutput

a guest
Nov 12th, 2013
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.05 KB | None | 0 0
  1. Estado 107 conflictos: 1 desplazamiento(s)/reducción(ones)
  2.  
  3.  
  4. Gramática
  5.  
  6. 0 $accept: START $end
  7.  
  8. 1 START: PROGRAM ID SEPARADOR_SENTENCIA zona_declaracion_constantes zona_declaracion_variables bloque ENDPROGRAM
  9.  
  10. 2 zona_declaracion_variables: DEFINE conjunto_definiciones ENDDEFINE
  11.  
  12. 3 zona_declaracion_constantes: CONST constantes ENDCONST
  13.  
  14. 4 constantes: constantes SEPARADOR_SENTENCIA const
  15. 5 | const SEPARADOR_SENTENCIA
  16.  
  17. 6 const: declaracion_const_reales
  18. 7 | declaracion_const_int
  19. 8 | declaracion_const_str
  20.  
  21. 9 declaracion_const_str: STRING ID OPERADOR_ASIGNACION literal_string
  22.  
  23. 10 declaracion_const_reales: REAL ID OPERADOR_ASIGNACION literal_real
  24.  
  25. 11 declaracion_const_int: INTEGER ID OPERADOR_ASIGNACION literal_entero
  26.  
  27. 12 conjunto_definiciones: conjunto_definiciones definiciones
  28. 13 | definiciones
  29.  
  30. 14 seleccion: IF condicion DO bloque ELSE bloque ENDIF
  31.  
  32. 15 condicion: comparacion OPERADOR_LOGICO comparacion
  33. 16 | OPERADOR_NEGACION comparacion
  34. 17 | comparacion
  35. 18 | comparacion OPERADOR_LOGICO OPERADOR_NEGACION comparacion
  36.  
  37. 19 comparacion: expresion OPERADOR_MAYOR expresion
  38. 20 | expresion OPERADOR_MENOR expresion
  39. 21 | expresion OPERADOR_MAYORIGUAL expresion
  40. 22 | expresion OPERADOR_MENORIGUAL expresion
  41. 23 | expresion OPERADOR_DISTINTO expresion
  42. 24 | expresion OPERADOR_IGUAL expresion
  43.  
  44. 25 expresion: expresion OPERADOR_SUMA termino
  45. 26 | expresion OPERADOR_RESTA termino
  46. 27 | termino
  47.  
  48. 28 termino: termino OPERADOR_MULTIPLICACION factor
  49. 29 | termino OPERADOR_DIVISION factor
  50. 30 | factor
  51.  
  52. 31 factor: ID
  53. 32 | literal_entero
  54. 33 | literal_real
  55. 34 | PARENTESIS_ABRE expresion PARENTESIS_CIERRA
  56.  
  57. 35 iteracion_condicional: WHILE condicion DO bloque ENDWHILE
  58.  
  59. 36 bloque: sentencia SEPARADOR_SENTENCIA
  60. 37 | bloque sentencia SEPARADOR_SENTENCIA
  61.  
  62. 38 sentencia: asignacion
  63. 39 | estructura_control
  64. 40 | salida
  65. 41 | comentario
  66.  
  67. 42 comentario: APERTURA_COMENTARIO literal_string CIERRE_COMENTARIO
  68.  
  69. 43 estructura_control: seleccion
  70. 44 | iteracion_condicional
  71.  
  72. 45 asignacion: ID OPERADOR_ASIGNACION concatenacion
  73. 46 | ID OPERADOR_ASIGNACION expresion
  74. 47 | ID OPERADOR_ASIGNACION literal_string
  75.  
  76. 48 concatenacion: ID OPERADOR_SUMA ID
  77. 49 | ID OPERADOR_SUMA literal_string
  78. 50 | literal_string OPERADOR_SUMA ID
  79. 51 | literal_string OPERADOR_SUMA literal_string
  80.  
  81. 52 literal_string: COMILLA CONST_STR COMILLA
  82.  
  83. 53 literal_real: signo numero_int SEPARADOR_DECIMALES numero_int
  84. 54 | signo SEPARADOR_DECIMALES numero_int
  85. 55 | signo numero_int SEPARADOR_DECIMALES
  86.  
  87. 56 literal_entero: signo numero_int
  88.  
  89. 57 numero_int: CONST_INT
  90.  
  91. 58 signo: OPERADOR_RESTA
  92.  
  93. 59 definiciones: definicion_string
  94. 60 | definicion_entero
  95. 61 | definicion_real
  96.  
  97. 62 definicion_string: STRING DOSPUNTOS iteracion_id SEPARADOR_SENTENCIA
  98.  
  99. 63 definicion_entero: INTEGER DOSPUNTOS iteracion_id SEPARADOR_SENTENCIA
  100.  
  101. 64 definicion_real: REAL DOSPUNTOS iteracion_id SEPARADOR_SENTENCIA
  102.  
  103. 65 iteracion_id: ID
  104. 66 | ID SEPARADOR_IDENTIFICADORES iteracion_id
  105.  
  106. 67 salida: DISPLAY PARENTESIS_ABRE ID PARENTESIS_CIERRA
  107. 68 | DISPLAY PARENTESIS_ABRE literal_entero PARENTESIS_CIERRA
  108. 69 | DISPLAY PARENTESIS_ABRE literal_real PARENTESIS_CIERRA
  109. 70 | DISPLAY PARENTESIS_ABRE literal_string PARENTESIS_CIERRA
  110.  
  111.  
  112. Terminales con las reglas donde aparecen
  113.  
  114. $end (0) 0
  115. error (256)
  116. PROGRAM (258) 1
  117. DEFINE (259) 2
  118. ENDDEFINE (260) 2
  119. CONST_STR (261) 52
  120. REAL (262) 10 64
  121. CONST_INT (263) 57
  122. INTEGER (264) 11 63
  123. STRING (265) 9 62
  124. IF (266) 14
  125. DO (267) 14 35
  126. ELSE (268) 14
  127. ENDIF (269) 14
  128. WHILE (270) 35
  129. ENDWHILE (271) 35
  130. ENDPROGRAM (272) 1
  131. CONST (273) 3
  132. ENDCONST (274) 3
  133. OPERADOR_NEGACION (275) 16 18
  134. OPERADOR_LOGICO (276) 15 18
  135. OPERADOR_ASIGNACION (277) 9 10 11 45 46 47
  136. OPERADOR_MAYOR (278) 19
  137. OPERADOR_MENOR (279) 20
  138. OPERADOR_IGUAL (280) 24
  139. OPERADOR_MENORIGUAL (281) 22
  140. OPERADOR_MAYORIGUAL (282) 21
  141. OPERADOR_DISTINTO (283) 23
  142. OPERADOR_SUMA (284) 25 48 49 50 51
  143. OPERADOR_RESTA (285) 26 58
  144. OPERADOR_MULTIPLICACION (286) 28
  145. OPERADOR_DIVISION (287) 29
  146. SEPARADOR_DECIMALES (288) 53 54 55
  147. SEPARADOR_IDENTIFICADORES (289) 66
  148. SEPARADOR_SENTENCIA (290) 1 4 5 36 37 62 63 64
  149. PARENTESIS_ABRE (291) 34 67 68 69 70
  150. PARENTESIS_CIERRA (292) 34 67 68 69 70
  151. APERTURA_COMENTARIO (293) 42
  152. CIERRE_COMENTARIO (294) 42
  153. DOSPUNTOS (295) 62 63 64
  154. DISPLAY (296) 67 68 69 70
  155. COMILLA (297) 52
  156. ID (298) 1 9 10 11 31 45 46 47 48 49 50 65 66 67
  157.  
  158.  
  159. No terminales con las reglas donde aparecen
  160.  
  161. $accept (44)
  162. en la izquierda: 0
  163. START (45)
  164. en la izquierda: 1, en la derecha: 0
  165. zona_declaracion_variables (46)
  166. en la izquierda: 2, en la derecha: 1
  167. zona_declaracion_constantes (47)
  168. en la izquierda: 3, en la derecha: 1
  169. constantes (48)
  170. en la izquierda: 4 5, en la derecha: 3 4
  171. const (49)
  172. en la izquierda: 6 7 8, en la derecha: 4 5
  173. declaracion_const_str (50)
  174. en la izquierda: 9, en la derecha: 8
  175. declaracion_const_reales (51)
  176. en la izquierda: 10, en la derecha: 6
  177. declaracion_const_int (52)
  178. en la izquierda: 11, en la derecha: 7
  179. conjunto_definiciones (53)
  180. en la izquierda: 12 13, en la derecha: 2 12
  181. seleccion (54)
  182. en la izquierda: 14, en la derecha: 43
  183. condicion (55)
  184. en la izquierda: 15 16 17 18, en la derecha: 14 35
  185. comparacion (56)
  186. en la izquierda: 19 20 21 22 23 24, en la derecha: 15 16 17 18
  187. expresion (57)
  188. en la izquierda: 25 26 27, en la derecha: 19 20 21 22 23 24 25
  189. 26 34 46
  190. termino (58)
  191. en la izquierda: 28 29 30, en la derecha: 25 26 27 28 29
  192. factor (59)
  193. en la izquierda: 31 32 33 34, en la derecha: 28 29 30
  194. iteracion_condicional (60)
  195. en la izquierda: 35, en la derecha: 44
  196. bloque (61)
  197. en la izquierda: 36 37, en la derecha: 1 14 35 37
  198. sentencia (62)
  199. en la izquierda: 38 39 40 41, en la derecha: 36 37
  200. comentario (63)
  201. en la izquierda: 42, en la derecha: 41
  202. estructura_control (64)
  203. en la izquierda: 43 44, en la derecha: 39
  204. asignacion (65)
  205. en la izquierda: 45 46 47, en la derecha: 38
  206. concatenacion (66)
  207. en la izquierda: 48 49 50 51, en la derecha: 45
  208. literal_string (67)
  209. en la izquierda: 52, en la derecha: 9 42 47 49 50 51 70
  210. literal_real (68)
  211. en la izquierda: 53 54 55, en la derecha: 10 33 69
  212. literal_entero (69)
  213. en la izquierda: 56, en la derecha: 11 32 68
  214. numero_int (70)
  215. en la izquierda: 57, en la derecha: 53 54 55 56
  216. signo (71)
  217. en la izquierda: 58, en la derecha: 53 54 55 56
  218. definiciones (72)
  219. en la izquierda: 59 60 61, en la derecha: 12 13
  220. definicion_string (73)
  221. en la izquierda: 62, en la derecha: 59
  222. definicion_entero (74)
  223. en la izquierda: 63, en la derecha: 60
  224. definicion_real (75)
  225. en la izquierda: 64, en la derecha: 61
  226. iteracion_id (76)
  227. en la izquierda: 65 66, en la derecha: 62 63 64 66
  228. salida (77)
  229. en la izquierda: 67 68 69 70, en la derecha: 40
  230.  
  231.  
  232. estado 0
  233.  
  234. 0 $accept: . START $end
  235.  
  236. PROGRAM desplazar e ir al estado 1
  237.  
  238. START ir al estado 2
  239.  
  240.  
  241. estado 1
  242.  
  243. 1 START: PROGRAM . ID SEPARADOR_SENTENCIA zona_declaracion_constantes zona_declaracion_variables bloque ENDPROGRAM
  244.  
  245. ID desplazar e ir al estado 3
  246.  
  247.  
  248. estado 2
  249.  
  250. 0 $accept: START . $end
  251.  
  252. $end desplazar e ir al estado 4
  253.  
  254.  
  255. estado 3
  256.  
  257. 1 START: PROGRAM ID . SEPARADOR_SENTENCIA zona_declaracion_constantes zona_declaracion_variables bloque ENDPROGRAM
  258.  
  259. SEPARADOR_SENTENCIA desplazar e ir al estado 5
  260.  
  261.  
  262. estado 4
  263.  
  264. 0 $accept: START $end .
  265.  
  266. $default aceptar
  267.  
  268.  
  269. estado 5
  270.  
  271. 1 START: PROGRAM ID SEPARADOR_SENTENCIA . zona_declaracion_constantes zona_declaracion_variables bloque ENDPROGRAM
  272.  
  273. CONST desplazar e ir al estado 6
  274.  
  275. zona_declaracion_constantes ir al estado 7
  276.  
  277.  
  278. estado 6
  279.  
  280. 3 zona_declaracion_constantes: CONST . constantes ENDCONST
  281.  
  282. REAL desplazar e ir al estado 8
  283. INTEGER desplazar e ir al estado 9
  284. STRING desplazar e ir al estado 10
  285.  
  286. constantes ir al estado 11
  287. const ir al estado 12
  288. declaracion_const_str ir al estado 13
  289. declaracion_const_reales ir al estado 14
  290. declaracion_const_int ir al estado 15
  291.  
  292.  
  293. estado 7
  294.  
  295. 1 START: PROGRAM ID SEPARADOR_SENTENCIA zona_declaracion_constantes . zona_declaracion_variables bloque ENDPROGRAM
  296.  
  297. DEFINE desplazar e ir al estado 16
  298.  
  299. zona_declaracion_variables ir al estado 17
  300.  
  301.  
  302. estado 8
  303.  
  304. 10 declaracion_const_reales: REAL . ID OPERADOR_ASIGNACION literal_real
  305.  
  306. ID desplazar e ir al estado 18
  307.  
  308.  
  309. estado 9
  310.  
  311. 11 declaracion_const_int: INTEGER . ID OPERADOR_ASIGNACION literal_entero
  312.  
  313. ID desplazar e ir al estado 19
  314.  
  315.  
  316. estado 10
  317.  
  318. 9 declaracion_const_str: STRING . ID OPERADOR_ASIGNACION literal_string
  319.  
  320. ID desplazar e ir al estado 20
  321.  
  322.  
  323. estado 11
  324.  
  325. 3 zona_declaracion_constantes: CONST constantes . ENDCONST
  326. 4 constantes: constantes . SEPARADOR_SENTENCIA const
  327.  
  328. ENDCONST desplazar e ir al estado 21
  329. SEPARADOR_SENTENCIA desplazar e ir al estado 22
  330.  
  331.  
  332. estado 12
  333.  
  334. 5 constantes: const . SEPARADOR_SENTENCIA
  335.  
  336. SEPARADOR_SENTENCIA desplazar e ir al estado 23
  337.  
  338.  
  339. estado 13
  340.  
  341. 8 const: declaracion_const_str .
  342.  
  343. $default reduce usando la regla 8 (const)
  344.  
  345.  
  346. estado 14
  347.  
  348. 6 const: declaracion_const_reales .
  349.  
  350. $default reduce usando la regla 6 (const)
  351.  
  352.  
  353. estado 15
  354.  
  355. 7 const: declaracion_const_int .
  356.  
  357. $default reduce usando la regla 7 (const)
  358.  
  359.  
  360. estado 16
  361.  
  362. 2 zona_declaracion_variables: DEFINE . conjunto_definiciones ENDDEFINE
  363.  
  364. REAL desplazar e ir al estado 24
  365. INTEGER desplazar e ir al estado 25
  366. STRING desplazar e ir al estado 26
  367.  
  368. conjunto_definiciones ir al estado 27
  369. definiciones ir al estado 28
  370. definicion_string ir al estado 29
  371. definicion_entero ir al estado 30
  372. definicion_real ir al estado 31
  373.  
  374.  
  375. estado 17
  376.  
  377. 1 START: PROGRAM ID SEPARADOR_SENTENCIA zona_declaracion_constantes zona_declaracion_variables . bloque ENDPROGRAM
  378.  
  379. IF desplazar e ir al estado 32
  380. WHILE desplazar e ir al estado 33
  381. APERTURA_COMENTARIO desplazar e ir al estado 34
  382. DISPLAY desplazar e ir al estado 35
  383. ID desplazar e ir al estado 36
  384.  
  385. seleccion ir al estado 37
  386. iteracion_condicional ir al estado 38
  387. bloque ir al estado 39
  388. sentencia ir al estado 40
  389. comentario ir al estado 41
  390. estructura_control ir al estado 42
  391. asignacion ir al estado 43
  392. salida ir al estado 44
  393.  
  394.  
  395. estado 18
  396.  
  397. 10 declaracion_const_reales: REAL ID . OPERADOR_ASIGNACION literal_real
  398.  
  399. OPERADOR_ASIGNACION desplazar e ir al estado 45
  400.  
  401.  
  402. estado 19
  403.  
  404. 11 declaracion_const_int: INTEGER ID . OPERADOR_ASIGNACION literal_entero
  405.  
  406. OPERADOR_ASIGNACION desplazar e ir al estado 46
  407.  
  408.  
  409. estado 20
  410.  
  411. 9 declaracion_const_str: STRING ID . OPERADOR_ASIGNACION literal_string
  412.  
  413. OPERADOR_ASIGNACION desplazar e ir al estado 47
  414.  
  415.  
  416. estado 21
  417.  
  418. 3 zona_declaracion_constantes: CONST constantes ENDCONST .
  419.  
  420. $default reduce usando la regla 3 (zona_declaracion_constantes)
  421.  
  422.  
  423. estado 22
  424.  
  425. 4 constantes: constantes SEPARADOR_SENTENCIA . const
  426.  
  427. REAL desplazar e ir al estado 8
  428. INTEGER desplazar e ir al estado 9
  429. STRING desplazar e ir al estado 10
  430.  
  431. const ir al estado 48
  432. declaracion_const_str ir al estado 13
  433. declaracion_const_reales ir al estado 14
  434. declaracion_const_int ir al estado 15
  435.  
  436.  
  437. estado 23
  438.  
  439. 5 constantes: const SEPARADOR_SENTENCIA .
  440.  
  441. $default reduce usando la regla 5 (constantes)
  442.  
  443.  
  444. estado 24
  445.  
  446. 64 definicion_real: REAL . DOSPUNTOS iteracion_id SEPARADOR_SENTENCIA
  447.  
  448. DOSPUNTOS desplazar e ir al estado 49
  449.  
  450.  
  451. estado 25
  452.  
  453. 63 definicion_entero: INTEGER . DOSPUNTOS iteracion_id SEPARADOR_SENTENCIA
  454.  
  455. DOSPUNTOS desplazar e ir al estado 50
  456.  
  457.  
  458. estado 26
  459.  
  460. 62 definicion_string: STRING . DOSPUNTOS iteracion_id SEPARADOR_SENTENCIA
  461.  
  462. DOSPUNTOS desplazar e ir al estado 51
  463.  
  464.  
  465. estado 27
  466.  
  467. 2 zona_declaracion_variables: DEFINE conjunto_definiciones . ENDDEFINE
  468. 12 conjunto_definiciones: conjunto_definiciones . definiciones
  469.  
  470. ENDDEFINE desplazar e ir al estado 52
  471. REAL desplazar e ir al estado 24
  472. INTEGER desplazar e ir al estado 25
  473. STRING desplazar e ir al estado 26
  474.  
  475. definiciones ir al estado 53
  476. definicion_string ir al estado 29
  477. definicion_entero ir al estado 30
  478. definicion_real ir al estado 31
  479.  
  480.  
  481. estado 28
  482.  
  483. 13 conjunto_definiciones: definiciones .
  484.  
  485. $default reduce usando la regla 13 (conjunto_definiciones)
  486.  
  487.  
  488. estado 29
  489.  
  490. 59 definiciones: definicion_string .
  491.  
  492. $default reduce usando la regla 59 (definiciones)
  493.  
  494.  
  495. estado 30
  496.  
  497. 60 definiciones: definicion_entero .
  498.  
  499. $default reduce usando la regla 60 (definiciones)
  500.  
  501.  
  502. estado 31
  503.  
  504. 61 definiciones: definicion_real .
  505.  
  506. $default reduce usando la regla 61 (definiciones)
  507.  
  508.  
  509. estado 32
  510.  
  511. 14 seleccion: IF . condicion DO bloque ELSE bloque ENDIF
  512.  
  513. OPERADOR_NEGACION desplazar e ir al estado 54
  514. OPERADOR_RESTA desplazar e ir al estado 55
  515. PARENTESIS_ABRE desplazar e ir al estado 56
  516. ID desplazar e ir al estado 57
  517.  
  518. condicion ir al estado 58
  519. comparacion ir al estado 59
  520. expresion ir al estado 60
  521. termino ir al estado 61
  522. factor ir al estado 62
  523. literal_real ir al estado 63
  524. literal_entero ir al estado 64
  525. signo ir al estado 65
  526.  
  527.  
  528. estado 33
  529.  
  530. 35 iteracion_condicional: WHILE . condicion DO bloque ENDWHILE
  531.  
  532. OPERADOR_NEGACION desplazar e ir al estado 54
  533. OPERADOR_RESTA desplazar e ir al estado 55
  534. PARENTESIS_ABRE desplazar e ir al estado 56
  535. ID desplazar e ir al estado 57
  536.  
  537. condicion ir al estado 66
  538. comparacion ir al estado 59
  539. expresion ir al estado 60
  540. termino ir al estado 61
  541. factor ir al estado 62
  542. literal_real ir al estado 63
  543. literal_entero ir al estado 64
  544. signo ir al estado 65
  545.  
  546.  
  547. estado 34
  548.  
  549. 42 comentario: APERTURA_COMENTARIO . literal_string CIERRE_COMENTARIO
  550.  
  551. COMILLA desplazar e ir al estado 67
  552.  
  553. literal_string ir al estado 68
  554.  
  555.  
  556. estado 35
  557.  
  558. 67 salida: DISPLAY . PARENTESIS_ABRE ID PARENTESIS_CIERRA
  559. 68 | DISPLAY . PARENTESIS_ABRE literal_entero PARENTESIS_CIERRA
  560. 69 | DISPLAY . PARENTESIS_ABRE literal_real PARENTESIS_CIERRA
  561. 70 | DISPLAY . PARENTESIS_ABRE literal_string PARENTESIS_CIERRA
  562.  
  563. PARENTESIS_ABRE desplazar e ir al estado 69
  564.  
  565.  
  566. estado 36
  567.  
  568. 45 asignacion: ID . OPERADOR_ASIGNACION concatenacion
  569. 46 | ID . OPERADOR_ASIGNACION expresion
  570. 47 | ID . OPERADOR_ASIGNACION literal_string
  571.  
  572. OPERADOR_ASIGNACION desplazar e ir al estado 70
  573.  
  574.  
  575. estado 37
  576.  
  577. 43 estructura_control: seleccion .
  578.  
  579. $default reduce usando la regla 43 (estructura_control)
  580.  
  581.  
  582. estado 38
  583.  
  584. 44 estructura_control: iteracion_condicional .
  585.  
  586. $default reduce usando la regla 44 (estructura_control)
  587.  
  588.  
  589. estado 39
  590.  
  591. 1 START: PROGRAM ID SEPARADOR_SENTENCIA zona_declaracion_constantes zona_declaracion_variables bloque . ENDPROGRAM
  592. 37 bloque: bloque . sentencia SEPARADOR_SENTENCIA
  593.  
  594. IF desplazar e ir al estado 32
  595. WHILE desplazar e ir al estado 33
  596. ENDPROGRAM desplazar e ir al estado 71
  597. APERTURA_COMENTARIO desplazar e ir al estado 34
  598. DISPLAY desplazar e ir al estado 35
  599. ID desplazar e ir al estado 36
  600.  
  601. seleccion ir al estado 37
  602. iteracion_condicional ir al estado 38
  603. sentencia ir al estado 72
  604. comentario ir al estado 41
  605. estructura_control ir al estado 42
  606. asignacion ir al estado 43
  607. salida ir al estado 44
  608.  
  609.  
  610. estado 40
  611.  
  612. 36 bloque: sentencia . SEPARADOR_SENTENCIA
  613.  
  614. SEPARADOR_SENTENCIA desplazar e ir al estado 73
  615.  
  616.  
  617. estado 41
  618.  
  619. 41 sentencia: comentario .
  620.  
  621. $default reduce usando la regla 41 (sentencia)
  622.  
  623.  
  624. estado 42
  625.  
  626. 39 sentencia: estructura_control .
  627.  
  628. $default reduce usando la regla 39 (sentencia)
  629.  
  630.  
  631. estado 43
  632.  
  633. 38 sentencia: asignacion .
  634.  
  635. $default reduce usando la regla 38 (sentencia)
  636.  
  637.  
  638. estado 44
  639.  
  640. 40 sentencia: salida .
  641.  
  642. $default reduce usando la regla 40 (sentencia)
  643.  
  644.  
  645. estado 45
  646.  
  647. 10 declaracion_const_reales: REAL ID OPERADOR_ASIGNACION . literal_real
  648.  
  649. OPERADOR_RESTA desplazar e ir al estado 55
  650.  
  651. literal_real ir al estado 74
  652. signo ir al estado 75
  653.  
  654.  
  655. estado 46
  656.  
  657. 11 declaracion_const_int: INTEGER ID OPERADOR_ASIGNACION . literal_entero
  658.  
  659. OPERADOR_RESTA desplazar e ir al estado 55
  660.  
  661. literal_entero ir al estado 76
  662. signo ir al estado 77
  663.  
  664.  
  665. estado 47
  666.  
  667. 9 declaracion_const_str: STRING ID OPERADOR_ASIGNACION . literal_string
  668.  
  669. COMILLA desplazar e ir al estado 67
  670.  
  671. literal_string ir al estado 78
  672.  
  673.  
  674. estado 48
  675.  
  676. 4 constantes: constantes SEPARADOR_SENTENCIA const .
  677.  
  678. $default reduce usando la regla 4 (constantes)
  679.  
  680.  
  681. estado 49
  682.  
  683. 64 definicion_real: REAL DOSPUNTOS . iteracion_id SEPARADOR_SENTENCIA
  684.  
  685. ID desplazar e ir al estado 79
  686.  
  687. iteracion_id ir al estado 80
  688.  
  689.  
  690. estado 50
  691.  
  692. 63 definicion_entero: INTEGER DOSPUNTOS . iteracion_id SEPARADOR_SENTENCIA
  693.  
  694. ID desplazar e ir al estado 79
  695.  
  696. iteracion_id ir al estado 81
  697.  
  698.  
  699. estado 51
  700.  
  701. 62 definicion_string: STRING DOSPUNTOS . iteracion_id SEPARADOR_SENTENCIA
  702.  
  703. ID desplazar e ir al estado 79
  704.  
  705. iteracion_id ir al estado 82
  706.  
  707.  
  708. estado 52
  709.  
  710. 2 zona_declaracion_variables: DEFINE conjunto_definiciones ENDDEFINE .
  711.  
  712. $default reduce usando la regla 2 (zona_declaracion_variables)
  713.  
  714.  
  715. estado 53
  716.  
  717. 12 conjunto_definiciones: conjunto_definiciones definiciones .
  718.  
  719. $default reduce usando la regla 12 (conjunto_definiciones)
  720.  
  721.  
  722. estado 54
  723.  
  724. 16 condicion: OPERADOR_NEGACION . comparacion
  725.  
  726. OPERADOR_RESTA desplazar e ir al estado 55
  727. PARENTESIS_ABRE desplazar e ir al estado 56
  728. ID desplazar e ir al estado 57
  729.  
  730. comparacion ir al estado 83
  731. expresion ir al estado 60
  732. termino ir al estado 61
  733. factor ir al estado 62
  734. literal_real ir al estado 63
  735. literal_entero ir al estado 64
  736. signo ir al estado 65
  737.  
  738.  
  739. estado 55
  740.  
  741. 58 signo: OPERADOR_RESTA .
  742.  
  743. $default reduce usando la regla 58 (signo)
  744.  
  745.  
  746. estado 56
  747.  
  748. 34 factor: PARENTESIS_ABRE . expresion PARENTESIS_CIERRA
  749.  
  750. OPERADOR_RESTA desplazar e ir al estado 55
  751. PARENTESIS_ABRE desplazar e ir al estado 56
  752. ID desplazar e ir al estado 57
  753.  
  754. expresion ir al estado 84
  755. termino ir al estado 61
  756. factor ir al estado 62
  757. literal_real ir al estado 63
  758. literal_entero ir al estado 64
  759. signo ir al estado 65
  760.  
  761.  
  762. estado 57
  763.  
  764. 31 factor: ID .
  765.  
  766. $default reduce usando la regla 31 (factor)
  767.  
  768.  
  769. estado 58
  770.  
  771. 14 seleccion: IF condicion . DO bloque ELSE bloque ENDIF
  772.  
  773. DO desplazar e ir al estado 85
  774.  
  775.  
  776. estado 59
  777.  
  778. 15 condicion: comparacion . OPERADOR_LOGICO comparacion
  779. 17 | comparacion .
  780. 18 | comparacion . OPERADOR_LOGICO OPERADOR_NEGACION comparacion
  781.  
  782. OPERADOR_LOGICO desplazar e ir al estado 86
  783.  
  784. $default reduce usando la regla 17 (condicion)
  785.  
  786.  
  787. estado 60
  788.  
  789. 19 comparacion: expresion . OPERADOR_MAYOR expresion
  790. 20 | expresion . OPERADOR_MENOR expresion
  791. 21 | expresion . OPERADOR_MAYORIGUAL expresion
  792. 22 | expresion . OPERADOR_MENORIGUAL expresion
  793. 23 | expresion . OPERADOR_DISTINTO expresion
  794. 24 | expresion . OPERADOR_IGUAL expresion
  795. 25 expresion: expresion . OPERADOR_SUMA termino
  796. 26 | expresion . OPERADOR_RESTA termino
  797.  
  798. OPERADOR_MAYOR desplazar e ir al estado 87
  799. OPERADOR_MENOR desplazar e ir al estado 88
  800. OPERADOR_IGUAL desplazar e ir al estado 89
  801. OPERADOR_MENORIGUAL desplazar e ir al estado 90
  802. OPERADOR_MAYORIGUAL desplazar e ir al estado 91
  803. OPERADOR_DISTINTO desplazar e ir al estado 92
  804. OPERADOR_SUMA desplazar e ir al estado 93
  805. OPERADOR_RESTA desplazar e ir al estado 94
  806.  
  807.  
  808. estado 61
  809.  
  810. 27 expresion: termino .
  811. 28 termino: termino . OPERADOR_MULTIPLICACION factor
  812. 29 | termino . OPERADOR_DIVISION factor
  813.  
  814. OPERADOR_MULTIPLICACION desplazar e ir al estado 95
  815. OPERADOR_DIVISION desplazar e ir al estado 96
  816.  
  817. $default reduce usando la regla 27 (expresion)
  818.  
  819.  
  820. estado 62
  821.  
  822. 30 termino: factor .
  823.  
  824. $default reduce usando la regla 30 (termino)
  825.  
  826.  
  827. estado 63
  828.  
  829. 33 factor: literal_real .
  830.  
  831. $default reduce usando la regla 33 (factor)
  832.  
  833.  
  834. estado 64
  835.  
  836. 32 factor: literal_entero .
  837.  
  838. $default reduce usando la regla 32 (factor)
  839.  
  840.  
  841. estado 65
  842.  
  843. 53 literal_real: signo . numero_int SEPARADOR_DECIMALES numero_int
  844. 54 | signo . SEPARADOR_DECIMALES numero_int
  845. 55 | signo . numero_int SEPARADOR_DECIMALES
  846. 56 literal_entero: signo . numero_int
  847.  
  848. CONST_INT desplazar e ir al estado 97
  849. SEPARADOR_DECIMALES desplazar e ir al estado 98
  850.  
  851. numero_int ir al estado 99
  852.  
  853.  
  854. estado 66
  855.  
  856. 35 iteracion_condicional: WHILE condicion . DO bloque ENDWHILE
  857.  
  858. DO desplazar e ir al estado 100
  859.  
  860.  
  861. estado 67
  862.  
  863. 52 literal_string: COMILLA . CONST_STR COMILLA
  864.  
  865. CONST_STR desplazar e ir al estado 101
  866.  
  867.  
  868. estado 68
  869.  
  870. 42 comentario: APERTURA_COMENTARIO literal_string . CIERRE_COMENTARIO
  871.  
  872. CIERRE_COMENTARIO desplazar e ir al estado 102
  873.  
  874.  
  875. estado 69
  876.  
  877. 67 salida: DISPLAY PARENTESIS_ABRE . ID PARENTESIS_CIERRA
  878. 68 | DISPLAY PARENTESIS_ABRE . literal_entero PARENTESIS_CIERRA
  879. 69 | DISPLAY PARENTESIS_ABRE . literal_real PARENTESIS_CIERRA
  880. 70 | DISPLAY PARENTESIS_ABRE . literal_string PARENTESIS_CIERRA
  881.  
  882. OPERADOR_RESTA desplazar e ir al estado 55
  883. COMILLA desplazar e ir al estado 67
  884. ID desplazar e ir al estado 103
  885.  
  886. literal_string ir al estado 104
  887. literal_real ir al estado 105
  888. literal_entero ir al estado 106
  889. signo ir al estado 65
  890.  
  891.  
  892. estado 70
  893.  
  894. 45 asignacion: ID OPERADOR_ASIGNACION . concatenacion
  895. 46 | ID OPERADOR_ASIGNACION . expresion
  896. 47 | ID OPERADOR_ASIGNACION . literal_string
  897.  
  898. OPERADOR_RESTA desplazar e ir al estado 55
  899. PARENTESIS_ABRE desplazar e ir al estado 56
  900. COMILLA desplazar e ir al estado 67
  901. ID desplazar e ir al estado 107
  902.  
  903. expresion ir al estado 108
  904. termino ir al estado 61
  905. factor ir al estado 62
  906. concatenacion ir al estado 109
  907. literal_string ir al estado 110
  908. literal_real ir al estado 63
  909. literal_entero ir al estado 64
  910. signo ir al estado 65
  911.  
  912.  
  913. estado 71
  914.  
  915. 1 START: PROGRAM ID SEPARADOR_SENTENCIA zona_declaracion_constantes zona_declaracion_variables bloque ENDPROGRAM .
  916.  
  917. $default reduce usando la regla 1 (START)
  918.  
  919.  
  920. estado 72
  921.  
  922. 37 bloque: bloque sentencia . SEPARADOR_SENTENCIA
  923.  
  924. SEPARADOR_SENTENCIA desplazar e ir al estado 111
  925.  
  926.  
  927. estado 73
  928.  
  929. 36 bloque: sentencia SEPARADOR_SENTENCIA .
  930.  
  931. $default reduce usando la regla 36 (bloque)
  932.  
  933.  
  934. estado 74
  935.  
  936. 10 declaracion_const_reales: REAL ID OPERADOR_ASIGNACION literal_real .
  937.  
  938. $default reduce usando la regla 10 (declaracion_const_reales)
  939.  
  940.  
  941. estado 75
  942.  
  943. 53 literal_real: signo . numero_int SEPARADOR_DECIMALES numero_int
  944. 54 | signo . SEPARADOR_DECIMALES numero_int
  945. 55 | signo . numero_int SEPARADOR_DECIMALES
  946.  
  947. CONST_INT desplazar e ir al estado 97
  948. SEPARADOR_DECIMALES desplazar e ir al estado 98
  949.  
  950. numero_int ir al estado 112
  951.  
  952.  
  953. estado 76
  954.  
  955. 11 declaracion_const_int: INTEGER ID OPERADOR_ASIGNACION literal_entero .
  956.  
  957. $default reduce usando la regla 11 (declaracion_const_int)
  958.  
  959.  
  960. estado 77
  961.  
  962. 56 literal_entero: signo . numero_int
  963.  
  964. CONST_INT desplazar e ir al estado 97
  965.  
  966. numero_int ir al estado 113
  967.  
  968.  
  969. estado 78
  970.  
  971. 9 declaracion_const_str: STRING ID OPERADOR_ASIGNACION literal_string .
  972.  
  973. $default reduce usando la regla 9 (declaracion_const_str)
  974.  
  975.  
  976. estado 79
  977.  
  978. 65 iteracion_id: ID .
  979. 66 | ID . SEPARADOR_IDENTIFICADORES iteracion_id
  980.  
  981. SEPARADOR_IDENTIFICADORES desplazar e ir al estado 114
  982.  
  983. $default reduce usando la regla 65 (iteracion_id)
  984.  
  985.  
  986. estado 80
  987.  
  988. 64 definicion_real: REAL DOSPUNTOS iteracion_id . SEPARADOR_SENTENCIA
  989.  
  990. SEPARADOR_SENTENCIA desplazar e ir al estado 115
  991.  
  992.  
  993. estado 81
  994.  
  995. 63 definicion_entero: INTEGER DOSPUNTOS iteracion_id . SEPARADOR_SENTENCIA
  996.  
  997. SEPARADOR_SENTENCIA desplazar e ir al estado 116
  998.  
  999.  
  1000. estado 82
  1001.  
  1002. 62 definicion_string: STRING DOSPUNTOS iteracion_id . SEPARADOR_SENTENCIA
  1003.  
  1004. SEPARADOR_SENTENCIA desplazar e ir al estado 117
  1005.  
  1006.  
  1007. estado 83
  1008.  
  1009. 16 condicion: OPERADOR_NEGACION comparacion .
  1010.  
  1011. $default reduce usando la regla 16 (condicion)
  1012.  
  1013.  
  1014. estado 84
  1015.  
  1016. 25 expresion: expresion . OPERADOR_SUMA termino
  1017. 26 | expresion . OPERADOR_RESTA termino
  1018. 34 factor: PARENTESIS_ABRE expresion . PARENTESIS_CIERRA
  1019.  
  1020. OPERADOR_SUMA desplazar e ir al estado 93
  1021. OPERADOR_RESTA desplazar e ir al estado 94
  1022. PARENTESIS_CIERRA desplazar e ir al estado 118
  1023.  
  1024.  
  1025. estado 85
  1026.  
  1027. 14 seleccion: IF condicion DO . bloque ELSE bloque ENDIF
  1028.  
  1029. IF desplazar e ir al estado 32
  1030. WHILE desplazar e ir al estado 33
  1031. APERTURA_COMENTARIO desplazar e ir al estado 34
  1032. DISPLAY desplazar e ir al estado 35
  1033. ID desplazar e ir al estado 36
  1034.  
  1035. seleccion ir al estado 37
  1036. iteracion_condicional ir al estado 38
  1037. bloque ir al estado 119
  1038. sentencia ir al estado 40
  1039. comentario ir al estado 41
  1040. estructura_control ir al estado 42
  1041. asignacion ir al estado 43
  1042. salida ir al estado 44
  1043.  
  1044.  
  1045. estado 86
  1046.  
  1047. 15 condicion: comparacion OPERADOR_LOGICO . comparacion
  1048. 18 | comparacion OPERADOR_LOGICO . OPERADOR_NEGACION comparacion
  1049.  
  1050. OPERADOR_NEGACION desplazar e ir al estado 120
  1051. OPERADOR_RESTA desplazar e ir al estado 55
  1052. PARENTESIS_ABRE desplazar e ir al estado 56
  1053. ID desplazar e ir al estado 57
  1054.  
  1055. comparacion ir al estado 121
  1056. expresion ir al estado 60
  1057. termino ir al estado 61
  1058. factor ir al estado 62
  1059. literal_real ir al estado 63
  1060. literal_entero ir al estado 64
  1061. signo ir al estado 65
  1062.  
  1063.  
  1064. estado 87
  1065.  
  1066. 19 comparacion: expresion OPERADOR_MAYOR . expresion
  1067.  
  1068. OPERADOR_RESTA desplazar e ir al estado 55
  1069. PARENTESIS_ABRE desplazar e ir al estado 56
  1070. ID desplazar e ir al estado 57
  1071.  
  1072. expresion ir al estado 122
  1073. termino ir al estado 61
  1074. factor ir al estado 62
  1075. literal_real ir al estado 63
  1076. literal_entero ir al estado 64
  1077. signo ir al estado 65
  1078.  
  1079.  
  1080. estado 88
  1081.  
  1082. 20 comparacion: expresion OPERADOR_MENOR . expresion
  1083.  
  1084. OPERADOR_RESTA desplazar e ir al estado 55
  1085. PARENTESIS_ABRE desplazar e ir al estado 56
  1086. ID desplazar e ir al estado 57
  1087.  
  1088. expresion ir al estado 123
  1089. termino ir al estado 61
  1090. factor ir al estado 62
  1091. literal_real ir al estado 63
  1092. literal_entero ir al estado 64
  1093. signo ir al estado 65
  1094.  
  1095.  
  1096. estado 89
  1097.  
  1098. 24 comparacion: expresion OPERADOR_IGUAL . expresion
  1099.  
  1100. OPERADOR_RESTA desplazar e ir al estado 55
  1101. PARENTESIS_ABRE desplazar e ir al estado 56
  1102. ID desplazar e ir al estado 57
  1103.  
  1104. expresion ir al estado 124
  1105. termino ir al estado 61
  1106. factor ir al estado 62
  1107. literal_real ir al estado 63
  1108. literal_entero ir al estado 64
  1109. signo ir al estado 65
  1110.  
  1111.  
  1112. estado 90
  1113.  
  1114. 22 comparacion: expresion OPERADOR_MENORIGUAL . expresion
  1115.  
  1116. OPERADOR_RESTA desplazar e ir al estado 55
  1117. PARENTESIS_ABRE desplazar e ir al estado 56
  1118. ID desplazar e ir al estado 57
  1119.  
  1120. expresion ir al estado 125
  1121. termino ir al estado 61
  1122. factor ir al estado 62
  1123. literal_real ir al estado 63
  1124. literal_entero ir al estado 64
  1125. signo ir al estado 65
  1126.  
  1127.  
  1128. estado 91
  1129.  
  1130. 21 comparacion: expresion OPERADOR_MAYORIGUAL . expresion
  1131.  
  1132. OPERADOR_RESTA desplazar e ir al estado 55
  1133. PARENTESIS_ABRE desplazar e ir al estado 56
  1134. ID desplazar e ir al estado 57
  1135.  
  1136. expresion ir al estado 126
  1137. termino ir al estado 61
  1138. factor ir al estado 62
  1139. literal_real ir al estado 63
  1140. literal_entero ir al estado 64
  1141. signo ir al estado 65
  1142.  
  1143.  
  1144. estado 92
  1145.  
  1146. 23 comparacion: expresion OPERADOR_DISTINTO . expresion
  1147.  
  1148. OPERADOR_RESTA desplazar e ir al estado 55
  1149. PARENTESIS_ABRE desplazar e ir al estado 56
  1150. ID desplazar e ir al estado 57
  1151.  
  1152. expresion ir al estado 127
  1153. termino ir al estado 61
  1154. factor ir al estado 62
  1155. literal_real ir al estado 63
  1156. literal_entero ir al estado 64
  1157. signo ir al estado 65
  1158.  
  1159.  
  1160. estado 93
  1161.  
  1162. 25 expresion: expresion OPERADOR_SUMA . termino
  1163.  
  1164. OPERADOR_RESTA desplazar e ir al estado 55
  1165. PARENTESIS_ABRE desplazar e ir al estado 56
  1166. ID desplazar e ir al estado 57
  1167.  
  1168. termino ir al estado 128
  1169. factor ir al estado 62
  1170. literal_real ir al estado 63
  1171. literal_entero ir al estado 64
  1172. signo ir al estado 65
  1173.  
  1174.  
  1175. estado 94
  1176.  
  1177. 26 expresion: expresion OPERADOR_RESTA . termino
  1178.  
  1179. OPERADOR_RESTA desplazar e ir al estado 55
  1180. PARENTESIS_ABRE desplazar e ir al estado 56
  1181. ID desplazar e ir al estado 57
  1182.  
  1183. termino ir al estado 129
  1184. factor ir al estado 62
  1185. literal_real ir al estado 63
  1186. literal_entero ir al estado 64
  1187. signo ir al estado 65
  1188.  
  1189.  
  1190. estado 95
  1191.  
  1192. 28 termino: termino OPERADOR_MULTIPLICACION . factor
  1193.  
  1194. OPERADOR_RESTA desplazar e ir al estado 55
  1195. PARENTESIS_ABRE desplazar e ir al estado 56
  1196. ID desplazar e ir al estado 57
  1197.  
  1198. factor ir al estado 130
  1199. literal_real ir al estado 63
  1200. literal_entero ir al estado 64
  1201. signo ir al estado 65
  1202.  
  1203.  
  1204. estado 96
  1205.  
  1206. 29 termino: termino OPERADOR_DIVISION . factor
  1207.  
  1208. OPERADOR_RESTA desplazar e ir al estado 55
  1209. PARENTESIS_ABRE desplazar e ir al estado 56
  1210. ID desplazar e ir al estado 57
  1211.  
  1212. factor ir al estado 131
  1213. literal_real ir al estado 63
  1214. literal_entero ir al estado 64
  1215. signo ir al estado 65
  1216.  
  1217.  
  1218. estado 97
  1219.  
  1220. 57 numero_int: CONST_INT .
  1221.  
  1222. $default reduce usando la regla 57 (numero_int)
  1223.  
  1224.  
  1225. estado 98
  1226.  
  1227. 54 literal_real: signo SEPARADOR_DECIMALES . numero_int
  1228.  
  1229. CONST_INT desplazar e ir al estado 97
  1230.  
  1231. numero_int ir al estado 132
  1232.  
  1233.  
  1234. estado 99
  1235.  
  1236. 53 literal_real: signo numero_int . SEPARADOR_DECIMALES numero_int
  1237. 55 | signo numero_int . SEPARADOR_DECIMALES
  1238. 56 literal_entero: signo numero_int .
  1239.  
  1240. SEPARADOR_DECIMALES desplazar e ir al estado 133
  1241.  
  1242. $default reduce usando la regla 56 (literal_entero)
  1243.  
  1244.  
  1245. estado 100
  1246.  
  1247. 35 iteracion_condicional: WHILE condicion DO . bloque ENDWHILE
  1248.  
  1249. IF desplazar e ir al estado 32
  1250. WHILE desplazar e ir al estado 33
  1251. APERTURA_COMENTARIO desplazar e ir al estado 34
  1252. DISPLAY desplazar e ir al estado 35
  1253. ID desplazar e ir al estado 36
  1254.  
  1255. seleccion ir al estado 37
  1256. iteracion_condicional ir al estado 38
  1257. bloque ir al estado 134
  1258. sentencia ir al estado 40
  1259. comentario ir al estado 41
  1260. estructura_control ir al estado 42
  1261. asignacion ir al estado 43
  1262. salida ir al estado 44
  1263.  
  1264.  
  1265. estado 101
  1266.  
  1267. 52 literal_string: COMILLA CONST_STR . COMILLA
  1268.  
  1269. COMILLA desplazar e ir al estado 135
  1270.  
  1271.  
  1272. estado 102
  1273.  
  1274. 42 comentario: APERTURA_COMENTARIO literal_string CIERRE_COMENTARIO .
  1275.  
  1276. $default reduce usando la regla 42 (comentario)
  1277.  
  1278.  
  1279. estado 103
  1280.  
  1281. 67 salida: DISPLAY PARENTESIS_ABRE ID . PARENTESIS_CIERRA
  1282.  
  1283. PARENTESIS_CIERRA desplazar e ir al estado 136
  1284.  
  1285.  
  1286. estado 104
  1287.  
  1288. 70 salida: DISPLAY PARENTESIS_ABRE literal_string . PARENTESIS_CIERRA
  1289.  
  1290. PARENTESIS_CIERRA desplazar e ir al estado 137
  1291.  
  1292.  
  1293. estado 105
  1294.  
  1295. 69 salida: DISPLAY PARENTESIS_ABRE literal_real . PARENTESIS_CIERRA
  1296.  
  1297. PARENTESIS_CIERRA desplazar e ir al estado 138
  1298.  
  1299.  
  1300. estado 106
  1301.  
  1302. 68 salida: DISPLAY PARENTESIS_ABRE literal_entero . PARENTESIS_CIERRA
  1303.  
  1304. PARENTESIS_CIERRA desplazar e ir al estado 139
  1305.  
  1306.  
  1307. estado 107
  1308.  
  1309. 31 factor: ID .
  1310. 48 concatenacion: ID . OPERADOR_SUMA ID
  1311. 49 | ID . OPERADOR_SUMA literal_string
  1312.  
  1313. OPERADOR_SUMA desplazar e ir al estado 140
  1314.  
  1315. OPERADOR_SUMA [reduce usando la regla 31 (factor)]
  1316. $default reduce usando la regla 31 (factor)
  1317.  
  1318.  
  1319. estado 108
  1320.  
  1321. 25 expresion: expresion . OPERADOR_SUMA termino
  1322. 26 | expresion . OPERADOR_RESTA termino
  1323. 46 asignacion: ID OPERADOR_ASIGNACION expresion .
  1324.  
  1325. OPERADOR_SUMA desplazar e ir al estado 93
  1326. OPERADOR_RESTA desplazar e ir al estado 94
  1327.  
  1328. $default reduce usando la regla 46 (asignacion)
  1329.  
  1330.  
  1331. estado 109
  1332.  
  1333. 45 asignacion: ID OPERADOR_ASIGNACION concatenacion .
  1334.  
  1335. $default reduce usando la regla 45 (asignacion)
  1336.  
  1337.  
  1338. estado 110
  1339.  
  1340. 47 asignacion: ID OPERADOR_ASIGNACION literal_string .
  1341. 50 concatenacion: literal_string . OPERADOR_SUMA ID
  1342. 51 | literal_string . OPERADOR_SUMA literal_string
  1343.  
  1344. OPERADOR_SUMA desplazar e ir al estado 141
  1345.  
  1346. $default reduce usando la regla 47 (asignacion)
  1347.  
  1348.  
  1349. estado 111
  1350.  
  1351. 37 bloque: bloque sentencia SEPARADOR_SENTENCIA .
  1352.  
  1353. $default reduce usando la regla 37 (bloque)
  1354.  
  1355.  
  1356. estado 112
  1357.  
  1358. 53 literal_real: signo numero_int . SEPARADOR_DECIMALES numero_int
  1359. 55 | signo numero_int . SEPARADOR_DECIMALES
  1360.  
  1361. SEPARADOR_DECIMALES desplazar e ir al estado 133
  1362.  
  1363.  
  1364. estado 113
  1365.  
  1366. 56 literal_entero: signo numero_int .
  1367.  
  1368. $default reduce usando la regla 56 (literal_entero)
  1369.  
  1370.  
  1371. estado 114
  1372.  
  1373. 66 iteracion_id: ID SEPARADOR_IDENTIFICADORES . iteracion_id
  1374.  
  1375. ID desplazar e ir al estado 79
  1376.  
  1377. iteracion_id ir al estado 142
  1378.  
  1379.  
  1380. estado 115
  1381.  
  1382. 64 definicion_real: REAL DOSPUNTOS iteracion_id SEPARADOR_SENTENCIA .
  1383.  
  1384. $default reduce usando la regla 64 (definicion_real)
  1385.  
  1386.  
  1387. estado 116
  1388.  
  1389. 63 definicion_entero: INTEGER DOSPUNTOS iteracion_id SEPARADOR_SENTENCIA .
  1390.  
  1391. $default reduce usando la regla 63 (definicion_entero)
  1392.  
  1393.  
  1394. estado 117
  1395.  
  1396. 62 definicion_string: STRING DOSPUNTOS iteracion_id SEPARADOR_SENTENCIA .
  1397.  
  1398. $default reduce usando la regla 62 (definicion_string)
  1399.  
  1400.  
  1401. estado 118
  1402.  
  1403. 34 factor: PARENTESIS_ABRE expresion PARENTESIS_CIERRA .
  1404.  
  1405. $default reduce usando la regla 34 (factor)
  1406.  
  1407.  
  1408. estado 119
  1409.  
  1410. 14 seleccion: IF condicion DO bloque . ELSE bloque ENDIF
  1411. 37 bloque: bloque . sentencia SEPARADOR_SENTENCIA
  1412.  
  1413. IF desplazar e ir al estado 32
  1414. ELSE desplazar e ir al estado 143
  1415. WHILE desplazar e ir al estado 33
  1416. APERTURA_COMENTARIO desplazar e ir al estado 34
  1417. DISPLAY desplazar e ir al estado 35
  1418. ID desplazar e ir al estado 36
  1419.  
  1420. seleccion ir al estado 37
  1421. iteracion_condicional ir al estado 38
  1422. sentencia ir al estado 72
  1423. comentario ir al estado 41
  1424. estructura_control ir al estado 42
  1425. asignacion ir al estado 43
  1426. salida ir al estado 44
  1427.  
  1428.  
  1429. estado 120
  1430.  
  1431. 18 condicion: comparacion OPERADOR_LOGICO OPERADOR_NEGACION . comparacion
  1432.  
  1433. OPERADOR_RESTA desplazar e ir al estado 55
  1434. PARENTESIS_ABRE desplazar e ir al estado 56
  1435. ID desplazar e ir al estado 57
  1436.  
  1437. comparacion ir al estado 144
  1438. expresion ir al estado 60
  1439. termino ir al estado 61
  1440. factor ir al estado 62
  1441. literal_real ir al estado 63
  1442. literal_entero ir al estado 64
  1443. signo ir al estado 65
  1444.  
  1445.  
  1446. estado 121
  1447.  
  1448. 15 condicion: comparacion OPERADOR_LOGICO comparacion .
  1449.  
  1450. $default reduce usando la regla 15 (condicion)
  1451.  
  1452.  
  1453. estado 122
  1454.  
  1455. 19 comparacion: expresion OPERADOR_MAYOR expresion .
  1456. 25 expresion: expresion . OPERADOR_SUMA termino
  1457. 26 | expresion . OPERADOR_RESTA termino
  1458.  
  1459. OPERADOR_SUMA desplazar e ir al estado 93
  1460. OPERADOR_RESTA desplazar e ir al estado 94
  1461.  
  1462. $default reduce usando la regla 19 (comparacion)
  1463.  
  1464.  
  1465. estado 123
  1466.  
  1467. 20 comparacion: expresion OPERADOR_MENOR expresion .
  1468. 25 expresion: expresion . OPERADOR_SUMA termino
  1469. 26 | expresion . OPERADOR_RESTA termino
  1470.  
  1471. OPERADOR_SUMA desplazar e ir al estado 93
  1472. OPERADOR_RESTA desplazar e ir al estado 94
  1473.  
  1474. $default reduce usando la regla 20 (comparacion)
  1475.  
  1476.  
  1477. estado 124
  1478.  
  1479. 24 comparacion: expresion OPERADOR_IGUAL expresion .
  1480. 25 expresion: expresion . OPERADOR_SUMA termino
  1481. 26 | expresion . OPERADOR_RESTA termino
  1482.  
  1483. OPERADOR_SUMA desplazar e ir al estado 93
  1484. OPERADOR_RESTA desplazar e ir al estado 94
  1485.  
  1486. $default reduce usando la regla 24 (comparacion)
  1487.  
  1488.  
  1489. estado 125
  1490.  
  1491. 22 comparacion: expresion OPERADOR_MENORIGUAL expresion .
  1492. 25 expresion: expresion . OPERADOR_SUMA termino
  1493. 26 | expresion . OPERADOR_RESTA termino
  1494.  
  1495. OPERADOR_SUMA desplazar e ir al estado 93
  1496. OPERADOR_RESTA desplazar e ir al estado 94
  1497.  
  1498. $default reduce usando la regla 22 (comparacion)
  1499.  
  1500.  
  1501. estado 126
  1502.  
  1503. 21 comparacion: expresion OPERADOR_MAYORIGUAL expresion .
  1504. 25 expresion: expresion . OPERADOR_SUMA termino
  1505. 26 | expresion . OPERADOR_RESTA termino
  1506.  
  1507. OPERADOR_SUMA desplazar e ir al estado 93
  1508. OPERADOR_RESTA desplazar e ir al estado 94
  1509.  
  1510. $default reduce usando la regla 21 (comparacion)
  1511.  
  1512.  
  1513. estado 127
  1514.  
  1515. 23 comparacion: expresion OPERADOR_DISTINTO expresion .
  1516. 25 expresion: expresion . OPERADOR_SUMA termino
  1517. 26 | expresion . OPERADOR_RESTA termino
  1518.  
  1519. OPERADOR_SUMA desplazar e ir al estado 93
  1520. OPERADOR_RESTA desplazar e ir al estado 94
  1521.  
  1522. $default reduce usando la regla 23 (comparacion)
  1523.  
  1524.  
  1525. estado 128
  1526.  
  1527. 25 expresion: expresion OPERADOR_SUMA termino .
  1528. 28 termino: termino . OPERADOR_MULTIPLICACION factor
  1529. 29 | termino . OPERADOR_DIVISION factor
  1530.  
  1531. OPERADOR_MULTIPLICACION desplazar e ir al estado 95
  1532. OPERADOR_DIVISION desplazar e ir al estado 96
  1533.  
  1534. $default reduce usando la regla 25 (expresion)
  1535.  
  1536.  
  1537. estado 129
  1538.  
  1539. 26 expresion: expresion OPERADOR_RESTA termino .
  1540. 28 termino: termino . OPERADOR_MULTIPLICACION factor
  1541. 29 | termino . OPERADOR_DIVISION factor
  1542.  
  1543. OPERADOR_MULTIPLICACION desplazar e ir al estado 95
  1544. OPERADOR_DIVISION desplazar e ir al estado 96
  1545.  
  1546. $default reduce usando la regla 26 (expresion)
  1547.  
  1548.  
  1549. estado 130
  1550.  
  1551. 28 termino: termino OPERADOR_MULTIPLICACION factor .
  1552.  
  1553. $default reduce usando la regla 28 (termino)
  1554.  
  1555.  
  1556. estado 131
  1557.  
  1558. 29 termino: termino OPERADOR_DIVISION factor .
  1559.  
  1560. $default reduce usando la regla 29 (termino)
  1561.  
  1562.  
  1563. estado 132
  1564.  
  1565. 54 literal_real: signo SEPARADOR_DECIMALES numero_int .
  1566.  
  1567. $default reduce usando la regla 54 (literal_real)
  1568.  
  1569.  
  1570. estado 133
  1571.  
  1572. 53 literal_real: signo numero_int SEPARADOR_DECIMALES . numero_int
  1573. 55 | signo numero_int SEPARADOR_DECIMALES .
  1574.  
  1575. CONST_INT desplazar e ir al estado 97
  1576.  
  1577. $default reduce usando la regla 55 (literal_real)
  1578.  
  1579. numero_int ir al estado 145
  1580.  
  1581.  
  1582. estado 134
  1583.  
  1584. 35 iteracion_condicional: WHILE condicion DO bloque . ENDWHILE
  1585. 37 bloque: bloque . sentencia SEPARADOR_SENTENCIA
  1586.  
  1587. IF desplazar e ir al estado 32
  1588. WHILE desplazar e ir al estado 33
  1589. ENDWHILE desplazar e ir al estado 146
  1590. APERTURA_COMENTARIO desplazar e ir al estado 34
  1591. DISPLAY desplazar e ir al estado 35
  1592. ID desplazar e ir al estado 36
  1593.  
  1594. seleccion ir al estado 37
  1595. iteracion_condicional ir al estado 38
  1596. sentencia ir al estado 72
  1597. comentario ir al estado 41
  1598. estructura_control ir al estado 42
  1599. asignacion ir al estado 43
  1600. salida ir al estado 44
  1601.  
  1602.  
  1603. estado 135
  1604.  
  1605. 52 literal_string: COMILLA CONST_STR COMILLA .
  1606.  
  1607. $default reduce usando la regla 52 (literal_string)
  1608.  
  1609.  
  1610. estado 136
  1611.  
  1612. 67 salida: DISPLAY PARENTESIS_ABRE ID PARENTESIS_CIERRA .
  1613.  
  1614. $default reduce usando la regla 67 (salida)
  1615.  
  1616.  
  1617. estado 137
  1618.  
  1619. 70 salida: DISPLAY PARENTESIS_ABRE literal_string PARENTESIS_CIERRA .
  1620.  
  1621. $default reduce usando la regla 70 (salida)
  1622.  
  1623.  
  1624. estado 138
  1625.  
  1626. 69 salida: DISPLAY PARENTESIS_ABRE literal_real PARENTESIS_CIERRA .
  1627.  
  1628. $default reduce usando la regla 69 (salida)
  1629.  
  1630.  
  1631. estado 139
  1632.  
  1633. 68 salida: DISPLAY PARENTESIS_ABRE literal_entero PARENTESIS_CIERRA .
  1634.  
  1635. $default reduce usando la regla 68 (salida)
  1636.  
  1637.  
  1638. estado 140
  1639.  
  1640. 48 concatenacion: ID OPERADOR_SUMA . ID
  1641. 49 | ID OPERADOR_SUMA . literal_string
  1642.  
  1643. COMILLA desplazar e ir al estado 67
  1644. ID desplazar e ir al estado 147
  1645.  
  1646. literal_string ir al estado 148
  1647.  
  1648.  
  1649. estado 141
  1650.  
  1651. 50 concatenacion: literal_string OPERADOR_SUMA . ID
  1652. 51 | literal_string OPERADOR_SUMA . literal_string
  1653.  
  1654. COMILLA desplazar e ir al estado 67
  1655. ID desplazar e ir al estado 149
  1656.  
  1657. literal_string ir al estado 150
  1658.  
  1659.  
  1660. estado 142
  1661.  
  1662. 66 iteracion_id: ID SEPARADOR_IDENTIFICADORES iteracion_id .
  1663.  
  1664. $default reduce usando la regla 66 (iteracion_id)
  1665.  
  1666.  
  1667. estado 143
  1668.  
  1669. 14 seleccion: IF condicion DO bloque ELSE . bloque ENDIF
  1670.  
  1671. IF desplazar e ir al estado 32
  1672. WHILE desplazar e ir al estado 33
  1673. APERTURA_COMENTARIO desplazar e ir al estado 34
  1674. DISPLAY desplazar e ir al estado 35
  1675. ID desplazar e ir al estado 36
  1676.  
  1677. seleccion ir al estado 37
  1678. iteracion_condicional ir al estado 38
  1679. bloque ir al estado 151
  1680. sentencia ir al estado 40
  1681. comentario ir al estado 41
  1682. estructura_control ir al estado 42
  1683. asignacion ir al estado 43
  1684. salida ir al estado 44
  1685.  
  1686.  
  1687. estado 144
  1688.  
  1689. 18 condicion: comparacion OPERADOR_LOGICO OPERADOR_NEGACION comparacion .
  1690.  
  1691. $default reduce usando la regla 18 (condicion)
  1692.  
  1693.  
  1694. estado 145
  1695.  
  1696. 53 literal_real: signo numero_int SEPARADOR_DECIMALES numero_int .
  1697.  
  1698. $default reduce usando la regla 53 (literal_real)
  1699.  
  1700.  
  1701. estado 146
  1702.  
  1703. 35 iteracion_condicional: WHILE condicion DO bloque ENDWHILE .
  1704.  
  1705. $default reduce usando la regla 35 (iteracion_condicional)
  1706.  
  1707.  
  1708. estado 147
  1709.  
  1710. 48 concatenacion: ID OPERADOR_SUMA ID .
  1711.  
  1712. $default reduce usando la regla 48 (concatenacion)
  1713.  
  1714.  
  1715. estado 148
  1716.  
  1717. 49 concatenacion: ID OPERADOR_SUMA literal_string .
  1718.  
  1719. $default reduce usando la regla 49 (concatenacion)
  1720.  
  1721.  
  1722. estado 149
  1723.  
  1724. 50 concatenacion: literal_string OPERADOR_SUMA ID .
  1725.  
  1726. $default reduce usando la regla 50 (concatenacion)
  1727.  
  1728.  
  1729. estado 150
  1730.  
  1731. 51 concatenacion: literal_string OPERADOR_SUMA literal_string .
  1732.  
  1733. $default reduce usando la regla 51 (concatenacion)
  1734.  
  1735.  
  1736. estado 151
  1737.  
  1738. 14 seleccion: IF condicion DO bloque ELSE bloque . ENDIF
  1739. 37 bloque: bloque . sentencia SEPARADOR_SENTENCIA
  1740.  
  1741. IF desplazar e ir al estado 32
  1742. ENDIF desplazar e ir al estado 152
  1743. WHILE desplazar e ir al estado 33
  1744. APERTURA_COMENTARIO desplazar e ir al estado 34
  1745. DISPLAY desplazar e ir al estado 35
  1746. ID desplazar e ir al estado 36
  1747.  
  1748. seleccion ir al estado 37
  1749. iteracion_condicional ir al estado 38
  1750. sentencia ir al estado 72
  1751. comentario ir al estado 41
  1752. estructura_control ir al estado 42
  1753. asignacion ir al estado 43
  1754. salida ir al estado 44
  1755.  
  1756.  
  1757. estado 152
  1758.  
  1759. 14 seleccion: IF condicion DO bloque ELSE bloque ENDIF .
  1760.  
  1761. $default reduce usando la regla 14 (seleccion)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement