bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"check" table missing comment in bison.m4


From: Tim Landscheidt
Subject: "check" table missing comment in bison.m4
Date: Sat, 11 Feb 2012 01:18:56 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Hi,

the "check" table (yycheck_[] in the Java incarnation) has
no comment in bison.m4's b4_integral_parser_tables_map which
leads to a misindentation in the generated Java scanner:

| [...]

| /* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
|    positive, shift that token.  If negative, reduce the rule which
|    number is the opposite.  If YYTABLE_NINF, syntax error.  */
|   private static final byte yytable_[] = yytable_init();
|   private static final byte[] yytable_init()
|   {
| [...]
|   }

| private static final byte yycheck_[] = yycheck_init();
|   private static final byte[] yycheck_init()
|   {
| [...]
|   }

| /* STOS_[STATE-NUM] -- The (internal number of the) accessing
|    symbol of state STATE-NUM.  */
|   private static final byte yystos_[] = yystos_init();
|   private static final byte[] yystos_init()
|   {
| [...]

Rather than accounting for tables without a comment, I think
it'd be much easier to just document the table :-).

Tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]