Professional Documents
Culture Documents
Homework About Principle of Compiler
Homework About Principle of Compiler
S (L)|a
LL,S|S
Show the detailed proc ess of the parsing of the sentence( a , ( a , a ) ) follow the
a ( ) , $
$ < <
解:由题意得解题如下:
句子(a,(a,a)
)的分析过程如下:
0 $ (a,
(a,a))$ $<( shift
1 $( a,
(a,a)
)$ (<a shift
18 $S $ $=$ accept