Bottom-Up Parsing/Example 2: SLR(1): Difference between revisions

From Wiki**3

< Bottom-Up Parsing
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{TOCright}}
#REDIRECT [[ist:Bottom-Up Parsing/Example 2: SLR(1)]]
= Problem =
 
S -> 1 S 1 | 1 X 0 | 2
X -> 2 | S 1 | X 2
 
Initial symbol: S
 
Terminals: { 0, 1, 2 }
 
Input: 112110
 
== Solution ==
 
[[category:Teaching]]
[[category:Compilers]]

Latest revision as of 18:03, 6 December 2018