Analizador Sintactico
Publicado por Saul (10 intervenciones) el 02/04/2017 02:18:10
Tengo un analizador sintáctico y tengo algunos problemas con las gramáticas a la hora de compilar,
eh intentado poner precedencia, pero aun así los errores no desaparecen
Las advertencias dicen:
Warning : *** Shift/Reduce conflict found in state #37
between expr ::= exp_simple (*)
under symbol Mult
Resolved in favor of shifting.
Warning : *** Shift/Reduce conflict found in state #37
between expr ::= exp_simple (*)
under symbol Div
Resolved in favor of shifting.
Warning : *** Shift/Reduce conflict found in state #37
between expr ::= exp_simple (*)
and expr ::= exp_simple (*) Menorque NT$11 exp_simple
under symbol Menorque
Resolved in favor of shifting.
Warning : *** Shift/Reduce conflict found in state #37
between expr ::= exp_simple (*)
and expr ::= exp_simple (*) Igual NT$12 exp_simple
under symbol Igual
Resolved in favor of shifting.
Warning : *** Production "NT$2 ::= " never reduced
Error : *** More conflicts encountered than expected -- parser generation aborted
------- CUP v0.11a beta 20060608 Parser Generation Summary -------
1 error and 277 warnings
27 terminals, 30 non-terminals, and 46 productions declared,
producing 71 unique parse states.
7 terminals declared but not used.
0 non-terminals declared but not used.
0 productions never reduced.
269 conflicts detected (0 expected).
No code produced.
---------------------------------------------------- (v0.11a beta 20060608)
Alguien tendrá alguna idea de porque pasa esto?, no encuentro solucion
estoy agradecido por cualquier ayuda!
eh intentado poner precedencia, pero aun así los errores no desaparecen
Las advertencias dicen:
Warning : *** Shift/Reduce conflict found in state #37
between expr ::= exp_simple (*)
under symbol Mult
Resolved in favor of shifting.
Warning : *** Shift/Reduce conflict found in state #37
between expr ::= exp_simple (*)
under symbol Div
Resolved in favor of shifting.
Warning : *** Shift/Reduce conflict found in state #37
between expr ::= exp_simple (*)
and expr ::= exp_simple (*) Menorque NT$11 exp_simple
under symbol Menorque
Resolved in favor of shifting.
Warning : *** Shift/Reduce conflict found in state #37
between expr ::= exp_simple (*)
and expr ::= exp_simple (*) Igual NT$12 exp_simple
under symbol Igual
Resolved in favor of shifting.
Warning : *** Production "NT$2 ::= " never reduced
Error : *** More conflicts encountered than expected -- parser generation aborted
------- CUP v0.11a beta 20060608 Parser Generation Summary -------
1 error and 277 warnings
27 terminals, 30 non-terminals, and 46 productions declared,
producing 71 unique parse states.
7 terminals declared but not used.
0 non-terminals declared but not used.
0 productions never reduced.
269 conflicts detected (0 expected).
No code produced.
---------------------------------------------------- (v0.11a beta 20060608)
Alguien tendrá alguna idea de porque pasa esto?, no encuentro solucion
estoy agradecido por cualquier ayuda!
Valora esta pregunta


0