Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | mjames | 1 | Grammar |
2 | |||
3 | Number, Line, Rule |
||
4 | 1 113 eaglefile -> lines |
||
5 | 2 116 lines -> lines line |
||
6 | 3 117 lines -> line |
||
7 | 4 121 skip_line -> NL |
||
8 | 5 122 skip_line -> SPC NL |
||
9 | 6 125 line -> first_line |
||
10 | 7 126 line -> add_line |
||
11 | 8 127 line -> skip_line |
||
12 | 9 130 first_line -> net_ident SPC socket_pin NL |
||
13 | 10 132 add_line -> SPC socket_pin NL |
||
14 | 11 135 net_ident -> ASTRING |
||
15 | 12 137 socket_pin -> socket_ident SPC ASTRING |
||
16 | 13 143 socket_ident -> ASTRING |
||
17 | |||
18 | |||
19 | Terminals, with rules where they appear |
||
20 | |||
21 | $ (-1) |
||
22 | error (256) |
||
23 | SPC (257) 5 9 10 12 |
||
24 | NL (258) 4 5 9 10 |
||
25 | ASTRING (259) 11 12 13 |
||
26 | |||
27 | |||
28 | Nonterminals, with rules where they appear |
||
29 | |||
30 | eaglefile (6) |
||
31 | on left: 1 |
||
32 | lines (7) |
||
33 | on left: 2 3, on right: 1 2 |
||
34 | skip_line (8) |
||
35 | on left: 4 5, on right: 8 |
||
36 | line (9) |
||
37 | on left: 6 7 8, on right: 2 3 |
||
38 | first_line (10) |
||
39 | on left: 9, on right: 6 |
||
40 | add_line (11) |
||
41 | on left: 10, on right: 7 |
||
42 | net_ident (12) |
||
43 | on left: 11, on right: 9 |
||
44 | socket_pin (13) |
||
45 | on left: 12, on right: 9 10 |
||
46 | socket_ident (14) |
||
47 | on left: 13, on right: 12 |
||
48 | |||
49 | |||
50 | state 0 |
||
51 | |||
52 | SPC shift, and go to state 1 |
||
53 | NL shift, and go to state 2 |
||
54 | ASTRING shift, and go to state 3 |
||
55 | |||
56 | eaglefile go to state 21 |
||
57 | lines go to state 4 |
||
58 | skip_line go to state 5 |
||
59 | line go to state 6 |
||
60 | first_line go to state 7 |
||
61 | add_line go to state 8 |
||
62 | net_ident go to state 9 |
||
63 | |||
64 | |||
65 | |||
66 | state 1 |
||
67 | |||
68 | skip_line -> SPC . NL (rule 5) |
||
69 | add_line -> SPC . socket_pin NL (rule 10) |
||
70 | |||
71 | NL shift, and go to state 10 |
||
72 | ASTRING shift, and go to state 11 |
||
73 | |||
74 | socket_pin go to state 12 |
||
75 | socket_ident go to state 13 |
||
76 | |||
77 | |||
78 | |||
79 | state 2 |
||
80 | |||
81 | skip_line -> NL . (rule 4) |
||
82 | |||
83 | $default reduce using rule 4 (skip_line) |
||
84 | |||
85 | |||
86 | |||
87 | state 3 |
||
88 | |||
89 | net_ident -> ASTRING . (rule 11) |
||
90 | |||
91 | $default reduce using rule 11 (net_ident) |
||
92 | |||
93 | |||
94 | |||
95 | state 4 |
||
96 | |||
97 | eaglefile -> lines . (rule 1) |
||
98 | lines -> lines . line (rule 2) |
||
99 | |||
100 | SPC shift, and go to state 1 |
||
101 | NL shift, and go to state 2 |
||
102 | ASTRING shift, and go to state 3 |
||
103 | |||
104 | $default reduce using rule 1 (eaglefile) |
||
105 | |||
106 | skip_line go to state 5 |
||
107 | line go to state 14 |
||
108 | first_line go to state 7 |
||
109 | add_line go to state 8 |
||
110 | net_ident go to state 9 |
||
111 | |||
112 | |||
113 | |||
114 | state 5 |
||
115 | |||
116 | line -> skip_line . (rule 8) |
||
117 | |||
118 | $default reduce using rule 8 (line) |
||
119 | |||
120 | |||
121 | |||
122 | state 6 |
||
123 | |||
124 | lines -> line . (rule 3) |
||
125 | |||
126 | $default reduce using rule 3 (lines) |
||
127 | |||
128 | |||
129 | |||
130 | state 7 |
||
131 | |||
132 | line -> first_line . (rule 6) |
||
133 | |||
134 | $default reduce using rule 6 (line) |
||
135 | |||
136 | |||
137 | |||
138 | state 8 |
||
139 | |||
140 | line -> add_line . (rule 7) |
||
141 | |||
142 | $default reduce using rule 7 (line) |
||
143 | |||
144 | |||
145 | |||
146 | state 9 |
||
147 | |||
148 | first_line -> net_ident . SPC socket_pin NL (rule 9) |
||
149 | |||
150 | SPC shift, and go to state 15 |
||
151 | |||
152 | |||
153 | |||
154 | state 10 |
||
155 | |||
156 | skip_line -> SPC NL . (rule 5) |
||
157 | |||
158 | $default reduce using rule 5 (skip_line) |
||
159 | |||
160 | |||
161 | |||
162 | state 11 |
||
163 | |||
164 | socket_ident -> ASTRING . (rule 13) |
||
165 | |||
166 | $default reduce using rule 13 (socket_ident) |
||
167 | |||
168 | |||
169 | |||
170 | state 12 |
||
171 | |||
172 | add_line -> SPC socket_pin . NL (rule 10) |
||
173 | |||
174 | NL shift, and go to state 16 |
||
175 | |||
176 | |||
177 | |||
178 | state 13 |
||
179 | |||
180 | socket_pin -> socket_ident . SPC ASTRING (rule 12) |
||
181 | |||
182 | SPC shift, and go to state 17 |
||
183 | |||
184 | |||
185 | |||
186 | state 14 |
||
187 | |||
188 | lines -> lines line . (rule 2) |
||
189 | |||
190 | $default reduce using rule 2 (lines) |
||
191 | |||
192 | |||
193 | |||
194 | state 15 |
||
195 | |||
196 | first_line -> net_ident SPC . socket_pin NL (rule 9) |
||
197 | |||
198 | ASTRING shift, and go to state 11 |
||
199 | |||
200 | socket_pin go to state 18 |
||
201 | socket_ident go to state 13 |
||
202 | |||
203 | |||
204 | |||
205 | state 16 |
||
206 | |||
207 | add_line -> SPC socket_pin NL . (rule 10) |
||
208 | |||
209 | $default reduce using rule 10 (add_line) |
||
210 | |||
211 | |||
212 | |||
213 | state 17 |
||
214 | |||
215 | socket_pin -> socket_ident SPC . ASTRING (rule 12) |
||
216 | |||
217 | ASTRING shift, and go to state 19 |
||
218 | |||
219 | |||
220 | |||
221 | state 18 |
||
222 | |||
223 | first_line -> net_ident SPC socket_pin . NL (rule 9) |
||
224 | |||
225 | NL shift, and go to state 20 |
||
226 | |||
227 | |||
228 | |||
229 | state 19 |
||
230 | |||
231 | socket_pin -> socket_ident SPC ASTRING . (rule 12) |
||
232 | |||
233 | $default reduce using rule 12 (socket_pin) |
||
234 | |||
235 | |||
236 | |||
237 | state 20 |
||
238 | |||
239 | first_line -> net_ident SPC socket_pin NL . (rule 9) |
||
240 | |||
241 | $default reduce using rule 9 (first_line) |
||
242 | |||
243 | |||
244 | |||
245 | state 21 |
||
246 | |||
247 | $ go to state 22 |
||
248 | |||
249 | |||
250 | |||
251 | state 22 |
||
252 | |||
253 | $ go to state 23 |
||
254 | |||
255 | |||
256 | |||
257 | state 23 |
||
258 | |||
259 | $default accept |
||
260 | |||
261 |