Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | mjames | 1 | State 2 contains 2 reduce/reduce conflicts. |
2 | State 6 contains 2 shift/reduce conflicts. |
||
3 | State 17 contains 1 shift/reduce conflict. |
||
4 | |||
5 | |||
6 | Grammar |
||
7 | |||
8 | Number, Line, Rule |
||
9 | 1 111 padsfile -> PADSPCB gap PART NL part_section NET NL net_section END gap |
||
10 | 2 113 part_section -> part_section part_item |
||
11 | 3 114 part_section -> part_item |
||
12 | 4 115 part_section -> /* empty */ |
||
13 | 5 118 part_item -> NL |
||
14 | 6 119 @1 -> /* empty */ |
||
15 | 7 119 part_item -> ASTRING @1 several_words NL |
||
16 | 8 126 several_words -> word several_words |
||
17 | 9 127 several_words -> word |
||
18 | 10 131 word -> ASTRING |
||
19 | 11 134 net_section -> net_section net_item |
||
20 | 12 135 net_section -> net_item |
||
21 | 13 136 net_section -> /* empty */ |
||
22 | 14 140 net_item -> SIGNAL net_name pins |
||
23 | 15 143 pins -> pins pin |
||
24 | 16 144 pins -> pin |
||
25 | 17 147 net_name -> ASTRING |
||
26 | 18 150 pin -> NL |
||
27 | 19 151 pin -> ASTRING '.' ASTRING |
||
28 | 20 157 gap -> NL gap |
||
29 | 21 158 gap -> NL |
||
30 | 22 159 gap -> /* empty */ |
||
31 | |||
32 | |||
33 | Terminals, with rules where they appear |
||
34 | |||
35 | $ (-1) |
||
36 | '.' (46) 19 |
||
37 | error (256) |
||
38 | PADSPCB (257) 1 |
||
39 | PART (258) 1 |
||
40 | NET (259) 1 |
||
41 | SIGNAL (260) 14 |
||
42 | END (261) 1 |
||
43 | NL (262) 1 5 7 18 20 21 |
||
44 | ASTRING (263) 7 10 17 19 |
||
45 | |||
46 | |||
47 | Nonterminals, with rules where they appear |
||
48 | |||
49 | padsfile (11) |
||
50 | on left: 1 |
||
51 | part_section (12) |
||
52 | on left: 2 3 4, on right: 1 2 |
||
53 | part_item (13) |
||
54 | on left: 5 7, on right: 2 3 |
||
55 | @1 (14) |
||
56 | on left: 6, on right: 7 |
||
57 | several_words (15) |
||
58 | on left: 8 9, on right: 7 8 |
||
59 | word (16) |
||
60 | on left: 10, on right: 8 9 |
||
61 | net_section (17) |
||
62 | on left: 11 12 13, on right: 1 11 |
||
63 | net_item (18) |
||
64 | on left: 14, on right: 11 12 |
||
65 | pins (19) |
||
66 | on left: 15 16, on right: 14 15 |
||
67 | net_name (20) |
||
68 | on left: 17, on right: 14 |
||
69 | pin (21) |
||
70 | on left: 18 19, on right: 15 16 |
||
71 | gap (22) |
||
72 | on left: 20 21 22, on right: 1 20 |
||
73 | |||
74 | |||
75 | state 0 |
||
76 | |||
77 | PADSPCB shift, and go to state 1 |
||
78 | |||
79 | padsfile go to state 35 |
||
80 | |||
81 | |||
82 | |||
83 | state 1 |
||
84 | |||
85 | padsfile -> PADSPCB . gap PART NL part_section NET NL net_section END gap (rule 1) |
||
86 | |||
87 | NL shift, and go to state 2 |
||
88 | |||
89 | $default reduce using rule 22 (gap) |
||
90 | |||
91 | gap go to state 3 |
||
92 | |||
93 | |||
94 | |||
95 | state 2 |
||
96 | |||
97 | gap -> NL . gap (rule 20) |
||
98 | gap -> NL . (rule 21) |
||
99 | |||
100 | NL shift, and go to state 2 |
||
101 | |||
102 | $ reduce using rule 21 (gap) |
||
103 | $ [reduce using rule 22 (gap)] |
||
104 | PART reduce using rule 21 (gap) |
||
105 | PART [reduce using rule 22 (gap)] |
||
106 | $default reduce using rule 21 (gap) |
||
107 | gap go to state 4 |
||
108 | |||
109 | |||
110 | |||
111 | state 3 |
||
112 | |||
113 | padsfile -> PADSPCB gap . PART NL part_section NET NL net_section END gap (rule 1) |
||
114 | |||
115 | PART shift, and go to state 5 |
||
116 | |||
117 | |||
118 | |||
119 | state 4 |
||
120 | |||
121 | gap -> NL gap . (rule 20) |
||
122 | |||
123 | $default reduce using rule 20 (gap) |
||
124 | |||
125 | |||
126 | |||
127 | state 5 |
||
128 | |||
129 | padsfile -> PADSPCB gap PART . NL part_section NET NL net_section END gap (rule 1) |
||
130 | |||
131 | NL shift, and go to state 6 |
||
132 | |||
133 | |||
134 | |||
135 | state 6 |
||
136 | |||
137 | padsfile -> PADSPCB gap PART NL . part_section NET NL net_section END gap (rule 1) |
||
138 | |||
139 | NL shift, and go to state 7 |
||
140 | ASTRING shift, and go to state 8 |
||
141 | |||
142 | NL [reduce using rule 4 (part_section)] |
||
143 | ASTRING [reduce using rule 4 (part_section)] |
||
144 | $default reduce using rule 4 (part_section) |
||
145 | |||
146 | part_section go to state 9 |
||
147 | part_item go to state 10 |
||
148 | |||
149 | |||
150 | |||
151 | state 7 |
||
152 | |||
153 | part_item -> NL . (rule 5) |
||
154 | |||
155 | $default reduce using rule 5 (part_item) |
||
156 | |||
157 | |||
158 | |||
159 | state 8 |
||
160 | |||
161 | part_item -> ASTRING . @1 several_words NL (rule 7) |
||
162 | |||
163 | $default reduce using rule 6 (@1) |
||
164 | |||
165 | @1 go to state 11 |
||
166 | |||
167 | |||
168 | |||
169 | state 9 |
||
170 | |||
171 | padsfile -> PADSPCB gap PART NL part_section . NET NL net_section END gap (rule 1) |
||
172 | part_section -> part_section . part_item (rule 2) |
||
173 | |||
174 | NET shift, and go to state 12 |
||
175 | NL shift, and go to state 7 |
||
176 | ASTRING shift, and go to state 8 |
||
177 | |||
178 | part_item go to state 13 |
||
179 | |||
180 | |||
181 | |||
182 | state 10 |
||
183 | |||
184 | part_section -> part_item . (rule 3) |
||
185 | |||
186 | $default reduce using rule 3 (part_section) |
||
187 | |||
188 | |||
189 | |||
190 | state 11 |
||
191 | |||
192 | part_item -> ASTRING @1 . several_words NL (rule 7) |
||
193 | |||
194 | ASTRING shift, and go to state 14 |
||
195 | |||
196 | several_words go to state 15 |
||
197 | word go to state 16 |
||
198 | |||
199 | |||
200 | |||
201 | state 12 |
||
202 | |||
203 | padsfile -> PADSPCB gap PART NL part_section NET . NL net_section END gap (rule 1) |
||
204 | |||
205 | NL shift, and go to state 17 |
||
206 | |||
207 | |||
208 | |||
209 | state 13 |
||
210 | |||
211 | part_section -> part_section part_item . (rule 2) |
||
212 | |||
213 | $default reduce using rule 2 (part_section) |
||
214 | |||
215 | |||
216 | |||
217 | state 14 |
||
218 | |||
219 | word -> ASTRING . (rule 10) |
||
220 | |||
221 | $default reduce using rule 10 (word) |
||
222 | |||
223 | |||
224 | |||
225 | state 15 |
||
226 | |||
227 | part_item -> ASTRING @1 several_words . NL (rule 7) |
||
228 | |||
229 | NL shift, and go to state 18 |
||
230 | |||
231 | |||
232 | |||
233 | state 16 |
||
234 | |||
235 | several_words -> word . several_words (rule 8) |
||
236 | several_words -> word . (rule 9) |
||
237 | |||
238 | ASTRING shift, and go to state 14 |
||
239 | |||
240 | $default reduce using rule 9 (several_words) |
||
241 | |||
242 | several_words go to state 19 |
||
243 | word go to state 16 |
||
244 | |||
245 | |||
246 | |||
247 | state 17 |
||
248 | |||
249 | padsfile -> PADSPCB gap PART NL part_section NET NL . net_section END gap (rule 1) |
||
250 | |||
251 | SIGNAL shift, and go to state 20 |
||
252 | |||
253 | SIGNAL [reduce using rule 13 (net_section)] |
||
254 | $default reduce using rule 13 (net_section) |
||
255 | |||
256 | net_section go to state 21 |
||
257 | net_item go to state 22 |
||
258 | |||
259 | |||
260 | |||
261 | state 18 |
||
262 | |||
263 | part_item -> ASTRING @1 several_words NL . (rule 7) |
||
264 | |||
265 | $default reduce using rule 7 (part_item) |
||
266 | |||
267 | |||
268 | |||
269 | state 19 |
||
270 | |||
271 | several_words -> word several_words . (rule 8) |
||
272 | |||
273 | $default reduce using rule 8 (several_words) |
||
274 | |||
275 | |||
276 | |||
277 | state 20 |
||
278 | |||
279 | net_item -> SIGNAL . net_name pins (rule 14) |
||
280 | |||
281 | ASTRING shift, and go to state 23 |
||
282 | |||
283 | net_name go to state 24 |
||
284 | |||
285 | |||
286 | |||
287 | state 21 |
||
288 | |||
289 | padsfile -> PADSPCB gap PART NL part_section NET NL net_section . END gap (rule 1) |
||
290 | net_section -> net_section . net_item (rule 11) |
||
291 | |||
292 | SIGNAL shift, and go to state 20 |
||
293 | END shift, and go to state 25 |
||
294 | |||
295 | net_item go to state 26 |
||
296 | |||
297 | |||
298 | |||
299 | state 22 |
||
300 | |||
301 | net_section -> net_item . (rule 12) |
||
302 | |||
303 | $default reduce using rule 12 (net_section) |
||
304 | |||
305 | |||
306 | |||
307 | state 23 |
||
308 | |||
309 | net_name -> ASTRING . (rule 17) |
||
310 | |||
311 | $default reduce using rule 17 (net_name) |
||
312 | |||
313 | |||
314 | |||
315 | state 24 |
||
316 | |||
317 | net_item -> SIGNAL net_name . pins (rule 14) |
||
318 | |||
319 | NL shift, and go to state 27 |
||
320 | ASTRING shift, and go to state 28 |
||
321 | |||
322 | pins go to state 29 |
||
323 | pin go to state 30 |
||
324 | |||
325 | |||
326 | |||
327 | state 25 |
||
328 | |||
329 | padsfile -> PADSPCB gap PART NL part_section NET NL net_section END . gap (rule 1) |
||
330 | |||
331 | NL shift, and go to state 2 |
||
332 | |||
333 | $default reduce using rule 22 (gap) |
||
334 | |||
335 | gap go to state 31 |
||
336 | |||
337 | |||
338 | |||
339 | state 26 |
||
340 | |||
341 | net_section -> net_section net_item . (rule 11) |
||
342 | |||
343 | $default reduce using rule 11 (net_section) |
||
344 | |||
345 | |||
346 | |||
347 | state 27 |
||
348 | |||
349 | pin -> NL . (rule 18) |
||
350 | |||
351 | $default reduce using rule 18 (pin) |
||
352 | |||
353 | |||
354 | |||
355 | state 28 |
||
356 | |||
357 | pin -> ASTRING . '.' ASTRING (rule 19) |
||
358 | |||
359 | '.' shift, and go to state 32 |
||
360 | |||
361 | |||
362 | |||
363 | state 29 |
||
364 | |||
365 | net_item -> SIGNAL net_name pins . (rule 14) |
||
366 | pins -> pins . pin (rule 15) |
||
367 | |||
368 | NL shift, and go to state 27 |
||
369 | ASTRING shift, and go to state 28 |
||
370 | |||
371 | $default reduce using rule 14 (net_item) |
||
372 | |||
373 | pin go to state 33 |
||
374 | |||
375 | |||
376 | |||
377 | state 30 |
||
378 | |||
379 | pins -> pin . (rule 16) |
||
380 | |||
381 | $default reduce using rule 16 (pins) |
||
382 | |||
383 | |||
384 | |||
385 | state 31 |
||
386 | |||
387 | padsfile -> PADSPCB gap PART NL part_section NET NL net_section END gap . (rule 1) |
||
388 | |||
389 | $default reduce using rule 1 (padsfile) |
||
390 | |||
391 | |||
392 | |||
393 | state 32 |
||
394 | |||
395 | pin -> ASTRING '.' . ASTRING (rule 19) |
||
396 | |||
397 | ASTRING shift, and go to state 34 |
||
398 | |||
399 | |||
400 | |||
401 | state 33 |
||
402 | |||
403 | pins -> pins pin . (rule 15) |
||
404 | |||
405 | $default reduce using rule 15 (pins) |
||
406 | |||
407 | |||
408 | |||
409 | state 34 |
||
410 | |||
411 | pin -> ASTRING '.' ASTRING . (rule 19) |
||
412 | |||
413 | $default reduce using rule 19 (pin) |
||
414 | |||
415 | |||
416 | |||
417 | state 35 |
||
418 | |||
419 | $ go to state 36 |
||
420 | |||
421 | |||
422 | |||
423 | state 36 |
||
424 | |||
425 | $ go to state 37 |
||
426 | |||
427 | |||
428 | |||
429 | state 37 |
||
430 | |||
431 | $default accept |
||
432 | |||
433 |