1 |
2001-12-27 Akim Demaille <akim@epita.fr> |
2001-12-27 Akim Demaille <akim@epita.fr> |
2 |
|
|
3 |
|
* src/main.c (main): If there are complains after grammar |
4 |
|
reductions, then output the report anyway if requested, then die. |
5 |
|
* src/symtab.c (bucket_new): Initialize `value' to -1, not 0. |
6 |
|
* src/reader.c (eoftoken): New. |
7 |
|
(parse_token_decl): If the token being defined has value `0', it |
8 |
|
is the eoftoken. |
9 |
|
(packsymbols): No longer hack `tags' to insert `$' by hand. |
10 |
|
Be sure to preserve the value of the eoftoken. |
11 |
|
(reader): Make sure eoftoken is defined. |
12 |
|
Initialize nsyms to 0: now eoftoken is created just like the others. |
13 |
|
* src/print.c (print_grammar): Don't special case the eof token. |
14 |
|
* src/regression.at: Adjust: `$' has value 0, not -1, which was a |
15 |
|
lie anyway, albeit pleasant. |
16 |
|
* tests/calc.at: Exercise error messages with eoftoken. |
17 |
|
Change the grammar so that empty input is invalid. |
18 |
|
Adjust expectations. |
19 |
|
When yyungeting, be sure to use a valid yylloc: use last_yylloc. |
20 |
|
|
21 |
|
|
22 |
|
2001-12-27 Akim Demaille <akim@epita.fr> |
23 |
|
|
24 |
* configure.in: Check the protos of strchr ans strspn. |
* configure.in: Check the protos of strchr ans strspn. |
25 |
Replace strchr if needed. |
Replace strchr if needed. |
26 |
* src/system.h: Provide the protos of strchr, strspn and memchr if |
* src/system.h: Provide the protos of strchr, strspn and memchr if |