Akim Demaille
5844cd0cfa
* src/reduce.c (reduce_grammar_tables): No longer disable the
...
removal of useless rules via CPP but via `if (0)', so that the
compiler still check the code is valid.
For instance, it should have noticed `rline' no longer exists: use
the `line' member of rule_t.
* src/gram.c (dummy, rline): Remove, unused.
2001-12-05 09:24:35 +00:00
Akim Demaille
6a1e01f060
* src/lalr.c (maxrhs): Move to...
...
* src/gram.c, src/gram.h (ritem_longest_rhs): here.
* src/lalr.c (build_relations): Adjust.
2001-12-05 09:18:12 +00:00
Akim Demaille
2dfb4daf9b
* src/gram.c, src/gram.h (ritem_print): New.
...
* src/gram.c (dummy): Remove, now there is actual code in gram.c.
(This useless function was defined only to work around VMS linkers
that can't handle compilation units with variables only).
* src/reduce.c (dump_grammar): Use it to trace the construction of
ritem.
2001-12-05 09:16:07 +00:00
Akim Demaille
ff1581dddb
* src/gram.h (rule_t): New.
...
(rule_table): New.
(rrhs, rlhs): Remove, part of state_t.
* src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
* src/lalr.c, src/nullable.c, src/output.c, src/print.c,
* src/reader.c, src/reduce.c: Adjust.
2001-11-19 09:12:25 +00:00
Akim Demaille
c6e1f6235a
* src/gram.c (gram_free): Rename back as...
...
(dummy): this.
(output_token_translations): Free `token_translations'.
* src/symtab.c (free_symtab): Free the tag field.
2001-09-22 17:57:59 +00:00
Akim Demaille
ab6fbb02ad
Remove `translations' as it is always set to true.
...
* src/gram.h: Adjust.
* src/reader.c (packsymbols, parse_token_decl): Adjust
* src/print.c (print_grammar): Adjust.
* src/output.c (output_token_translations): Adjust.
* src/lex.c (lex): Adjust.
* src/gram.c: Be sure the set pointers to NULL.
(dummy): Rename as...
(gram_free): this.
2001-09-22 17:43:26 +00:00
Akim Demaille
aa7815f5c6
* src: s/Copyright (C)/Copyright/g.
2000-11-07 16:28:47 +00:00
Jesse Thilo
4a120d45e6
More explicit use of "const", "extern", and "static", particularly to
...
limit the scope of many local variables and functions.
2000-07-04 03:29:02 +00:00
Jesse Thilo
cbbe75051d
#Remove static from dummy().
1999-01-20 22:56:40 +00:00
Jesse Thilo
c49a8e71ce
Update FSF address.
1999-01-14 14:58:38 +00:00
Jesse Thilo
d2729d44ab
Use prototypes if the compiler understands them.
1998-12-30 05:27:11 +00:00
David MacKenzie
f7d4d87ac9
entered into RCS
1991-11-03 02:39:18 +00:00