150 |
AT_CHECK([cat input.output], [], |
AT_CHECK([cat input.output], [], |
151 |
[[Grammar |
[[Grammar |
152 |
|
|
153 |
0 $axiom: expr $ |
0 $accept: expr $end |
154 |
|
|
155 |
1 @1: /* empty */ |
1 @1: /* empty */ |
156 |
|
|
163 |
|
|
164 |
Terminals, with rules where they appear |
Terminals, with rules where they appear |
165 |
|
|
166 |
$ (0) 0 |
$end (0) 0 |
167 |
'a' (97) 2 |
'a' (97) 2 |
168 |
'b' (98) 2 |
'b' (98) 2 |
169 |
'c' (99) 4 |
'c' (99) 4 |
172 |
|
|
173 |
Nonterminals, with rules where they appear |
Nonterminals, with rules where they appear |
174 |
|
|
175 |
$axiom (6) |
$accept (6) |
176 |
on left: 0 |
on left: 0 |
177 |
expr (7) |
expr (7) |
178 |
on left: 2 4, on right: 0 |
on left: 2 4, on right: 0 |
184 |
|
|
185 |
state 0 |
state 0 |
186 |
|
|
187 |
0 $axiom: . expr $ |
0 $accept: . expr $end |
188 |
|
|
189 |
'a' shift, and go to state 1 |
'a' shift, and go to state 1 |
190 |
|
|
205 |
|
|
206 |
state 2 |
state 2 |
207 |
|
|
208 |
0 $axiom: expr . $ |
0 $accept: expr . $end |
209 |
|
|
210 |
$ shift, and go to state 5 |
$end shift, and go to state 5 |
211 |
|
|
212 |
|
|
213 |
state 3 |
state 3 |
226 |
|
|
227 |
state 5 |
state 5 |
228 |
|
|
229 |
0 $axiom: expr $ . |
0 $accept: expr $end . |
230 |
|
|
231 |
$default accept |
$default accept |
232 |
|
|
371 |
AT_CHECK([cat input.output], 0, |
AT_CHECK([cat input.output], 0, |
372 |
[[Grammar |
[[Grammar |
373 |
|
|
374 |
0 $axiom: CONST_DEC_PART $ |
0 $accept: CONST_DEC_PART $end |
375 |
|
|
376 |
1 CONST_DEC_PART: CONST_DEC_LIST |
1 CONST_DEC_PART: CONST_DEC_LIST |
377 |
|
|
385 |
|
|
386 |
Terminals, with rules where they appear |
Terminals, with rules where they appear |
387 |
|
|
388 |
$ (0) 0 |
$end (0) 0 |
389 |
';' (59) 5 |
';' (59) 5 |
390 |
'=' (61) 5 |
'=' (61) 5 |
391 |
error (256) |
error (256) |
395 |
|
|
396 |
Nonterminals, with rules where they appear |
Nonterminals, with rules where they appear |
397 |
|
|
398 |
$axiom (7) |
$accept (7) |
399 |
on left: 0 |
on left: 0 |
400 |
CONST_DEC_PART (8) |
CONST_DEC_PART (8) |
401 |
on left: 1, on right: 0 |
on left: 1, on right: 0 |
409 |
|
|
410 |
state 0 |
state 0 |
411 |
|
|
412 |
0 $axiom: . CONST_DEC_PART $ |
0 $accept: . CONST_DEC_PART $end |
413 |
|
|
414 |
$default reduce using rule 4 (@1) |
$default reduce using rule 4 (@1) |
415 |
|
|
421 |
|
|
422 |
state 1 |
state 1 |
423 |
|
|
424 |
0 $axiom: CONST_DEC_PART . $ |
0 $accept: CONST_DEC_PART . $end |
425 |
|
|
426 |
$ shift, and go to state 5 |
$end shift, and go to state 5 |
427 |
|
|
428 |
|
|
429 |
state 2 |
state 2 |
454 |
|
|
455 |
state 5 |
state 5 |
456 |
|
|
457 |
0 $axiom: CONST_DEC_PART $ . |
0 $accept: CONST_DEC_PART $end . |
458 |
|
|
459 |
$default accept |
$default accept |
460 |
|
|
584 |
}; |
}; |
585 |
static const char *const yytname[] = |
static const char *const yytname[] = |
586 |
{ |
{ |
587 |
"$", "error", "$undefined.", "\"if\"", "\"const\"", "\"then\"", |
"$end", "error", "$undefined", "\"if\"", "\"const\"", "\"then\"", |
588 |
"\"else\"", "$axiom", "statement", "struct_stat", "if", "else", 0 |
"\"else\"", "$accept", "statement", "struct_stat", "if", "else", 0 |
589 |
}; |
}; |
590 |
static const unsigned short yytoknum[] = |
static const unsigned short yytoknum[] = |
591 |
{ |
{ |