/[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.28 by akim, Sat Dec 29 14:17:18 2001 UTC revision 1.29 by akim, Sat Dec 29 14:17:29 2001 UTC
# Line 653  AT_CHECK([bison -v input.y]) Line 653  AT_CHECK([bison -v input.y])
653  AT_CHECK([sed -n 's/  *$//;/^$/!p' input.output], 0,  AT_CHECK([sed -n 's/  *$//;/^$/!p' input.output], 0,
654  [[Grammar  [[Grammar
655    Number, Line, Rule    Number, Line, Rule
656        0   6 $axiom -> CONST_DEC_PART $
657      1   6 CONST_DEC_PART -> CONST_DEC_LIST      1   6 CONST_DEC_PART -> CONST_DEC_LIST
658      2  10 CONST_DEC_LIST -> CONST_DEC      2  10 CONST_DEC_LIST -> CONST_DEC
659      3  12 CONST_DEC_LIST -> CONST_DEC_LIST CONST_DEC      3  12 CONST_DEC_LIST -> CONST_DEC_LIST CONST_DEC
660      4  15 @1 -> /* empty */      4  15 @1 -> /* empty */
661      5  15 CONST_DEC -> @1 undef_id_tok '=' const_id_tok ';'      5  15 CONST_DEC -> @1 undef_id_tok '=' const_id_tok ';'
662  Terminals, with rules where they appear  Terminals, with rules where they appear
663  $ (0)  $ (0) 0
664  ';' (59) 5  ';' (59) 5
665  '=' (61) 5  '=' (61) 5
666  error (256)  error (256)
667  undef_id_tok (257) 5  undef_id_tok (257) 5
668  const_id_tok (258) 5  const_id_tok (258) 5
669  Nonterminals, with rules where they appear  Nonterminals, with rules where they appear
670  CONST_DEC_PART (7)  $axiom (7)
671      on left: 1      on left: 0
672  CONST_DEC_LIST (8)  CONST_DEC_PART (8)
673        on left: 1, on right: 0
674    CONST_DEC_LIST (9)
675      on left: 2 3, on right: 1 3      on left: 2 3, on right: 1 3
676  CONST_DEC (9)  CONST_DEC (10)
677      on left: 5, on right: 2 3      on left: 5, on right: 2 3
678  @1 (10)  @1 (11)
679      on left: 4, on right: 5      on left: 4, on right: 5
680  state 0  state 0
681      $default    reduce using rule 4 (@1)      $default    reduce using rule 4 (@1)
682      CONST_DEC_PART      go to state 9      CONST_DEC_PART      go to state 1
683      CONST_DEC_LIST      go to state 1      CONST_DEC_LIST      go to state 2
684      CONST_DEC   go to state 2      CONST_DEC   go to state 3
685      @1          go to state 3      @1          go to state 4
686  state 1  state 1
687        $axiom  ->  CONST_DEC_PART . $   (rule 0)
688        $           shift, and go to state 5
689    state 2
690      CONST_DEC_PART  ->  CONST_DEC_LIST .   (rule 1)      CONST_DEC_PART  ->  CONST_DEC_LIST .   (rule 1)
691      CONST_DEC_LIST  ->  CONST_DEC_LIST . CONST_DEC   (rule 3)      CONST_DEC_LIST  ->  CONST_DEC_LIST . CONST_DEC   (rule 3)
692      undef_id_tok        reduce using rule 4 (@1)      undef_id_tok        reduce using rule 4 (@1)
693      $default    reduce using rule 1 (CONST_DEC_PART)      $default    reduce using rule 1 (CONST_DEC_PART)
694      CONST_DEC   go to state 4      CONST_DEC   go to state 6
695      @1          go to state 3      @1          go to state 4
696  state 2  state 3
697      CONST_DEC_LIST  ->  CONST_DEC .   (rule 2)      CONST_DEC_LIST  ->  CONST_DEC .   (rule 2)
698      $default    reduce using rule 2 (CONST_DEC_LIST)      $default    reduce using rule 2 (CONST_DEC_LIST)
 state 3  
     CONST_DEC  ->  @1 . undef_id_tok '=' const_id_tok ';'   (rule 5)  
     undef_id_tok        shift, and go to state 5  
699  state 4  state 4
700        CONST_DEC  ->  @1 . undef_id_tok '=' const_id_tok ';'   (rule 5)
701        undef_id_tok        shift, and go to state 7
702    state 5
703        $axiom  ->  CONST_DEC_PART $ .   (rule 0)
704        $default    accept
705    state 6
706      CONST_DEC_LIST  ->  CONST_DEC_LIST CONST_DEC .   (rule 3)      CONST_DEC_LIST  ->  CONST_DEC_LIST CONST_DEC .   (rule 3)
707      $default    reduce using rule 3 (CONST_DEC_LIST)      $default    reduce using rule 3 (CONST_DEC_LIST)
708  state 5  state 7
709      CONST_DEC  ->  @1 undef_id_tok . '=' const_id_tok ';'   (rule 5)      CONST_DEC  ->  @1 undef_id_tok . '=' const_id_tok ';'   (rule 5)
710      '='         shift, and go to state 6      '='         shift, and go to state 8
711  state 6  state 8
712      CONST_DEC  ->  @1 undef_id_tok '=' . const_id_tok ';'   (rule 5)      CONST_DEC  ->  @1 undef_id_tok '=' . const_id_tok ';'   (rule 5)
713      const_id_tok        shift, and go to state 7      const_id_tok        shift, and go to state 9
714  state 7  state 9
715      CONST_DEC  ->  @1 undef_id_tok '=' const_id_tok . ';'   (rule 5)      CONST_DEC  ->  @1 undef_id_tok '=' const_id_tok . ';'   (rule 5)
716      ';'         shift, and go to state 8      ';'         shift, and go to state 10
717  state 8  state 10
718      CONST_DEC  ->  @1 undef_id_tok '=' const_id_tok ';' .   (rule 5)      CONST_DEC  ->  @1 undef_id_tok '=' const_id_tok ';' .   (rule 5)
719      $default    reduce using rule 5 (CONST_DEC)      $default    reduce using rule 5 (CONST_DEC)
 state 9  
     $           shift, and go to state 10  
 state 10  
     $default    accept  
720  ]])  ]])
721    
722  AT_CLEANUP  AT_CLEANUP

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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