From: Valentin Tolmer Date: Tue, 29 Jan 2013 13:55:53 +0000 (+0100) Subject: grammar: warn about unused precedence for symbols X-Git-Tag: v2.7.90~128 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/284bc49c832ffe6280907cb6c7788fa06bc58c7c?hp=284bc49c832ffe6280907cb6c7788fa06bc58c7c 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. ---