"Show AST" errors for leaves
If I select an integer value or variable name or something else which is a leaf in my AST, “show AST” does not work correctly. It shows just the content of the string, but not the AST node. For example, selecting x should give Var(“x”) but gives x, selecting 21 should give Int(“21”) but gives 21.
Submitted by Guido Wachsmuth on 14 October 2010 at 14:55
Issue Log
I’m not sure why it returns
21
instead of"21"
but I guess that’s a string display issue. It would definitely be good to return a matching ancestor instead, likeInt("21")
. Should be simple to add. It would also be great to have that for the “apply custom rule” feature, where you can make a selection in your program, and then for example applytype-of
and see the type. But when applied to"21"
instead ofInt("21")
that functionality breaks.
Fixed in r21312 (scheduled for 0.5.3.92).
Log in to post comments