(Created page with "== Problema == Consider the following grammar, where '''R''' is the initial symbol and '''{ a, b, c }''' is the set of terminal symbols: <source lang="text"> X -> a | c R ->...") |
(→Solução) |
||
Line 11: | Line 11: | ||
== 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 R is the initial symbol and { a, b, c } is the set of terminal symbols:
X -> a | c
R -> R X b | R a | a
Note-se que a solução apresentada é para SLR(0) e LALR(1) (a vermelho).
Solução completa |
---|