📄 parse.v
字号:
PLUS shift 49
SUB shift 50
MUT shift 51
DIV shift 52
LT shift 53
LE shift 54
GT shift 55
GE shift 56
. reduce 60
state 82
simple_exp : simple_exp . OR simple_exp
simple_exp : simple_exp AND simple_exp . (54)
simple_exp : simple_exp . AND simple_exp
simple_exp : simple_exp . LT simple_exp
simple_exp : simple_exp . LE simple_exp
simple_exp : simple_exp . GT simple_exp
simple_exp : simple_exp . GE simple_exp
simple_exp : simple_exp . EQ simple_exp
simple_exp : simple_exp . NEQ simple_exp
simple_exp : simple_exp . PLUS simple_exp
simple_exp : simple_exp . SUB simple_exp
simple_exp : simple_exp . MUT simple_exp
simple_exp : simple_exp . DIV simple_exp
PLUS shift 49
SUB shift 50
MUT shift 51
DIV shift 52
LT shift 53
LE shift 54
GT shift 55
GE shift 56
EQ shift 57
NEQ shift 58
. reduce 54
state 83
simple_exp : simple_exp OR simple_exp . (53)
simple_exp : simple_exp . OR simple_exp
simple_exp : simple_exp . AND simple_exp
simple_exp : simple_exp . LT simple_exp
simple_exp : simple_exp . LE simple_exp
simple_exp : simple_exp . GT simple_exp
simple_exp : simple_exp . GE simple_exp
simple_exp : simple_exp . EQ simple_exp
simple_exp : simple_exp . NEQ simple_exp
simple_exp : simple_exp . PLUS simple_exp
simple_exp : simple_exp . SUB simple_exp
simple_exp : simple_exp . MUT simple_exp
simple_exp : simple_exp . DIV simple_exp
PLUS shift 49
SUB shift 50
MUT shift 51
DIV shift 52
LT shift 53
LE shift 54
GT shift 55
GE shift 56
EQ shift 57
NEQ shift 58
AND shift 59
. reduce 53
state 84
fun_def : type_spec id fid LP params RP . comp_stmt
fun_dec : type_spec id fid LP params RP . SEMI
SEMI shift 93
LFP shift 86
comp_stmt goto 94
state 85
fun_dec : id fid LP params RP SEMI . (21)
. reduce 21
state 86
comp_stmt : LFP . local_dec stmt_list RFP
local_dec : . (32)
. reduce 32
local_dec goto 95
state 87
fun_def : id fid LP params RP comp_stmt . (19)
. reduce 19
state 88
param_list : param_list COMMA param . (24)
. reduce 24
state 89
param : type_spec id LSP . RSP
param : type_spec id LSP . simple_exp RSP
ID shift 5
NUM shift 27
FNUM shift 28
SCHAR shift 29
NOT shift 30
LP shift 31
RSP shift 96
var goto 32
simple_exp goto 97
factor goto 34
call goto 35
id goto 36
state 90
exp : var ASSIGN exp . (49)
. reduce 49
state 91
call : var LP args RP . (73)
. reduce 73
state 92
arg_list : arg_list COMMA . exp
ID shift 5
NUM shift 27
FNUM shift 28
SCHAR shift 29
NOT shift 30
LP shift 31
exp goto 98
var goto 46
simple_exp goto 47
factor goto 34
call goto 35
id goto 36
state 93
fun_dec : type_spec id fid LP params RP SEMI . (20)
. reduce 20
state 94
fun_def : type_spec id fid LP params RP comp_stmt . (18)
. reduce 18
state 95
comp_stmt : LFP local_dec . stmt_list RFP
local_dec : local_dec . var_dec
stmt_list : . (34)
INT shift 1
CHAR shift 2
FLOAT shift 3
VOID shift 4
. reduce 34
var_dec goto 99
stmt_list goto 100
type_spec goto 101
state 96
param : type_spec id LSP RSP . (28)
. reduce 28
state 97
param : type_spec id LSP simple_exp . RSP
simple_exp : simple_exp . OR simple_exp
simple_exp : simple_exp . AND simple_exp
simple_exp : simple_exp . LT simple_exp
simple_exp : simple_exp . LE simple_exp
simple_exp : simple_exp . GT simple_exp
simple_exp : simple_exp . GE simple_exp
simple_exp : simple_exp . EQ simple_exp
simple_exp : simple_exp . NEQ simple_exp
simple_exp : simple_exp . PLUS simple_exp
simple_exp : simple_exp . SUB simple_exp
simple_exp : simple_exp . MUT simple_exp
simple_exp : simple_exp . DIV simple_exp
PLUS shift 49
SUB shift 50
MUT shift 51
DIV shift 52
LT shift 53
LE shift 54
GT shift 55
GE shift 56
EQ shift 57
NEQ shift 58
AND shift 59
OR shift 60
RSP shift 102
state 98
arg_list : arg_list COMMA exp . (74)
. reduce 74
state 99
local_dec : local_dec var_dec . (31)
. reduce 31
state 100
comp_stmt : LFP local_dec stmt_list . RFP
stmt_list : stmt_list . stmt
IF shift 103
WHILE shift 104
RETURN shift 105
BREAK shift 106
CONTINUE shift 107
ID shift 5
NUM shift 27
FNUM shift 28
SCHAR shift 29
NOT shift 30
SEMI shift 108
LP shift 31
LFP shift 86
RFP shift 109
comp_stmt goto 110
stmt goto 111
exp_stmt goto 112
sele_stmt goto 113
iter_stmt goto 114
return_stmt goto 115
exp goto 116
var goto 46
simple_exp goto 47
factor goto 34
call goto 35
id goto 36
state 101
var_dec : type_spec . id_list SEMI
ID shift 5
var goto 15
id_list goto 16
id goto 117
state 102
param : type_spec id LSP simple_exp RSP . (29)
. reduce 29
state 103
sele_stmt : IF . LP exp RP stmt
sele_stmt : IF . LP exp RP stmt ELSE stmt
LP shift 118
state 104
iter_stmt : WHILE . LP exp RP stmt
LP shift 119
state 105
return_stmt : RETURN . SEMI
return_stmt : RETURN . exp SEMI
ID shift 5
NUM shift 27
FNUM shift 28
SCHAR shift 29
NOT shift 30
SEMI shift 120
LP shift 31
exp goto 121
var goto 46
simple_exp goto 47
factor goto 34
call goto 35
id goto 36
state 106
stmt : BREAK . SEMI
SEMI shift 122
state 107
stmt : CONTINUE . SEMI
SEMI shift 123
state 108
exp_stmt : SEMI . (43)
. reduce 43
state 109
comp_stmt : LFP local_dec stmt_list RFP . (30)
. reduce 30
state 110
stmt : comp_stmt . (39)
. reduce 39
state 111
stmt_list : stmt_list stmt . (33)
. reduce 33
state 112
stmt : exp_stmt . (35)
. reduce 35
state 113
stmt : sele_stmt . (36)
. reduce 36
state 114
stmt : iter_stmt . (37)
. reduce 37
state 115
stmt : return_stmt . (38)
. reduce 38
state 116
exp_stmt : exp . SEMI
SEMI shift 124
state 117
id_list : id . ASSIGN simple_exp
var : id . (51)
var : id . LSP simple_exp RSP
ASSIGN shift 21
LSP shift 22
. reduce 51
state 118
sele_stmt : IF LP . exp RP stmt
sele_stmt : IF LP . exp RP stmt ELSE stmt
ID shift 5
NUM shift 27
FNUM shift 28
SCHAR shift 29
NOT shift 30
LP shift 31
exp goto 125
var goto 46
simple_exp goto 47
factor goto 34
call goto 35
id goto 36
state 119
iter_stmt : WHILE LP . exp RP stmt
ID shift 5
NUM shift 27
FNUM shift 28
SCHAR shift 29
NOT shift 30
LP shift 31
exp goto 126
var goto 46
simple_exp goto 47
factor goto 34
call goto 35
id goto 36
state 120
return_stmt : RETURN SEMI . (47)
. reduce 47
state 121
return_stmt : RETURN exp . SEMI
SEMI shift 127
state 122
stmt : BREAK SEMI . (41)
. reduce 41
state 123
stmt : CONTINUE SEMI . (40)
. reduce 40
state 124
exp_stmt : exp SEMI . (42)
. reduce 42
state 125
sele_stmt : IF LP exp . RP stmt
sele_stmt : IF LP exp . RP stmt ELSE stmt
RP shift 128
state 126
iter_stmt : WHILE LP exp . RP stmt
RP shift 129
state 127
return_stmt : RETURN exp SEMI . (48)
. reduce 48
state 128
sele_stmt : IF LP exp RP . stmt
sele_stmt : IF LP exp RP . stmt ELSE stmt
IF shift 103
WHILE shift 104
RETURN shift 105
BREAK shift 106
CONTINUE shift 107
ID shift 5
NUM shift 27
FNUM shift 28
SCHAR shift 29
NOT shift 30
SEMI shift 108
LP shift 31
LFP shift 86
comp_stmt goto 110
stmt goto 130
exp_stmt goto 112
sele_stmt goto 113
iter_stmt goto 114
return_stmt goto 115
exp goto 116
var goto 46
simple_exp goto 47
factor goto 34
call goto 35
id goto 36
state 129
iter_stmt : WHILE LP exp RP . stmt
IF shift 103
WHILE shift 104
RETURN shift 105
BREAK shift 106
CONTINUE shift 107
ID shift 5
NUM shift 27
FNUM shift 28
SCHAR shift 29
NOT shift 30
SEMI shift 108
LP shift 31
LFP shift 86
comp_stmt goto 110
stmt goto 131
exp_stmt goto 112
sele_stmt goto 113
iter_stmt goto 114
return_stmt goto 115
exp goto 116
var goto 46
simple_exp goto 47
factor goto 34
call goto 35
id goto 36
state 130
sele_stmt : IF LP exp RP stmt . (44)
sele_stmt : IF LP exp RP stmt . ELSE stmt
ELSE shift 132
. reduce 44
state 131
iter_stmt : WHILE LP exp RP stmt . (46)
. reduce 46
state 132
sele_stmt : IF LP exp RP stmt ELSE . stmt
IF shift 103
WHILE shift 104
RETURN shift 105
BREAK shift 106
CONTINUE shift 107
ID shift 5
NUM shift 27
FNUM shift 28
SCHAR shift 29
NOT shift 30
SEMI shift 108
LP shift 31
LFP shift 86
comp_stmt goto 110
stmt goto 133
exp_stmt goto 112
sele_stmt goto 113
iter_stmt goto 114
return_stmt goto 115
exp goto 116
var goto 46
simple_exp goto 47
factor goto 34
call goto 35
id goto 36
state 133
sele_stmt : IF LP exp RP stmt ELSE stmt . (45)
. reduce 45
##############################################################################
# Summary
##############################################################################
38 token(s), 29 nonterminal(s)
78 grammar rule(s), 134 state(s)
##############################################################################
# End of File
##############################################################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -