Fix indentation of tables in lalr1.cc

* data/lalr1-fusion.cc: Fix the indentation.
This commit is contained in:
Akim Demaille
2008-07-21 13:18:17 +02:00
parent f8a95c9c12
commit 1a5246c66f
2 changed files with 20 additions and 15 deletions

View File

@@ -1,3 +1,8 @@
2008-11-03 Akim Demaille <demaille@gostai.com>
Fix indentation of tables in lalr1.cc
* data/lalr1-fusion.cc: Fix the indentation.
2008-11-03 Akim Demaille <demaille@gostai.com> 2008-11-03 Akim Demaille <demaille@gostai.com>
Destroy the lhs symbols after reduction. Destroy the lhs symbols after reduction.

View File

@@ -1084,7 +1084,7 @@ b4_error_verbose_if([ tok])[)
const ]b4_int_type_for([b4_pact])[ const ]b4_int_type_for([b4_pact])[
]b4_parser_class_name[::yypact_[] = ]b4_parser_class_name[::yypact_[] =
{ {
]b4_pact[ ]b4_pact[
}; };
/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE /* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
@@ -1093,21 +1093,21 @@ b4_error_verbose_if([ tok])[)
const ]b4_int_type_for([b4_defact])[ const ]b4_int_type_for([b4_defact])[
]b4_parser_class_name[::yydefact_[] = ]b4_parser_class_name[::yydefact_[] =
{ {
]b4_defact[ ]b4_defact[
}; };
/* YYPGOTO[NTERM-NUM]. */ /* YYPGOTO[NTERM-NUM]. */
const ]b4_int_type_for([b4_pgoto])[ const ]b4_int_type_for([b4_pgoto])[
]b4_parser_class_name[::yypgoto_[] = ]b4_parser_class_name[::yypgoto_[] =
{ {
]b4_pgoto[ ]b4_pgoto[
}; };
/* YYDEFGOTO[NTERM-NUM]. */ /* YYDEFGOTO[NTERM-NUM]. */
const ]b4_int_type_for([b4_defgoto])[ const ]b4_int_type_for([b4_defgoto])[
]b4_parser_class_name[::yydefgoto_[] = ]b4_parser_class_name[::yydefgoto_[] =
{ {
]b4_defgoto[ ]b4_defgoto[
}; };
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
@@ -1117,14 +1117,14 @@ b4_error_verbose_if([ tok])[)
const ]b4_int_type_for([b4_table])[ const ]b4_int_type_for([b4_table])[
]b4_parser_class_name[::yytable_[] = ]b4_parser_class_name[::yytable_[] =
{ {
]b4_table[ ]b4_table[
}; };
/* YYCHECK. */ /* YYCHECK. */
const ]b4_int_type_for([b4_check])[ const ]b4_int_type_for([b4_check])[
]b4_parser_class_name[::yycheck_[] = ]b4_parser_class_name[::yycheck_[] =
{ {
]b4_check[ ]b4_check[
}; };
/* STOS_[STATE-NUM] -- The (internal number of the) accessing /* STOS_[STATE-NUM] -- The (internal number of the) accessing
@@ -1132,7 +1132,7 @@ b4_error_verbose_if([ tok])[)
const ]b4_int_type_for([b4_stos])[ const ]b4_int_type_for([b4_stos])[
]b4_parser_class_name[::yystos_[] = ]b4_parser_class_name[::yystos_[] =
{ {
]b4_stos[ ]b4_stos[
}; };
#if YYDEBUG #if YYDEBUG
@@ -1141,7 +1141,7 @@ b4_error_verbose_if([ tok])[)
const ]b4_int_type_for([b4_toknum])[ const ]b4_int_type_for([b4_toknum])[
]b4_parser_class_name[::yytoken_number_[] = ]b4_parser_class_name[::yytoken_number_[] =
{ {
]b4_toknum[ ]b4_toknum[
}; };
#endif #endif
@@ -1149,14 +1149,14 @@ b4_error_verbose_if([ tok])[)
const ]b4_int_type_for([b4_r1])[ const ]b4_int_type_for([b4_r1])[
]b4_parser_class_name[::yyr1_[] = ]b4_parser_class_name[::yyr1_[] =
{ {
]b4_r1[ ]b4_r1[
}; };
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
const ]b4_int_type_for([b4_r2])[ const ]b4_int_type_for([b4_r2])[
]b4_parser_class_name[::yyr2_[] = ]b4_parser_class_name[::yyr2_[] =
{ {
]b4_r2[ ]b4_r2[
}; };
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
@@ -1165,7 +1165,7 @@ b4_error_verbose_if([ tok])[)
const char* const char*
const ]b4_parser_class_name[::yytname_[] = const ]b4_parser_class_name[::yytname_[] =
{ {
]b4_tname[ ]b4_tname[
}; };
#endif #endif
@@ -1174,7 +1174,7 @@ b4_error_verbose_if([ tok])[)
const ]b4_parser_class_name[::rhs_number_type const ]b4_parser_class_name[::rhs_number_type
]b4_parser_class_name[::yyrhs_[] = ]b4_parser_class_name[::yyrhs_[] =
{ {
]b4_rhs[ ]b4_rhs[
}; };
/* 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
@@ -1182,14 +1182,14 @@ b4_error_verbose_if([ tok])[)
const ]b4_int_type_for([b4_prhs])[ const ]b4_int_type_for([b4_prhs])[
]b4_parser_class_name[::yyprhs_[] = ]b4_parser_class_name[::yyprhs_[] =
{ {
]b4_prhs[ ]b4_prhs[
}; };
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
const ]b4_int_type_for([b4_rline])[ const ]b4_int_type_for([b4_rline])[
]b4_parser_class_name[::yyrline_[] = ]b4_parser_class_name[::yyrline_[] =
{ {
]b4_rline[ ]b4_rline[
}; };
// Print the state stack on the debug stream. // Print the state stack on the debug stream.
@@ -1231,7 +1231,7 @@ b4_error_verbose_if([ tok])[)
const token_number_type const token_number_type
translate_table[] = translate_table[] =
{ {
]b4_translate[ ]b4_translate[
}; };
if ((unsigned int) t <= yyuser_token_number_max_) if ((unsigned int) t <= yyuser_token_number_max_)
return translate_table[t]; return translate_table[t];