-
Notifications
You must be signed in to change notification settings - Fork 0
/
input5.txt
58 lines (50 loc) · 1.07 KB
/
input5.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
START lalr_state [0]: {
[C ::= (*) c C , {c d }]
[$START ::= (*) S EOF , {EOF }]
[C ::= (*) d , {c d }]
[S ::= (*) C C , {EOF }]
}
transition on c to state [4]
transition on d to state [3]
transition on C to state [2]
transition on S to state [1]
-------------------
lalr_state [1]: {
[$START ::= S (*) EOF , {EOF }]
}
transition on EOF to state [7]
-------------------
lalr_state [2]: {
[C ::= (*) c C , {EOF }]
[C ::= (*) d , {EOF }]
[S ::= C (*) C , {EOF }]
}
transition on c to state [4]
transition on d to state [3]
transition on C to state [6]
-------------------
lalr_state [3]: {
[C ::= d (*) , {EOF c d }]
}
-------------------
lalr_state [4]: {
[C ::= c (*) C , {EOF c d }]
[C ::= (*) c C , {EOF c d }]
[C ::= (*) d , {EOF c d }]
}
transition on c to state [4]
transition on C to state [5]
transition on d to state [3]
-------------------
lalr_state [5]: {
[C ::= c C (*) , {EOF c d }]
}
-------------------
lalr_state [6]: {
[S ::= C C (*) , {EOF }]
}
-------------------
lalr_state [7]: {
[$START ::= S EOF (*) , {EOF }]
}
-------------------