• 2022-06-04
    对于文法G(S'):(0) S' → S(1) S → aS (2) S → bS(3) S → a该文法的LR分析表如下: ACTIONGOTO状态ab#S0s1s2 31s1s2r342s1s2 53 acc 4 r1 5 r2 下面是输入串aba#的LR分析过程的0~4步的格局,第5步的格局是步骤状态栈符号栈输入串00#aba#101#aba#2012#aba#30121#aba#40125#abS#5
    A: 步骤状态栈符号栈输入串5014
    B: aS
    C:
    D: 步骤状态栈符号栈输入串50124
    E: aS
    F:
    G: 步骤状态栈符号栈输入串5015
    H: aS
    I:
    J: 步骤状态栈符号栈输入串50125
    K: aS
    L: