-
Notifications
You must be signed in to change notification settings - Fork 0
/
reporteGramatical.html
82 lines (81 loc) · 4.2 KB
/
reporteGramatical.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<html>
<head>
<title>Reporte Gramatical</title>
</head>
<body bgcolor="black">
<center><Font size=22 color=darkred>Reporte Gramatical</Font></center>
<hr >
<font color=white>
<center>
<table border=1 align=center style="width:80%;" >
<TR bgcolor=darkred>
<TH style="font-size: 18px; width:40%; color:white" align=center>Producción</TH>
<TH style="font-size: 18px; width:40%; color:white" align=center>Reglas Semánticas</TH>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth>S->etiquetas</TD>
<TD style="font-size: 15px; color:white;" color:white align=left> </TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>etiquetas -> etiqueta</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>etiquetas.lista = [etiqueta]</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>etiqueta -> ID DOSP instrucciones</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>etiqueta.instrucciones.lista = []; </hr> etiqueta.instrucciones.lista = instrucciones.lista;</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>instruccion -> imprimir_instr</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>instruccion.instr = imprimir_instr.instr;</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>imprimir_instr ->IMPRIMIR PARIZQ tipo_var PARDER PTCOMA</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>imprimir_instr.instr = Print(tipo_var.val);</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>instruccion -> asignacion</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>instruccion.instr = asignacion.instr;</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>asignacion -> tipo_var IGUAL expresion PTCOMA</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>asignacion.instr = Asignar(tipo_var.val,expresion.val);</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>expresion -> expresion_numerica</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>expresion.val = expresion_numerica.val;</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>expresion_numerica -> primitiva MAS primitiva</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>expresion_numerica.val = primitiva1.val + primitiva2.val;</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>instruccion -> asignacion</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>instruccion.instr = asignacion.instr;</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>asignacion -> tipo_var IGUAL expresion PTCOMA</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>asignacion.instr = Asignar(tipo_var.val,expresion.val);</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>expresion -> primitiva</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>expresion.val = primitiva.val;</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>instruccion -> asignacion</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>instruccion.instr = asignacion.instr;</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>asignacion -> tipo_var IGUAL expresion PTCOMA</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>asignacion.instr = Asignar(tipo_var.val,expresion.val);</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>expresion -> primitiva</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>expresion.val = primitiva.val;</p></TD>
</TR>
<TR>
<TD style="font-size: 15px; color:white;" color:white align=rigth><p>tipo_var -> TEMP</p></TD>
<TD style="font-size: 15px; color:white;" color:white align=left><p>tipo_var.val = TEMP;</p></TD>
</TR>
</center>
</table></body>
</html>