Check for better stack versions earlier when handling errors
This commit is contained in:
parent
2b80e66188
commit
f77c08eff5
2 changed files with 64 additions and 40 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue