📄 pl3.output
字号:
state 36
Cstmt -> WHILE . tmp_cx cond tmp_jpc DO Cstmt (rule 39)
Ostmt -> WHILE . tmp_cx cond tmp_jpc DO Ostmt (rule 44)
$default reduce using rule 28 (tmp_cx)
tmp_cx go to state 54
state 37
Cstmt -> CALL . id arguments (rule 36)
LEGAL_ID shift, and go to state 7
id go to state 55
state 38
Cstmt -> READ . '(' read_list ')' (rule 37)
'(' shift, and go to state 56
state 39
Cstmt -> WRITE . '(' write_list ')' (rule 38)
'(' shift, and go to state 57
state 40
Cstmt -> IF . cond THEN tmp_jpc Cstmt tmp_else ELSE Cstmt (rule 34)
Ostmt -> IF . cond THEN tmp_jpc statement (rule 42)
Ostmt -> IF . cond THEN tmp_jpc Cstmt tmp_else ELSE Ostmt (rule 43)
ODD shift, and go to state 58
'+' shift, and go to state 59
'-' shift, and go to state 60
$default reduce using rule 69 (sign)
cond go to state 61
expression go to state 62
sign go to state 63
state 41
var_ref -> id . (rule 49)
var_ref -> id . '(' expression ')' (rule 50)
'(' shift, and go to state 64
$default reduce using rule 49 (var_ref)
state 42
subprogram -> tmp_cx @1 const_dec var_dec procedure_dec @2 statement . (rule 4)
$default reduce using rule 4 (subprogram)
state 43
statement -> Cstmt . (rule 31)
$default reduce using rule 31 (statement)
state 44
statement -> Ostmt . (rule 32)
$default reduce using rule 32 (statement)
state 45
Cstmt -> var_ref . COLEQ expression (rule 33)
COLEQ shift, and go to state 65
state 46
var_def -> id '(' bound_pair ')' . (rule 15)
$default reduce using rule 15 (var_def)
state 47
bound_pair -> array_bound ':' . array_bound (rule 16)
LEGAL_ID shift, and go to state 7
NUMBER shift, and go to state 28
array_bound go to state 66
id go to state 31
state 48
procedure_dec -> procedure_dec PROCEDURE procedure_head subprogram . ';' (rule 19)
';' shift, and go to state 67
state 49
procedure_head -> id @3 . ';' (rule 22)
';' shift, and go to state 68
state 50
procedure_head -> id @4 . '(' para_list ')' ';' (rule 24)
'(' shift, and go to state 69
state 51
statement_list -> statement . (rule 45)
$default reduce using rule 45 (statement_list)
state 52
Cstmt -> BEGINSYM statement_list . ENDSYM (rule 35)
statement_list -> statement_list . ';' statement (rule 46)
ENDSYM shift, and go to state 70
';' shift, and go to state 71
state 53
Cstmt -> REPEAT tmp_cx . statement UNTIL cond (rule 40)
BEGINSYM shift, and go to state 34
REPEAT shift, and go to state 35
WHILE shift, and go to state 36
CALL shift, and go to state 37
READ shift, and go to state 38
WRITE shift, and go to state 39
LEGAL_ID shift, and go to state 7
IF shift, and go to state 40
$default reduce using rule 41 (Cstmt)
id go to state 41
statement go to state 72
Cstmt go to state 43
Ostmt go to state 44
var_ref go to state 45
state 54
Cstmt -> WHILE tmp_cx . cond tmp_jpc DO Cstmt (rule 39)
Ostmt -> WHILE tmp_cx . cond tmp_jpc DO Ostmt (rule 44)
ODD shift, and go to state 58
'+' shift, and go to state 59
'-' shift, and go to state 60
$default reduce using rule 69 (sign)
cond go to state 73
expression go to state 62
sign go to state 63
state 55
Cstmt -> CALL id . arguments (rule 36)
'(' shift, and go to state 74
$default reduce using rule 47 (arguments)
arguments go to state 75
state 56
Cstmt -> READ '(' . read_list ')' (rule 37)
LEGAL_ID shift, and go to state 7
id go to state 41
var_ref go to state 76
read_list go to state 77
state 57
Cstmt -> WRITE '(' . write_list ')' (rule 38)
'+' shift, and go to state 59
'-' shift, and go to state 60
$default reduce using rule 69 (sign)
write_list go to state 78
expression go to state 79
sign go to state 63
state 58
cond -> ODD . expression (rule 57)
'+' shift, and go to state 59
'-' shift, and go to state 60
$default reduce using rule 69 (sign)
expression go to state 80
sign go to state 63
state 59
sign -> '+' . (rule 67)
$default reduce using rule 67 (sign)
state 60
sign -> '-' . (rule 68)
$default reduce using rule 68 (sign)
state 61
Cstmt -> IF cond . THEN tmp_jpc Cstmt tmp_else ELSE Cstmt (rule 34)
Ostmt -> IF cond . THEN tmp_jpc statement (rule 42)
Ostmt -> IF cond . THEN tmp_jpc Cstmt tmp_else ELSE Ostmt (rule 43)
THEN shift, and go to state 81
state 62
cond -> expression . relation_opr expression (rule 58)
expression -> expression . add_opr term (rule 66)
LE shift, and go to state 82
RE shift, and go to state 83
'+' shift, and go to state 84
'-' shift, and go to state 85
'=' shift, and go to state 86
'<' shift, and go to state 87
'>' shift, and go to state 88
'#' shift, and go to state 89
relation_opr go to state 90
add_opr go to state 91
state 63
expression -> sign . term (rule 65)
LEGAL_ID shift, and go to state 7
NUMBER shift, and go to state 92
'(' shift, and go to state 93
id go to state 41
var_ref go to state 94
term go to state 95
factor go to state 96
state 64
var_ref -> id '(' . expression ')' (rule 50)
'+' shift, and go to state 59
'-' shift, and go to state 60
$default reduce using rule 69 (sign)
expression go to state 97
sign go to state 63
state 65
Cstmt -> var_ref COLEQ . expression (rule 33)
'+' shift, and go to state 59
'-' shift, and go to state 60
$default reduce using rule 69 (sign)
expression go to state 98
sign go to state 63
state 66
bound_pair -> array_bound ':' array_bound . (rule 16)
$default reduce using rule 16 (bound_pair)
state 67
procedure_dec -> procedure_dec PROCEDURE procedure_head subprogram ';' . (rule 19)
$default reduce using rule 19 (procedure_dec)
state 68
procedure_head -> id @3 ';' . (rule 22)
$default reduce using rule 22 (procedure_head)
state 69
procedure_head -> id @4 '(' . para_list ')' ';' (rule 24)
LEGAL_ID shift, and go to state 7
para_list go to state 99
id go to state 100
state 70
Cstmt -> BEGINSYM statement_list ENDSYM . (rule 35)
$default reduce using rule 35 (Cstmt)
state 71
statement_list -> statement_list ';' . statement (rule 46)
BEGINSYM shift, and go to state 34
REPEAT shift, and go to state 35
WHILE shift, and go to state 36
CALL shift, and go to state 37
READ shift, and go to state 38
WRITE shift, and go to state 39
LEGAL_ID shift, and go to state 7
IF shift, and go to state 40
$default reduce using rule 41 (Cstmt)
id go to state 41
statement go to state 101
Cstmt go to state 43
Ostmt go to state 44
var_ref go to state 45
state 72
Cstmt -> REPEAT tmp_cx statement . UNTIL cond (rule 40)
UNTIL shift, and go to state 102
state 73
Cstmt -> WHILE tmp_cx cond . tmp_jpc DO Cstmt (rule 39)
Ostmt -> WHILE tmp_cx cond . tmp_jpc DO Ostmt (rule 44)
$default reduce using rule 29 (tmp_jpc)
tmp_jpc go to state 103
state 74
arguments -> '(' . expression_list ')' (rule 48)
'+' shift, and go to state 59
'-' shift, and go to state 60
$default reduce using rule 69 (sign)
expression_list go to state 104
expression go to state 105
sign go to state 63
state 75
Cstmt -> CALL id arguments . (rule 36)
$default reduce using rule 36 (Cstmt)
state 76
read_list -> var_ref . (rule 51)
$default reduce using rule 51 (read_list)
state 77
Cstmt -> READ '(' read_list . ')' (rule 37)
read_list -> read_list . ',' var_ref (rule 52)
',' shift, and go to state 106
')' shift, and go to state 107
state 78
Cstmt -> WRITE '(' write_list . ')' (rule 38)
write_list -> write_list . ',' expression (rule 56)
',' shift, and go to state 108
')' shift, and go to state 109
state 79
write_list -> expression . (rule 55)
expression -> expression . add_opr term (rule 66)
'+' shift, and go to state 84
'-' shift, and go to state 85
$default reduce using rule 55 (write_list)
add_opr go to state 91
state 80
cond -> ODD expression . (rule 57)
expression -> expression . add_opr term (rule 66)
'+' shift, and go to state 84
'-' shift, and go to state 85
$default reduce using rule 57 (cond)
add_opr go to state 91
state 81
Cstmt -> IF cond THEN . tmp_jpc Cstmt tmp_else ELSE Cstmt (rule 34)
Ostmt -> IF cond THEN . tmp_jpc statement (rule 42)
Ostmt -> IF cond THEN . tmp_jpc Cstmt tmp_else ELSE Ostmt (rule 43)
$default reduce using rule 29 (tmp_jpc)
tmp_jpc go to state 110
state 82
relation_opr -> LE . (rule 63)
$default reduce using rule 63 (relation_opr)
state 83
relation_opr -> RE . (rule 64)
$default reduce using rule 64 (relation_opr)
state 84
add_opr -> '+' . (rule 70)
$default reduce using rule 70 (add_opr)
state 85
add_opr -> '-' . (rule 71)
$default reduce using rule 71 (add_opr)
state 86
relation_opr -> '=' . (rule 59)
$default reduce using rule 59 (relation_opr)
state 87
relation_opr -> '<' . (rule 60)
$default reduce using rule 60 (relation_opr)
state 88
relation_opr -> '>' . (rule 61)
$default reduce using rule 61 (relation_opr)
state 89
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -