graphs: show reductions
authorTheophile Ranquet <ranquet@lrde.epita.fr>
Mon, 8 Oct 2012 06:11:41 +0000 (06:11 +0000)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 11 Oct 2012 13:59:55 +0000 (15:59 +0200)
commit83bae26d3f9b374fb189703aa8795ecb3240bab2
treec38371bf78ba9cfb54c8d570a1dacdd8f5694e20
parent9fc99ca35009c1be76ce1c73133833ad82562a8b
graphs: show reductions

* src/graphviz.c (output_red): New, show reductions on the graph.
(no_reduce_bitset_init): New, initialize a bitset.
(print_token): New, print a lookahead token.
(escape): New, print "foo" as \"foo\" because Dot doesn't like quotes within
a label.

* src/graphviz.h : Adjust.
* src/print_graph.c (print_actions): Call output_red here.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
src/graphviz.c
src/graphviz.h
src/print_graph.c