📄 myparser.v
字号:
GE shift 66
NEQ shift 67
. reduce 31
state 45
simple_exp : term . (35)
term : term . TIMES factor
term : term . OVER factor
TIMES shift 68
OVER shift 69
. reduce 35
state 46
term : factor . (38)
. reduce 38
state 47
factor : num . (41)
. reduce 41
state 48
repeat_statement : WHILE LPAREN expr . RPAREN statement
RPAREN shift 70
state 49
repeat_statement : FOR LPAREN expr . RPAREN statement
RPAREN shift 71
state 50
print_statement : PRINT LPAREN expr . RPAREN SEMI
RPAREN shift 72
state 51
input_statement : INPUT LPAREN id . RPAREN SEMI
RPAREN shift 73
state 52
type_statement : type_specifier id_list SEMI . (2)
. reduce 2
state 53
id_list : id_list COMMON . id
ID shift 7
id goto 74
state 54
assign_statement : id EQ expr . SEMI
SEMI shift 75
state 55
factor : LPAREN expr . RPAREN
RPAREN shift 76
56: shift-reduce conflict (shift 61, reduce 32) on PLUS
56: shift-reduce conflict (shift 62, reduce 32) on MINUS
state 56
simple_exp : NOT simple_exp . (32)
simple_exp : simple_exp . PLUS term
simple_exp : simple_exp . MINUS term
PLUS shift 61
MINUS shift 62
. reduce 32
state 57
selection_statement : IF LPAREN expr RPAREN . statement
ID shift 7
IF shift 8
CHAR shift 9
DOUBLE shift 10
INT shift 11
WHILE shift 12
LEFTBIG shift 5
FOR shift 14
PRINT shift 15
INPUT shift 16
compound_statement goto 17
type_statement goto 18
type_specifier goto 19
id goto 20
assign_statement goto 21
selection_statement goto 22
statement goto 77
repeat_statement goto 24
print_statement goto 25
input_statement goto 26
state 58
expr : uexpr AND . uexpr
ID shift 7
NUM shift 38
LPAREN shift 39
NOT shift 40
id goto 41
uexpr goto 78
simple_exp goto 44
term goto 45
factor goto 46
num goto 47
state 59
expr : uexpr OR . uexpr
ID shift 7
NUM shift 38
LPAREN shift 39
NOT shift 40
id goto 41
uexpr goto 79
simple_exp goto 44
term goto 45
factor goto 46
num goto 47
state 60
uexpr : simple_exp LT . simple_exp
ID shift 7
NUM shift 38
LPAREN shift 39
NOT shift 40
id goto 41
simple_exp goto 80
term goto 45
factor goto 46
num goto 47
state 61
simple_exp : simple_exp PLUS . term
ID shift 7
NUM shift 38
LPAREN shift 39
id goto 41
term goto 81
factor goto 46
num goto 47
state 62
simple_exp : simple_exp MINUS . term
ID shift 7
NUM shift 38
LPAREN shift 39
id goto 41
term goto 82
factor goto 46
num goto 47
state 63
uexpr : simple_exp EQ_OP . simple_exp
ID shift 7
NUM shift 38
LPAREN shift 39
NOT shift 40
id goto 41
simple_exp goto 83
term goto 45
factor goto 46
num goto 47
state 64
uexpr : simple_exp LE . simple_exp
ID shift 7
NUM shift 38
LPAREN shift 39
NOT shift 40
id goto 41
simple_exp goto 84
term goto 45
factor goto 46
num goto 47
state 65
uexpr : simple_exp GT . simple_exp
ID shift 7
NUM shift 38
LPAREN shift 39
NOT shift 40
id goto 41
simple_exp goto 85
term goto 45
factor goto 46
num goto 47
state 66
uexpr : simple_exp GE . simple_exp
ID shift 7
NUM shift 38
LPAREN shift 39
NOT shift 40
id goto 41
simple_exp goto 86
term goto 45
factor goto 46
num goto 47
state 67
uexpr : simple_exp NEQ . simple_exp
ID shift 7
NUM shift 38
LPAREN shift 39
NOT shift 40
id goto 41
simple_exp goto 87
term goto 45
factor goto 46
num goto 47
state 68
term : term TIMES . factor
ID shift 7
NUM shift 38
LPAREN shift 39
id goto 41
factor goto 88
num goto 47
state 69
term : term OVER . factor
ID shift 7
NUM shift 38
LPAREN shift 39
id goto 41
factor goto 89
num goto 47
state 70
repeat_statement : WHILE LPAREN expr RPAREN . statement
ID shift 7
IF shift 8
CHAR shift 9
DOUBLE shift 10
INT shift 11
WHILE shift 12
LEFTBIG shift 5
FOR shift 14
PRINT shift 15
INPUT shift 16
compound_statement goto 17
type_statement goto 18
type_specifier goto 19
id goto 20
assign_statement goto 21
selection_statement goto 22
statement goto 90
repeat_statement goto 24
print_statement goto 25
input_statement goto 26
state 71
repeat_statement : FOR LPAREN expr RPAREN . statement
ID shift 7
IF shift 8
CHAR shift 9
DOUBLE shift 10
INT shift 11
WHILE shift 12
LEFTBIG shift 5
FOR shift 14
PRINT shift 15
INPUT shift 16
compound_statement goto 17
type_statement goto 18
type_specifier goto 19
id goto 20
assign_statement goto 21
selection_statement goto 22
statement goto 91
repeat_statement goto 24
print_statement goto 25
input_statement goto 26
state 72
print_statement : PRINT LPAREN expr RPAREN . SEMI
SEMI shift 92
state 73
input_statement : INPUT LPAREN id RPAREN . SEMI
SEMI shift 93
state 74
id_list : id_list COMMON id . (4)
. reduce 4
state 75
assign_statement : id EQ expr SEMI . (5)
. reduce 5
state 76
factor : LPAREN expr RPAREN . (39)
. reduce 39
state 77
selection_statement : IF LPAREN expr RPAREN statement . (6)
. reduce 6
state 78
expr : uexpr AND uexpr . (22)
. reduce 22
state 79
expr : uexpr OR uexpr . (23)
. reduce 23
state 80
uexpr : simple_exp LT simple_exp . (25)
simple_exp : simple_exp . PLUS term
simple_exp : simple_exp . MINUS term
PLUS shift 61
MINUS shift 62
. reduce 25
state 81
simple_exp : simple_exp PLUS term . (33)
term : term . TIMES factor
term : term . OVER factor
TIMES shift 68
OVER shift 69
. reduce 33
state 82
simple_exp : simple_exp MINUS term . (34)
term : term . TIMES factor
term : term . OVER factor
TIMES shift 68
OVER shift 69
. reduce 34
state 83
uexpr : simple_exp EQ_OP simple_exp . (26)
simple_exp : simple_exp . PLUS term
simple_exp : simple_exp . MINUS term
PLUS shift 61
MINUS shift 62
. reduce 26
state 84
uexpr : simple_exp LE simple_exp . (28)
simple_exp : simple_exp . PLUS term
simple_exp : simple_exp . MINUS term
PLUS shift 61
MINUS shift 62
. reduce 28
state 85
uexpr : simple_exp GT simple_exp . (27)
simple_exp : simple_exp . PLUS term
simple_exp : simple_exp . MINUS term
PLUS shift 61
MINUS shift 62
. reduce 27
state 86
uexpr : simple_exp GE simple_exp . (29)
simple_exp : simple_exp . PLUS term
simple_exp : simple_exp . MINUS term
PLUS shift 61
MINUS shift 62
. reduce 29
state 87
uexpr : simple_exp NEQ simple_exp . (30)
simple_exp : simple_exp . PLUS term
simple_exp : simple_exp . MINUS term
PLUS shift 61
MINUS shift 62
. reduce 30
state 88
term : term TIMES factor . (36)
. reduce 36
state 89
term : term OVER factor . (37)
. reduce 37
state 90
repeat_statement : WHILE LPAREN expr RPAREN statement . (7)
. reduce 7
state 91
repeat_statement : FOR LPAREN expr RPAREN statement . (8)
. reduce 8
state 92
print_statement : PRINT LPAREN expr RPAREN SEMI . (9)
. reduce 9
state 93
input_statement : INPUT LPAREN id RPAREN SEMI . (10)
. reduce 10
##############################################################################
# Summary
##############################################################################
State 56 contains 2 shift-reduce conflict(s)
33 token(s), 20 nonterminal(s)
47 grammar rule(s), 94 state(s)
##############################################################################
# End of File
##############################################################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -