vscode-antlr4 icon indicating copy to clipboard operation
vscode-antlr4 copied to clipboard

The Debug Parse Tree is Large. Can We hide the tokens?

Open 100mango opened this issue 3 years ago • 2 comments

截屏2021-01-20 下午3 52 13

Can we hide the unimportant node like T_30, T31, T_XXX? only show the token string "(", ")"

Thanks.

100mango avatar Jan 20 '21 07:01 100mango

There's a control at the top of the graphic which allows to change the width of the token nodes. And you can collapse non-terminals (the nodes in white). Other than that there's nothing to customize the tree output.

mike-lischke avatar Jan 20 '21 07:01 mike-lischke

Thanks a lot. Would you consider provide options that we can:

  1. Hide the unnamed tokens, like T30, T31
  2. Directly show the unnamed tokens, like "(", ")", ";"
    The reason that shows these tokens directly, is that we can focus on the important part, like the named token and parse rule.

100mango avatar Jan 20 '21 08:01 100mango