Introducción a Yacc - GIAA
Introducción a Yacc - GIAA
Introducción a Yacc - GIAA
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Yacc</strong>. Procesadores de Lenguaje II<br />
Ambigüedad con yacc<br />
State 8 contains 2 shift/reduce conflicts.<br />
State 9 contains 2 shift/reduce conflicts.<br />
Grammar<br />
rule 1 S -> expr<br />
rule 2 expr -> expr MAS expr<br />
rule 3 expr -> expr POR expr<br />
rule 4 expr -> '(' expr ')'<br />
rule 5 expr -> NUMERO<br />
Terminals, with rules where they appear<br />
$ (-1)<br />
'(' (40) 4<br />
')' (41) 4<br />
NUMERO (258) 5<br />
MAS (259) 2<br />
POR (260) 3