[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bison 1.30f
From: |
Hans Aberg |
Subject: |
Re: Bison 1.30f |
Date: |
Thu, 6 Dec 2001 00:21:51 +0100 |
At 16:16 +0100 2001/12/05, Akim Demaille wrote:
>A few issues have been addressed since the last snapshot, and in
>particular this snapshot benefits from the expertise of Paul Eggert
>wrt 64 bit architectures. I do not know how bison itself behaves on
>these machines, but at least the parsers behave properly. He also
>made sure the parsers do not collide with the users' name space.
>
>This snapshot, and the forthcoming release, should be the last of the
>1.3x series: future work aims at providing more flexibility wrt (i)
>parsing technologies (we would like to integrate LR(1) into Bison),
>and (ii) wrt the output (e.g., addressing C++ etc.).
>
>Thanks to all the people who tortured 1.30d. Please, don't be kinder
>with 1.30f!
I got some errors (below). They appear to be of different kinds:
- Use of
#include "intl/libgettext.h"
"/" is not portable between platforms (fix: add the directory to the
compiler search path). In addition, the English version should probably not
call this file (fix: add a controlling macro).
- Some type conversion errors. (In ancient times, long before the C
standards, one could often assume that pointers have the same size as int.
But this may not be true on contemporary platforms.)
- Some missing prototypes.
Some errors below are reported several times; I did not bother editing it.
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : function has no prototype
complain.c line 260 gettext ("fatal error: ")
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : function has no prototype
conflicts.c line 46 do { char buf[4096]; sprintf (buf, gettext ("\
Error : cannot convert
'int' to
'const char *'
conflicts.c line 46 nd token %s resolved as %s.\n"), state,
LAruleno[LAno], tags[token], resolution); ( (&output_obstack)->temp =
(strlen (buf)),
Error : cannot convert
'int' to
'char *'
conflicts.c line 94 log_resolution (state, lookaheadnum, i, _("reduce"));
Error : cannot convert
'int' to
'char *'
conflicts.c line 101 log_resolution (state, lookaheadnum, i, _("shift"));
Error : cannot convert
'int' to
'char *'
conflicts.c line 115 log_resolution (state, lookaheadnum, i, _("shift"));
Error : cannot convert
'int' to
'char *'
conflicts.c line 119 log_resolution (state, lookaheadnum, i, _("reduce"));
Error : cannot convert
'int' to
'char *'
conflicts.c line 123 log_resolution (state, lookaheadnum, i, _("an error"));
Error : function has no prototype
conflicts.c line 302 sprintf (cp, ngettext ("%d shift/reduce conflict",
Error : cannot convert
'int' to
'const char *'
conflicts.c line 303 "%d shift/reduce conflicts", src_num), src_num);
Error : cannot convert
'int' to
'const char *'
conflicts.c line 316 "%d reduce/reduce conflicts", rrc_num), rrc_num);
Error : cannot convert
'int' to
'const char *'
conflicts.c line 340 fprintf (out, _("State %d contains "), i);
Error : cannot convert
'int' to
'const char *'
conflicts.c line 387 fprintf (stderr, _("conflicts: "));
Error : cannot convert
'int' to
'const char *'
conflicts.c line 389 fprintf (stderr, _(" %d shift/reduce"), src_total);
Error : cannot convert
'int' to
'const char *'
conflicts.c line 393 fprintf (stderr, _(" %d reduce/reduce"), rrc_total);
Error : cannot convert
'int' to
'const char *'
conflicts.c line 398 fprintf (stderr, _("%s contains "), infile);
Error : cannot convert
'int' to
'const char *'
conflicts.c line 408 expected_conflicts);
Error : cannot convert
'int' to
'const char *'
conflicts.c line 459 tags[rule_table[default_rule].lhs]);
Error : cannot convert
'int' to
'const char *'
conflicts.c line 462 default_rule, tags[rule_table[default_rule].lhs]);
Error : cannot convert
'int' to
'const char *'
conflicts.c line 518 tags[rule_table[LAruleno[j]].lhs]);
Error : cannot convert
'int' to
'const char *'
conflicts.c line 531 tags[rule_table[LAruleno[default_LA]].lhs]);
Error : cannot convert
'int' to
'const char *'
conflicts.c line 537 tags[rule_table[LAruleno[j]].lhs]);
Error : cannot convert
'int' to
'const char *'
conflicts.c line 545 default_rule, tags[rule_table[default_rule].lhs]);
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : function has no prototype
files.c line 150 gettext ("cannot open file `%s'")
Error : cannot convert
'int' to
'const char *'
files.c line 169 error (2, errno, _("cannot close file"));
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : function has no prototype
getargs.c line 86 gettext ("\
Error : cannot convert
'int' to
'const char *'
getargs.c line 86 GNU bison generates parsers for LALR(1) grammars.\n"),
stream);
Error : cannot convert
'int' to
'const char *'
getargs.c line 90 Usage: %s [OPTION]... FILE\n"), program_name);
Error : cannot convert
'int' to
'const char *'
getargs.c line 96 stream);
Error : cannot convert
'int' to
'const char *'
getargs.c line 103 -y, --yacc emulate POSIX yacc\n"), stream);
Error : cannot convert
'int' to
'const char *'
getargs.c line 115 "), stream);
Error : cannot convert
'int' to
'const char *'
getargs.c line 125 "), stream);
Error : cannot convert
'int' to
'const char *'
getargs.c line 129 Report bugs to <address@hidden>.\n"), stream);
Error : cannot convert
'int' to
'const char *'
getargs.c line 143 bison (GNU Bison) %s"), VERSION);
Error : cannot convert
'int' to
'const char *'
getargs.c line 149 stream);
Error : cannot convert
'int' to
'const char *'
getargs.c line 155 stream);
Error : cannot convert
'int' to
'const char *'
getargs.c line 220 fatal (_("`%s' is no longer supported"), "--raw");
Error : cannot convert
'int' to
'const char *'
getargs.c line 245 program_name);
Error : cannot convert
'int' to
'const char *'
getargs.c line 251 fprintf (stderr, _("%s: no grammar file given\n"),
program_name);
Error : cannot convert
'int' to
'const char *'
getargs.c line 256 program_name, argv[optind]);
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : function has no prototype
lalr.c line 255 gettext ("too many gotos (max %d)")
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : function has no prototype
lex.c line 76 gettext ("unexpected `/' found and ignored")
Error : cannot convert
'int' to
'const char *'
lex.c line 105 fatal (_("unterminated comment"));
Error : cannot convert
'int' to
'const char *'
lex.c line 137 fatal (_("unexpected end of file"));
Error : cannot convert
'int' to
'const char *'
lex.c line 166 complain (_("unescaped newline in constant"));
Error : cannot convert
'int' to
'const char *'
lex.c line 209 code);
Error : cannot convert
'int' to
'const char *'
lex.c line 233 complain (_("hexadecimal value above 255: `\\x%x'"), code);
Error : cannot convert
'int' to
'const char *'
lex.c line 246 quote (badchar));
Error : cannot convert
'int' to
'const char *'
lex.c line 342 fatal (_("unterminated type name at end of file"));
Error : cannot convert
'int' to
'const char *'
lex.c line 345 complain (_("unterminated type name"));
Error : cannot convert
'int' to
'const char *'
lex.c line 438 complain (_("use \"...\" for multi-character literal
tokens"));
Error : cannot convert
'int' to
'const char *'
lex.c line 667 fatal (_("`%s' supports no argument: %s"), token_buffer,
quote (arg));
Error : cannot convert
'int' to
'const char *'
lex.c line 683 fatal (_("`%s' requires an argument"), token_buffer);
Error : cannot convert
'int' to
'const char *'
lex.c line 694 fatal (_("`%s' is no longer supported"), token_buffer);
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : function has no prototype
LR0.c line 189 gettext ("too many states (max %d)")
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : function has no prototype
main.c line 63 bindtextdomain (PACKAGE, LOCALEDIR);
Error : function has no prototype
main.c line 64 textdomain (PACKAGE);
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : function has no prototype
output.c line 1099 gettext ("maximum table size (%d) exceeded")
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : function has no prototype
print.c line 88 gettext (" (rule %d)")
Error : cannot convert
'int' to
'const char *'
print.c line 108 fprintf (out, _(" $default\taccept\n"));
Error : cannot convert
'int' to
'const char *'
print.c line 110 fprintf (out, _(" NO ACTIONS\n"));
Error : cannot convert
'int' to
'const char *'
print.c line 124 _(" $ \tgo to state %d\n"), state1);
Error : cannot convert
'int' to
'const char *'
print.c line 128 tags[symbol], state1);
Error : cannot convert
'int' to
'const char *'
print.c line 143 tags[symbol]);
Error : cannot convert
'int' to
'const char *'
print.c line 155 rule, tags[symbol]);
Error : cannot convert
'int' to
'const char *'
print.c line 170 tags[symbol], state1);
Error : cannot convert
'int' to
'const char *'
print.c line 180 fprintf (out, _("state %d"), state);
Error : cannot convert
'int' to
'const char *'
print.c line 218 i, rule_table[i].line, tags[rule_table[i].lhs]);
Error : cannot convert
'int' to
'const char *'
print.c line 282 sprintf (buffer + strlen (buffer), _(" on left:"));
Error : cannot convert
'int' to
'const char *'
print.c line 297 sprintf (buffer + strlen (buffer), _(" on right:"));
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : function has no prototype
reader.c line 89 gettext (" Skipping to next \\n")
Error : cannot convert
'int' to
'const char *'
reader.c line 91 complain (_(" Skipping to next %c"), target);
Error : cannot convert
'int' to
'const char *'
reader.c line 142 complain (_("invalid $ value"));
Error : cannot convert
'int' to
'const char *'
reader.c line 154 complain (_("invalid $ value"));
Error : cannot convert
'int' to
'const char *'
reader.c line 180 fatal (_("unterminated string at end of file"));
Error : cannot convert
'int' to
'const char *'
reader.c line 183 complain (_("unterminated string"));
Error : cannot convert
'int' to
'const char *'
reader.c line 195 fatal (_("unterminated string at end of file"));
Error : cannot convert
'int' to
'const char *'
reader.c line 280 fatal (_("unterminated comment"));
Error : cannot convert
'int' to
'const char *'
reader.c line 336 complain (_("%s is invalid"), quote (buf));
Error : cannot convert
'int' to
'const char *'
reader.c line 377 rule->sym->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 394 n, rule->sym->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 400 complain (_("%s is invalid"), quote (buf));
Error : cannot convert
'int' to
'const char *'
reader.c line 492 fatal (_("Premature EOF after %s"), token_buffer);
Error : cannot convert
'int' to
'const char *'
reader.c line 510 symval->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 513 symbol->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 533 complain (_("symbol %s redefined"), symbol->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 543 complain (_("type redeclaration for %s"), symbol->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 554 (what_is == token_sym) ? "%token" : "%nterm");
Error : cannot convert
'int' to
'const char *'
reader.c line 570 complain (_("multiple %s declarations"), "%start");
Error : cannot convert
'int' to
'const char *'
reader.c line 572 complain (_("invalid %s declaration"), "%start");
Error : cannot convert
'int' to
'const char *'
reader.c line 607 fatal (_("Premature EOF after %s"), token_buffer);
Error : cannot convert
'int' to
'const char *'
reader.c line 622 complain (_("type redeclaration for %s"), symval->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 628 token_buffer);
Error : cannot convert
'int' to
'const char *'
reader.c line 657 fatal (_("Premature EOF after %s"), token_buffer);
Error : cannot convert
'int' to
'const char *'
reader.c line 672 complain (_("redefining precedence of %s"), symval->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 676 complain (_("symbol %s redefined"), symval->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 683 complain (_("type redeclaration for %s"), symval->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 696 token_buffer);
Error : cannot convert
'int' to
'const char *'
reader.c line 705 complain (_("unexpected item: %s"), token_buffer);
Error : cannot convert
'int' to
'const char *'
reader.c line 735 complain (_("multiple %s declarations"), "%union");
Error : cannot convert
'int' to
'const char *'
reader.c line 778 complain (_("unmatched %s"), "`}'");
Error : cannot convert
'int' to
'const char *'
reader.c line 810 complain (_("argument of %%expect is not an integer"));
Error : cannot convert
'int' to
'const char *'
reader.c line 857 token_buffer);
Error : cannot convert
'int' to
'const char *'
reader.c line 878 complain (_("expected string constant instead of %s"),
token_buffer);
Error : cannot convert
'int' to
'const char *'
reader.c line 1026 complain (_("unrecognized: %s"), token_buffer);
Error : cannot convert
'int' to
'const char *'
reader.c line 1031 fatal (_("no input grammar"));
Error : cannot convert
'int' to
'const char *'
reader.c line 1036 complain (_("unknown character: %s"), quote (buf));
Error : cannot convert
'int' to
'const char *'
reader.c line 1110 fatal (_("unmatched %s"), "`{'");
Error : cannot convert
'int' to
'const char *'
reader.c line 1181 complain (_("unmatched %s"), "`}'");
Error : cannot convert
'int' to
'const char *'
reader.c line 1357 complain (_("ill-formed rule: initial symbol not
followed by colon"));
Error : cannot convert
'int' to
'const char *'
reader.c line 1364 complain (_("grammar starts with vertical bar"));
Error : cannot convert
'int' to
'const char *'
reader.c line 1392 complain (_("rule given for %s, which is a token"),
lhs->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 1492 complain (_("two @prec's in a row"));
Error : cannot convert
'int' to
'const char *'
reader.c line 1500 complain (_("%%guard present but %%semantic_parser not
specified"));
Error : cannot convert
'int' to
'const char *'
reader.c line 1509 complain (_("two actions at end of one rule"));
Error : cannot convert
'int' to
'const char *'
reader.c line 1525 first_rhs->type_name ? first_rhs->type_name : "");
Error : cannot convert
'int' to
'const char *'
reader.c line 1529 complain (_("empty rule for typed nonterminal, and no
action"));
Error : cannot convert
'int' to
'const char *'
reader.c line 1573 complain (_("invalid input: %s"), quote (token_buffer));
Error : cannot convert
'int' to
'const char *'
reader.c line 1582 MAXSHORT);
Error : cannot convert
'int' to
'const char *'
reader.c line 1584 fatal (_("no rules in the input grammar"));
Error : cannot convert
'int' to
'const char *'
reader.c line 1609 bp->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 1745 bp->tag, bp->user_token_number);
Error : cannot convert
'int' to
'const char *'
reader.c line 1797 bp->tag, bp->alias->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 1809 bp->tag, bp->alias->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 1847 fatal (_("the start symbol %s is undefined"),
startval->tag);
Error : cannot convert
'int' to
'const char *'
reader.c line 1849 fatal (_("the start symbol %s is a token"),
startval->tag);
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : function has no prototype
reduce.c line 409 gettext ("Useless nonterminals:")
Error : function has no prototype
reduce.c line 503 fprintf (stderr, ngettext ("%d rule never reduced\n",
Error : cannot convert
'int' to
'const char *'
reduce.c line 506 nuseless_productions);
Error : cannot convert
'int' to
'const char *'
reduce.c line 508 fprintf (stderr, _("%s contains "), infile);
Error : cannot convert
'int' to
'const char *'
reduce.c line 514 nuseless_nonterminals);
Error : cannot convert
'int' to
'const char *'
reduce.c line 517 fprintf (stderr, _(" and "));
Error : cannot convert
'int' to
'const char *'
reduce.c line 523 nuseless_productions);
Error : cannot convert
'int' to
'const char *'
reduce.c line 552 tags[start_symbol]);
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Error : the file 'intl/libgettext.h' cannot be opened
system.h line 152 #include "intl/libgettext.h"
Hans Aberg
- Re: Bison 1.30f,
Hans Aberg <=
- Re: Bison 1.30f, Akim Demaille, 2001/12/06
- Re: Bison 1.30f, Hans Aberg, 2001/12/06
- Re: Bison 1.30f, Akim Demaille, 2001/12/10
- Re: Bison 1.30f, Hans Aberg, 2001/12/10
- Re: Bison 1.30f, Paul Eggert, 2001/12/10
- Re: Bison 1.30f, Hans Aberg, 2001/12/11
- Re: Bison 1.30f, Akim Demaille, 2001/12/12
- Re: Bison 1.30f, Axel Kittenberger, 2001/12/11
- Re: Bison 1.30f, Akim Demaille, 2001/12/12
- Re: Bison 1.30f, Hans Aberg, 2001/12/12