uahgi2/uahgi-ng/a.txt

680 lines
12 KiB
Text
Raw Normal View History

2025-10-03 00:25:16 +08:00
0 g1038660 = (g1038661)
1 g1038661 = (u-program EOF)
2 u-program = ()
3 u-program = (u-expr u-program)
4 u-expr = (u-series)
5 u-expr = (u-atom)
6 u-expr = (u-converting-num)
7 u-expr = (L_PAREN u-sexps R_PAREN)
8 u-sexps = ()
9 u-sexps = (u-expr u-sexps)
10 u-series-unit = (ID)
11 u-series-unit = (u-string)
12 u-series-unit = (NUM)
13 u-series-unit = (L_PAREN u-sexps R_PAREN)
14 u-series-unit = (newlines)
15 u-series = ()
16 u-series = (u-series-unit u-series)
17 u-converting-num = (NUM_CONVERTER ID)
18 u-converting-num = (NUM_CONVERTER NUM)
19 u-atom = (ID)
20 u-atom = (u-string)
21 u-atom = (NUM)
22 u-atom = (newlines)
23 u-string = (CHAR)
24 u-string = (u-string CHAR)
25 newlines = (NEWLINE)
26 newlines = (NEWLINE newlines)
State 0
g1038660 -> . g1038661
begin conflict:
NEWLINE shift 15
NEWLINE reduce 15
end conflict
g1038661 goto 1
u-atom goto 7
begin conflict:
CHAR shift 12
CHAR reduce 15
end conflict
u-converting-num goto 6
begin conflict:
EOF reduce 15
EOF reduce 2
end conflict
u-string goto 8
u-program goto 2
u-series-unit goto 4
u-expr goto 3
newlines goto 9
u-series goto 5
begin conflict:
NUM shift 14
NUM reduce 15
end conflict
begin conflict:
ID shift 13
ID reduce 15
end conflict
begin conflict:
L_PAREN shift 10
L_PAREN reduce 15
end conflict
begin conflict:
NUM_CONVERTER shift 11
NUM_CONVERTER reduce 15
end conflict
State 1
g1038660 -> g1038661 .
State 2
g1038661 -> u-program . EOF
EOF accept
State 3
u-program -> u-expr . u-program
begin conflict:
NEWLINE shift 15
NEWLINE reduce 15
end conflict
u-atom goto 7
begin conflict:
CHAR shift 12
CHAR reduce 15
end conflict
u-converting-num goto 6
begin conflict:
EOF reduce 15
EOF reduce 2
end conflict
u-string goto 8
u-program goto 17
u-series-unit goto 4
u-expr goto 3
newlines goto 9
u-series goto 5
begin conflict:
NUM shift 14
NUM reduce 15
end conflict
begin conflict:
ID shift 13
ID reduce 15
end conflict
begin conflict:
L_PAREN shift 10
L_PAREN reduce 15
end conflict
begin conflict:
NUM_CONVERTER shift 11
NUM_CONVERTER reduce 15
end conflict
State 4
u-series -> u-series-unit . u-series
begin conflict:
NEWLINE shift 15
NEWLINE reduce 15
end conflict
begin conflict:
CHAR shift 12
CHAR reduce 15
end conflict
R_PAREN reduce 15
EOF reduce 15
u-string goto 19
u-series-unit goto 4
newlines goto 20
u-series goto 18
begin conflict:
NUM shift 23
NUM reduce 15
end conflict
begin conflict:
ID shift 22
ID reduce 15
end conflict
begin conflict:
L_PAREN shift 21
L_PAREN reduce 15
end conflict
NUM_CONVERTER reduce 15
State 5
u-expr -> u-series .
EOF reduce 4
NEWLINE reduce 4
CHAR reduce 4
NUM reduce 4
R_PAREN reduce 4
L_PAREN reduce 4
ID reduce 4
NUM_CONVERTER reduce 4
State 6
u-expr -> u-converting-num .
EOF reduce 6
NEWLINE reduce 6
CHAR reduce 6
NUM reduce 6
R_PAREN reduce 6
L_PAREN reduce 6
ID reduce 6
NUM_CONVERTER reduce 6
State 7
u-expr -> u-atom .
EOF reduce 5
NEWLINE reduce 5
CHAR reduce 5
NUM reduce 5
R_PAREN reduce 5
L_PAREN reduce 5
ID reduce 5
NUM_CONVERTER reduce 5
State 8
u-series-unit -> u-string .
u-atom -> u-string .
u-string -> u-string . CHAR
begin conflict:
EOF reduce 11
EOF reduce 20
end conflict
begin conflict:
NEWLINE reduce 11
NEWLINE reduce 20
end conflict
begin conflict:
CHAR shift 24
CHAR reduce 11
CHAR reduce 20
end conflict
begin conflict:
NUM reduce 11
NUM reduce 20
end conflict
begin conflict:
R_PAREN reduce 11
R_PAREN reduce 20
end conflict
begin conflict:
L_PAREN reduce 11
L_PAREN reduce 20
end conflict
begin conflict:
ID reduce 11
ID reduce 20
end conflict
begin conflict:
NUM_CONVERTER reduce 11
NUM_CONVERTER reduce 20
end conflict
State 9
u-series-unit -> newlines .
u-atom -> newlines .
begin conflict:
EOF reduce 14
EOF reduce 22
end conflict
begin conflict:
NEWLINE reduce 14
NEWLINE reduce 22
end conflict
begin conflict:
CHAR reduce 14
CHAR reduce 22
end conflict
begin conflict:
NUM reduce 14
NUM reduce 22
end conflict
begin conflict:
R_PAREN reduce 14
R_PAREN reduce 22
end conflict
begin conflict:
L_PAREN reduce 14
L_PAREN reduce 22
end conflict
begin conflict:
ID reduce 14
ID reduce 22
end conflict
begin conflict:
NUM_CONVERTER reduce 14
NUM_CONVERTER reduce 22
end conflict
State 10
u-expr -> L_PAREN . u-sexps R_PAREN
u-series-unit -> L_PAREN . u-sexps R_PAREN
begin conflict:
NEWLINE shift 15
NEWLINE reduce 15
end conflict
u-atom goto 7
begin conflict:
CHAR shift 12
CHAR reduce 15
end conflict
begin conflict:
R_PAREN reduce 15
R_PAREN reduce 8
end conflict
u-sexps goto 26
u-converting-num goto 6
u-string goto 8
u-series-unit goto 4
u-expr goto 25
newlines goto 9
u-series goto 5
begin conflict:
NUM shift 14
NUM reduce 15
end conflict
begin conflict:
ID shift 13
ID reduce 15
end conflict
begin conflict:
L_PAREN shift 10
L_PAREN reduce 15
end conflict
begin conflict:
NUM_CONVERTER shift 11
NUM_CONVERTER reduce 15
end conflict
State 11
u-converting-num -> NUM_CONVERTER . ID
u-converting-num -> NUM_CONVERTER . NUM
NUM shift 28
ID shift 27
State 12
u-string -> CHAR .
EOF reduce 23
NEWLINE reduce 23
CHAR reduce 23
NUM reduce 23
R_PAREN reduce 23
L_PAREN reduce 23
ID reduce 23
NUM_CONVERTER reduce 23
State 13
u-series-unit -> ID .
u-atom -> ID .
begin conflict:
EOF reduce 10
EOF reduce 19
end conflict
begin conflict:
NEWLINE reduce 10
NEWLINE reduce 19
end conflict
begin conflict:
CHAR reduce 10
CHAR reduce 19
end conflict
begin conflict:
NUM reduce 10
NUM reduce 19
end conflict
begin conflict:
R_PAREN reduce 10
R_PAREN reduce 19
end conflict
begin conflict:
L_PAREN reduce 10
L_PAREN reduce 19
end conflict
begin conflict:
ID reduce 10
ID reduce 19
end conflict
begin conflict:
NUM_CONVERTER reduce 10
NUM_CONVERTER reduce 19
end conflict
State 14
u-series-unit -> NUM .
u-atom -> NUM .
begin conflict:
EOF reduce 12
EOF reduce 21
end conflict
begin conflict:
NEWLINE reduce 12
NEWLINE reduce 21
end conflict
begin conflict:
CHAR reduce 12
CHAR reduce 21
end conflict
begin conflict:
NUM reduce 12
NUM reduce 21
end conflict
begin conflict:
R_PAREN reduce 12
R_PAREN reduce 21
end conflict
begin conflict:
L_PAREN reduce 12
L_PAREN reduce 21
end conflict
begin conflict:
ID reduce 12
ID reduce 21
end conflict
begin conflict:
NUM_CONVERTER reduce 12
NUM_CONVERTER reduce 21
end conflict
State 15
newlines -> NEWLINE .
newlines -> NEWLINE . newlines
begin conflict:
NEWLINE shift 15
NEWLINE reduce 25
end conflict
CHAR reduce 25
R_PAREN reduce 25
EOF reduce 25
NUM reduce 25
newlines goto 29
ID reduce 25
L_PAREN reduce 25
NUM_CONVERTER reduce 25
State 16
g1038661 -> u-program EOF .
State 17
u-program -> u-expr u-program .
EOF reduce 3
State 18
u-series -> u-series-unit u-series .
EOF reduce 16
NEWLINE reduce 16
CHAR reduce 16
NUM reduce 16
R_PAREN reduce 16
L_PAREN reduce 16
ID reduce 16
NUM_CONVERTER reduce 16
State 19
u-series-unit -> u-string .
u-string -> u-string . CHAR
EOF reduce 11
NEWLINE reduce 11
begin conflict:
CHAR shift 24
CHAR reduce 11
end conflict
NUM reduce 11
R_PAREN reduce 11
L_PAREN reduce 11
ID reduce 11
NUM_CONVERTER reduce 11
State 20
u-series-unit -> newlines .
EOF reduce 14
NEWLINE reduce 14
CHAR reduce 14
NUM reduce 14
R_PAREN reduce 14
L_PAREN reduce 14
ID reduce 14
NUM_CONVERTER reduce 14
State 21
u-series-unit -> L_PAREN . u-sexps R_PAREN
begin conflict:
NEWLINE shift 15
NEWLINE reduce 15
end conflict
u-atom goto 7
begin conflict:
CHAR shift 12
CHAR reduce 15
end conflict
begin conflict:
R_PAREN reduce 15
R_PAREN reduce 8
end conflict
u-sexps goto 30
u-converting-num goto 6
u-string goto 8
u-series-unit goto 4
u-expr goto 25
newlines goto 9
u-series goto 5
begin conflict:
NUM shift 14
NUM reduce 15
end conflict
begin conflict:
ID shift 13
ID reduce 15
end conflict
begin conflict:
L_PAREN shift 10
L_PAREN reduce 15
end conflict
begin conflict:
NUM_CONVERTER shift 11
NUM_CONVERTER reduce 15
end conflict
State 22
u-series-unit -> ID .
EOF reduce 10
NEWLINE reduce 10
CHAR reduce 10
NUM reduce 10
R_PAREN reduce 10
L_PAREN reduce 10
ID reduce 10
NUM_CONVERTER reduce 10
State 23
u-series-unit -> NUM .
EOF reduce 12
NEWLINE reduce 12
CHAR reduce 12
NUM reduce 12
R_PAREN reduce 12
L_PAREN reduce 12
ID reduce 12
NUM_CONVERTER reduce 12
State 24
u-string -> u-string CHAR .
EOF reduce 24
NEWLINE reduce 24
CHAR reduce 24
NUM reduce 24
R_PAREN reduce 24
L_PAREN reduce 24
ID reduce 24
NUM_CONVERTER reduce 24
State 25
u-sexps -> u-expr . u-sexps
begin conflict:
NEWLINE shift 15
NEWLINE reduce 15
end conflict
u-atom goto 7
begin conflict:
CHAR shift 12
CHAR reduce 15
end conflict
begin conflict:
R_PAREN reduce 15
R_PAREN reduce 8
end conflict
u-sexps goto 31
u-converting-num goto 6
u-string goto 8
u-series-unit goto 4
u-expr goto 25
newlines goto 9
u-series goto 5
begin conflict:
NUM shift 14
NUM reduce 15
end conflict
begin conflict:
ID shift 13
ID reduce 15
end conflict
begin conflict:
L_PAREN shift 10
L_PAREN reduce 15
end conflict
begin conflict:
NUM_CONVERTER shift 11
NUM_CONVERTER reduce 15
end conflict
State 26
u-expr -> L_PAREN u-sexps . R_PAREN
u-series-unit -> L_PAREN u-sexps . R_PAREN
R_PAREN shift 32
State 27
u-converting-num -> NUM_CONVERTER ID .
EOF reduce 17
NEWLINE reduce 17
CHAR reduce 17
NUM reduce 17
R_PAREN reduce 17
L_PAREN reduce 17
ID reduce 17
NUM_CONVERTER reduce 17
State 28
u-converting-num -> NUM_CONVERTER NUM .
EOF reduce 18
NEWLINE reduce 18
CHAR reduce 18
NUM reduce 18
R_PAREN reduce 18
L_PAREN reduce 18
ID reduce 18
NUM_CONVERTER reduce 18
State 29
newlines -> NEWLINE newlines .
EOF reduce 26
NEWLINE reduce 26
CHAR reduce 26
NUM reduce 26
R_PAREN reduce 26
L_PAREN reduce 26
ID reduce 26
NUM_CONVERTER reduce 26
State 30
u-series-unit -> L_PAREN u-sexps . R_PAREN
R_PAREN shift 33
State 31
u-sexps -> u-expr u-sexps .
R_PAREN reduce 9
State 32
u-expr -> L_PAREN u-sexps R_PAREN .
u-series-unit -> L_PAREN u-sexps R_PAREN .
begin conflict:
EOF reduce 7
EOF reduce 13
end conflict
begin conflict:
NEWLINE reduce 7
NEWLINE reduce 13
end conflict
begin conflict:
CHAR reduce 7
CHAR reduce 13
end conflict
begin conflict:
NUM reduce 7
NUM reduce 13
end conflict
begin conflict:
R_PAREN reduce 7
R_PAREN reduce 13
end conflict
begin conflict:
L_PAREN reduce 7
L_PAREN reduce 13
end conflict
begin conflict:
ID reduce 7
ID reduce 13
end conflict
begin conflict:
NUM_CONVERTER reduce 7
NUM_CONVERTER reduce 13
end conflict
State 33
u-series-unit -> L_PAREN u-sexps R_PAREN .
EOF reduce 13
NEWLINE reduce 13
CHAR reduce 13
NUM reduce 13
R_PAREN reduce 13
L_PAREN reduce 13
ID reduce 13
NUM_CONVERTER reduce 13
38 shift/reduce conflicts
45 reduce/reduce conflicts