Check for better stack versions earlier when handling errors

This commit is contained in:
Max Brunsfeld 2016-06-12 17:41:25 -07:00
parent 2b80e66188
commit f77c08eff5
2 changed files with 64 additions and 40 deletions

View file

@ -553,7 +553,8 @@ bool ts_stack_print_dot_graph(Stack *self, const char **symbol_names, FILE *f) {
fprintf(f, "shape=point margin=0 label=\"\"");
else
fprintf(f, "label=\"%d\"", node->state);
fprintf(f, " tooltip=\"error-count:%u, error-cost:%u\"];\n", node->error_depth, node->error_cost);
fprintf(f, " tooltip=\"error-count:%u, error-cost:%u\"];\n",
node->error_depth, node->error_cost);
for (int j = 0; j < node->link_count; j++) {
StackLink link = node->links[j];