1 |
2002-04-07 Akim Demaille <akim@epita.fr> |
2002-04-07 Akim Demaille <akim@epita.fr> |
2 |
|
|
3 |
|
Use lib/hash for the symbol table. |
4 |
|
|
5 |
|
* src/gram.c (ntokens): Initialize to 1, to reserve a slot for |
6 |
|
EOF. |
7 |
|
* src/lex.c (lex): Set the `number' member of new terminals. |
8 |
|
* src/reader.c (bucket_check_defined, bucket_make_alias) |
9 |
|
(bucket_check_alias_consistence, bucket_translation): New. |
10 |
|
(reader, grammar_free, readgram, token_translations_init) |
11 |
|
(packsymbols): Adjust. |
12 |
|
(reader): Number the predefined tokens. |
13 |
|
* src/reduce.c (inaccessable_symbols): Just use hard coded numbers |
14 |
|
for predefined tokens. |
15 |
|
* src/symtab.h (bucket): Remove all the hash table related |
16 |
|
members. |
17 |
|
* src/symtab.c (symtab): Replace by... |
18 |
|
(bucket_table): this. |
19 |
|
(bucket_new, bucket_free, hash_compare_bucket, hash_bucket) |
20 |
|
(buckets_new, buckets_do): New. |
21 |
|
|
22 |
|
2002-04-07 Akim Demaille <akim@epita.fr> |
23 |
|
|
24 |
* src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems) |
* src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems) |
25 |
(start_symbol, max_user_token_number, semantic_parser) |
(start_symbol, max_user_token_number, semantic_parser) |
26 |
(error_token_number): Initialize. |
(error_token_number): Initialize. |