Permalink
Browse files

parser_dump() to show symbol number for NODE_SYM

  • Loading branch information...
matz committed May 14, 2016
1 parent 5933651 commit 2e81fee7316d9604d96bb6e0966f2817520bb98d
Showing with 2 additions and 1 deletion.
  1. +2 −1 mrbgems/mruby-compiler/core/parse.y
@@ -6240,7 +6240,8 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
break;
case NODE_SYM:
printf("NODE_SYM :%s\n", mrb_sym2name(mrb, sym(tree)));
printf("NODE_SYM :%s (%d)\n", mrb_sym2name(mrb, sym(tree)),
(int)(intptr_t)tree);
break;
case NODE_SELF:

0 comments on commit 2e81fee

Please sign in to comment.