(Created page with "{{TOCright}} = Problem = S -> L = R | R L -> * R | id R -> L Initial symbol: S Terminals: { =, *, id } Input: Compact. Is this an SLR(1) grammar? == Solution == [[cat...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | __NOTOC__ | |
− | = Problem = | + | == Problem == |
− | + | Initial symbol: '''S''' | |
− | |||
− | |||
− | + | Terminals: '''{ =, *, id }''' | |
+ | <!-- | ||
+ | Input: --> | ||
− | + | S → L = R | R | |
+ | L → * R | id | ||
+ | R → L | ||
− | + | Is this an SLR(1) grammar? | |
− | + | Compute and compact the parse table. | |
− | |||
− | |||
== Solution == | == Solution == | ||
− | [[category: | + | [[category:Compiladores]] |
− | [[category: | + | [[category:Ensino]] |
Initial symbol: S
Terminals: { =, *, id }
S → L = R | R L → * R | id R → L
Is this an SLR(1) grammar?
Compute and compact the parse table.