(Created page with "== Problema == Consider the following grammar, where A is the initial symbol and '''{ x, y, z }''' is the set of terminal symbols: <source lang="text"> A -> A M | z R -> x |...") |
(→Solução) |
||
Line 12: | Line 12: | ||
== Solução == | == Solução == | ||
+ | Note-se que a solução apresentada é para SLR(0) e LALR(1) (a vermelho). | ||
{{CollapsedCode|Solução completa| | {{CollapsedCode|Solução completa| |
Consider the following grammar, where A is the initial symbol and { x, y, z } is the set of terminal symbols:
A -> A M | z
R -> x | z
M -> R y | z
Note-se que a solução apresentada é para SLR(0) e LALR(1) (a vermelho).
Solução completa |
---|