Permalink
Browse files

Fix NODE_DREGX dump; ref #3471

  • Loading branch information...
matz committed Feb 28, 2017
1 parent c52bbe1 commit 22eb41ab209b3fa467b2efdb664eac156e5669d1
Showing with 8 additions and 2 deletions.
  1. +8 −2 mrbgems/mruby-compiler/core/parse.y
@@ -6338,8 +6338,14 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
dump_recur(mrb, tree->car, offset+1);
dump_prefix(tree, offset);
printf("tail: %s\n", (char*)tree->cdr->cdr->car);
dump_prefix(tree, offset);
printf("opt: %s\n", (char*)tree->cdr->cdr->cdr);
if (tree->cdr->cdr->cdr->car) {
dump_prefix(tree, offset);
printf("opt: %s\n", (char*)tree->cdr->cdr->cdr->car);
}
if (tree->cdr->cdr->cdr->cdr) {
dump_prefix(tree, offset);
printf("enc: %s\n", (char*)tree->cdr->cdr->cdr->cdr);
}
break;
case NODE_SYM:

0 comments on commit 22eb41a

Please sign in to comment.