diff options
author | Valentin Tolmer <nitnelave1@gmail.com> | 2013-01-29 14:55:53 +0100 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2013-01-29 15:11:35 +0100 |
commit | 284bc49c832ffe6280907cb6c7788fa06bc58c7c (patch) | |
tree | 7b0c76359c32d8a3e90055f8d887d699e87c8f45 /tests/java.at | |
parent | fbecd2ab59d461fbd943670338a5def4157e3364 (diff) | |
download | bison-284bc49c832ffe6280907cb6c7788fa06bc58c7c.tar.gz |
grammar: warn about unused precedence for symbols
Symbols with precedence but no associativity, and whose precedence is
never used, can be declared with %token instead. The used precedence
relationships are recorded and a warning about useless ones is issued.
* src/conflicts.c (resolve_sr_conflict): Record precedence relation.
* src/symtab.c, src/symtab.h (prec_nodes, init_prec_nodes)
(symgraphlink_new, register_precedence_second_symbol)
(print_precedence_warnings): New.
Record relationships in a graph and warn about useless ones.
* src/main.c (main): Print precedence warnings.
* tests/conflicts.at: New.
Diffstat (limited to 'tests/java.at')
0 files changed, 0 insertions, 0 deletions