/[bison]/bison/data/glr.c
ViewVC logotype

Diff of /bison/data/glr.c

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

revision 1.6 by akim, Thu Jul 25 17:30:44 2002 UTC revision 1.7 by akim, Thu Jul 25 17:32:34 2002 UTC
# Line 241  static YYLTYPE yyloc_default; Line 241  static YYLTYPE yyloc_default;
241    ((unsigned)(YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)    ((unsigned)(YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
242    
243  /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */  /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
244  static const ]b4_uint_type(b4_translate_max)[ yytranslate[] =  static const ]b4_int_type_for([b4_translate])[ yytranslate[] =
245  {  {
246    ]b4_translate[    ]b4_translate[
247  };  };
# Line 249  static const ]b4_uint_type(b4_translate_ Line 249  static const ]b4_uint_type(b4_translate_
249  #if YYDEBUG  #if YYDEBUG
250  /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in  /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
251     YYRHS.  */     YYRHS.  */
252  static const ]b4_uint_type(b4_prhs_max)[ yyprhs[] =  static const ]b4_int_type_for([b4_prhs])[ yyprhs[] =
253  {  {
254    ]b4_prhs[    ]b4_prhs[
255  };  };
256    
257  /* YYRHS -- A `-1'-separated list of the rules' RHS. */  /* YYRHS -- A `-1'-separated list of the rules' RHS. */
258  static const ]b4_sint_type(b4_rhs_max)[ yyrhs[] =  static const ]b4_int_type_for([b4_rhs])[ yyrhs[] =
259  {  {
260    ]b4_rhs[    ]b4_rhs[
261  };  };
262    
263  /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */  /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
264  static const ]b4_uint_type(b4_rline_max)[ yyrline[] =  static const ]b4_int_type_for([b4_rline])[ yyrline[] =
265  {  {
266    ]b4_rline[    ]b4_rline[
267  };  };
# Line 279  static const char *const yytname[] = Line 279  static const char *const yytname[] =
279  #endif  #endif
280    
281  /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */  /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
282  static const ]b4_uint_type(b4_r1_max)[ yyr1[] =  static const ]b4_int_type_for([b4_r1])[ yyr1[] =
283  {  {
284    ]b4_r1[    ]b4_r1[
285  };  };
286    
287  /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */  /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
288  static const ]b4_uint_type(b4_r2_max)[ yyr2[] =  static const ]b4_int_type_for([b4_r2])[ yyr2[] =
289  {  {
290    ]b4_r2[    ]b4_r2[
291  };  };
292    
293  /* YYDPREC[RULE-NUM] -- Dynamic precedence of rule #RULE-NUM (0 if none). */  /* YYDPREC[RULE-NUM] -- Dynamic precedence of rule #RULE-NUM (0 if none). */
294  static const short yydprec[] =  static const ]b4_int_type_for([b4_dprec])[ yydprec[] =
295  {  {
296    ]b4_dprec[    ]b4_dprec[
297  };  };
298    
299  /* YYMERGER[RULE-NUM] -- Index of merging function for rule #RULE-NUM. */  /* YYMERGER[RULE-NUM] -- Index of merging function for rule #RULE-NUM. */
300  static const short yymerger[] =  static const ]b4_int_type_for([b4_merger])[ yymerger[] =
301  {  {
302    ]b4_merger[    ]b4_merger[
303  };  };
# Line 305  static const short yymerger[] = Line 305  static const short yymerger[] =
305  /* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE  /* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
306     doesn't specify something else to do.  Zero means the default is an     doesn't specify something else to do.  Zero means the default is an
307     error.  */     error.  */
308  static const short yydefact[] =  static const ]b4_int_type_for([b4_defact])[ yydefact[] =
309  {  {
310    ]b4_defact[    ]b4_defact[
311  };  };
312    
313  /* YYPDEFGOTO[NTERM-NUM]. */  /* YYPDEFGOTO[NTERM-NUM]. */
314  static const short yydefgoto[] =  static const ]b4_int_type_for([b4_defgoto])[ yydefgoto[] =
315  {  {
316    ]b4_defgoto[    ]b4_defgoto[
317  };  };
# Line 319  static const short yydefgoto[] = Line 319  static const short yydefgoto[] =
319  /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing  /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
320     STATE-NUM.  */     STATE-NUM.  */
321  #define YYPACT_NINF ]b4_pact_ninf[  #define YYPACT_NINF ]b4_pact_ninf[
322  static const ]b4_sint_type(b4_pact_max)[ yypact[] =  static const ]b4_int_type_for([b4_pact])[ yypact[] =
323  {  {
324    ]b4_pact[    ]b4_pact[
325  };  };
326    
327  /* YYPGOTO[NTERM-NUM].  */  /* YYPGOTO[NTERM-NUM].  */
328  static const short yypgoto[] =  static const ]b4_int_type_for([b4_pgoto])[ yypgoto[] =
329  {  {
330    ]b4_pgoto[    ]b4_pgoto[
331  };  };
# Line 334  static const short yypgoto[] = Line 334  static const short yypgoto[] =
334     positive, shift that token.  If negative, reduce the rule which     positive, shift that token.  If negative, reduce the rule which
335     number is the opposite.  If zero, do what YYDEFACT says.  */     number is the opposite.  If zero, do what YYDEFACT says.  */
336  #define YYTABLE_NINF ]b4_table_ninf[  #define YYTABLE_NINF ]b4_table_ninf[
337  static const ]b4_sint_type(b4_table_max)[ yytable[] =  static const ]b4_int_type_for([b4_table])[ yytable[] =
338  {  {
339    ]b4_table[    ]b4_table[
340  };  };
# Line 343  static const ]b4_sint_type(b4_table_max) Line 343  static const ]b4_sint_type(b4_table_max)
343     of conflicting reductions corresponding to action entry for state     of conflicting reductions corresponding to action entry for state
344     STATE-NUM in yytable.  0 means no conflicts.  The list in yyconfl     STATE-NUM in yytable.  0 means no conflicts.  The list in yyconfl
345     is terminated by a rule number of 0. */     is terminated by a rule number of 0. */
346  static const short yyconflp[] =  static const ]b4_int_type_for([b4_conflict_list_heads])[ yyconflp[] =
347  {  {
348    ]b4_conflict_list_heads[    ]b4_conflict_list_heads[
349  };  };
350    
351  /* YYCONFL[I] -- lists of conflicting rule numbers, each terminated  /* YYCONFL[I] -- lists of conflicting rule numbers, each terminated
352     by 0, pointed into by YYCONFLP. */     by 0, pointed into by YYCONFLP. */
353  static const short yyconfl[] =  ]dnl Do not use b4_int_type_for here, since there are places where
354    dnl pointers onto yyconfl are taken, which type is "short *".
355    dnl We probably ought to introduce a type for confl.
356    [static const short yyconfl[] =
357  {  {
358    ]b4_conflicting_rules[    ]b4_conflicting_rules[
359  };  };
360    
361  static const short yycheck[] =  static const ]b4_int_type_for([b4_check])[ yycheck[] =
362  {  {
363    ]b4_check[    ]b4_check[
364  };  };

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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