Difference between revisions of "Bottom-Up Parsing/Example 4: LALR(1)"

From Wiki**3

< Bottom-Up Parsing
(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...")
 
Line 18: Line 18:
 
== Solution ==
 
== Solution ==
  
[[category:Teaching]]
+
[[category:Compiladores]]
[[category:Compilers]]
+
[[category:Ensino]]

Revision as of 16:27, 6 April 2015

Problem

S -> L = R | R
L -> * R | id
R -> L

Initial symbol: S

Terminals: { =, *, id }

Input:

Compact.

Is this an SLR(1) grammar?

Solution