mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +00:00
cex: use the glyphs
* src/derivation.c: here. * src/gram.h, src/gram.c (print_arrow, print_dot, print_fallback): Remove.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include "derivation.h"
|
||||
#include "glyphs.h"
|
||||
|
||||
#include <gl_linked_list.h>
|
||||
|
||||
@@ -145,9 +146,7 @@ derivation_print_impl (const derivation *deriv, FILE *out,
|
||||
{
|
||||
fputs (prefix, out);
|
||||
begin_use_class ("cex-step", out);
|
||||
fprintf (out, "%s ", sym->tag);
|
||||
print_arrow (out);
|
||||
fprintf (out, " [ ");
|
||||
fprintf (out, "%s %s [ ", sym->tag, arrow);
|
||||
end_use_class ("cex-step", out);
|
||||
prefix = "";
|
||||
}
|
||||
@@ -181,7 +180,7 @@ derivation_print_impl (const derivation *deriv, FILE *out,
|
||||
{
|
||||
fputs (prefix, out);
|
||||
begin_use_class ("cex-dot", out);
|
||||
print_dot (out);
|
||||
fputs (dot, out);
|
||||
end_use_class ("cex-dot", out);
|
||||
}
|
||||
else // leaf.
|
||||
|
||||
Reference in New Issue
Block a user