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

Diff of /bison/tests/sets.at

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

revision 1.2 by akim, Thu Dec 13 11:02:21 2001 UTC revision 1.3 by akim, Thu Dec 27 18:13:47 2001 UTC
# Line 38  AT_DATA([[input.y]], Line 38  AT_DATA([[input.y]],
38  e: 'e' | /* Nothing */;  e: 'e' | /* Nothing */;
39  ]])  ]])
40    
41  AT_CHECK([[bison --trace input.y]], [], [],  AT_CHECK([[bison --trace input.y]], [], [], [stderr])
42    
43    AT_CHECK([[sed 's/[      ]*$//' stderr]], [],
44  [[RITEM  [[RITEM
45    'e'  (rule 1)    e  $  (rule 1)
46    (rule 2)    'e'  (rule 2)
47      (rule 3)
48    
49    
50  DERIVES  DERIVES
51            $axiom derives
52                    1: e (rule 0)
53          e derives          e derives
54                  1: 'e' (rule 1)                  2: 'e' (rule 2)
55                  2: (rule 2)                  3: (rule 3)
56    
57    
58  Entering set_nullable  Entering set_nullable
59  NULLABLE  NULLABLE
60            $axiom: yes
61          e: yes          e: yes
62    
63    
64  TC: Input BEGIN  TC: Input BEGIN
65      @&t@  
66     0     01
67    .-.    .--.
68   0| |   0| 1|
69    `-'   1|  |
70      `--'
71  TC: Input END  TC: Input END
72    
73  TC: Output BEGIN  TC: Output BEGIN
74      @&t@  
75     0     01
76    .-.    .--.
77   0| |   0| 1|
78    `-'   1|  |
79      `--'
80  TC: Output END  TC: Output END
81    
82  FIRSTS  FIRSTS
83            $axiom firsts
84                    4 ($axiom)
85                    5 (e)
86          e firsts          e firsts
87                  4 (e)                  5 (e)
88    
89    
90  FDERIVES  FDERIVES
91            $axiom derives
92                    1: e $
93                    2: 'e'
94                    3:
95          e derives          e derives
96                  1: 'e'                  2: 'e'
97                  2:                  3:
98    
99    
100  Processing state 0 (reached by $)  Processing state 0 (reached by $)
# Line 87  Closure: input Line 102  Closure: input
102    
103    
104  Closure: output  Closure: output
105     0: . 'e'  (rule 1)     0: . e $  (rule 1)
106     2: .  (rule 2)     3: . 'e'  (rule 2)
107       5: .  (rule 3)
108    
109    
110  Entering new_itemsets, state = 0  Entering new_itemsets, state = 0
# Line 96  Entering append_states, state = 0 Line 112  Entering append_states, state = 0
112  Entering get_state, state = 0, symbol = 3 ('e')  Entering get_state, state = 0, symbol = 3 ('e')
113  Entering new_state, state = 0, symbol = 3 ('e')  Entering new_state, state = 0, symbol = 3 ('e')
114  Exiting get_state => 1  Exiting get_state => 1
115    Entering get_state, state = 0, symbol = 5 (e)
116    Entering new_state, state = 0, symbol = 5 (e)
117    Exiting get_state => 2
118  Processing state 1 (reached by 'e')  Processing state 1 (reached by 'e')
119  Closure: input  Closure: input
120     1: .  (rule 1)     4: .  (rule 2)
121    
122    
123  Closure: output  Closure: output
124     1: .  (rule 1)     4: .  (rule 2)
125    
126    
127  Entering new_itemsets, state = 1  Entering new_itemsets, state = 1
128  Entering append_states, state = 1  Entering append_states, state = 1
129    Processing state 2 (reached by e)
130    Closure: input
131       1: . $  (rule 1)
132    
133    
134    Closure: output
135       1: . $  (rule 1)
136    
137    
138    Entering new_itemsets, state = 2
139    Entering append_states, state = 2
140    Entering get_state, state = 2, symbol = 0 ($)
141    Entering new_state, state = 2, symbol = 0 ($)
142    Exiting get_state => 3
143    Processing state 3 (reached by $)
144    Closure: input
145       2: .  (rule 1)
146    
147    
148    Closure: output
149       2: .  (rule 1)
150    
151    
152    Entering new_itemsets, state = 3
153    Entering append_states, state = 3
154  transpose: input  transpose: input
155    0: @&t@    0:
156    
157  transpose: output  transpose: output
158    0: @&t@    0:
159    
160  ]])  ]])
161    
# Line 171  g: h Line 215  g: h
215  h: 'h'  h: 'h'
216  ]])  ]])
217    
218  AT_CHECK([bison --trace input.y 2>&1 |  AT_CHECK([[bison --trace input.y]], [], [], [stderr])
219            sed -n '/^TC: Output BEGIN/,/^TC: Output END/p'],  
220           [0],  AT_CHECK([[sed -n 's/[   ]*$//;/^TC: Output BEGIN/,/^TC: Output END/p' stderr]], [],
221  [[TC: Output BEGIN  [[TC: Output BEGIN
222             @&t@  
223     01234567     012345678
224    .--------.    .---------.
225   0| 1111111|   0| 11111111|
226   1|  111111|   1|  1111111|
227   2|   11111|   2|   111111|
228   3|    1111|   3|    11111|
229   4|     111|   4|     1111|
230   5|      11|   5|      111|
231   6|       1|   6|       11|
232   7|        |   7|        1|
233    `--------'   8|         |
234      `---------'
235  TC: Output END  TC: Output END
236  ]])  ]])
237    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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