1 |
/* Input parser for Bison |
/* Input parser for Bison |
2 |
|
|
3 |
Copyright (C) 1984, 1986, 1989, 1992, 1998, 2000, 2001, 2002 |
Copyright (C) 1984, 1986, 1989, 1992, 1998, 2000, 2001, 2002, 2003 |
4 |
Free Software Foundation, Inc. |
Free Software Foundation, Inc. |
5 |
|
|
6 |
This file is part of Bison, the GNU Compiler Compiler. |
This file is part of Bison, the GNU Compiler Compiler. |
47 |
`-----------------------*/ |
`-----------------------*/ |
48 |
|
|
49 |
void |
void |
50 |
grammar_start_symbol_set (symbol *s, location loc) |
grammar_start_symbol_set (symbol *sym, location loc) |
51 |
{ |
{ |
52 |
if (start_flag) |
if (start_flag) |
53 |
complain_at (loc, _("multiple %s declarations"), "%start"); |
complain_at (loc, _("multiple %s declarations"), "%start"); |
54 |
else |
else |
55 |
{ |
{ |
56 |
start_flag = 1; |
start_flag = 1; |
57 |
startsymbol = s; |
startsymbol = sym; |
58 |
startsymbol_location = loc; |
startsymbol_location = loc; |
59 |
} |
} |
60 |
} |
} |