/[bison]/bison/tests/regression.at
ViewVC logotype

Diff of /bison/tests/regression.at

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.62 by akim, Fri Jul 26 06:24:11 2002 UTC revision 1.63 by akim, Mon Jul 29 17:30:33 2002 UTC
# Line 150  AT_CHECK([bison input.y -o input.c -v]) Line 150  AT_CHECK([bison input.y -o input.c -v])
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    
# Line 163  AT_CHECK([cat input.output], [], Line 163  AT_CHECK([cat input.output], [],
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
# Line 172  error (256) Line 172  error (256)
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
# Line 184  expr (7) Line 184  expr (7)
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    
# Line 205  state 1 Line 205  state 1
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
# Line 226  state 4 Line 226  state 4
226    
227  state 5  state 5
228    
229      0 $axiom: expr $ .      0 $accept: expr $end .
230    
231      $default    accept      $default    accept
232    
# Line 371  AT_CHECK([bison -v input.y]) Line 371  AT_CHECK([bison -v input.y])
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    
# Line 385  AT_CHECK([cat input.output], 0, Line 385  AT_CHECK([cat input.output], 0,
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)
# Line 395  const_id_tok (259) 5 Line 395  const_id_tok (259) 5
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
# Line 409  CONST_DEC (10) Line 409  CONST_DEC (10)
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    
# Line 421  state 0 Line 421  state 0
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
# Line 454  state 4 Line 454  state 4
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    
# Line 584  static const unsigned char yyrline[] = Line 584  static const unsigned char yyrline[] =
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  {  {

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26