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

On 19 October 2010 at 18:43 Lennart Kats commented:

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, like Int("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 apply type-of and see the type. But when applied to "21" instead of Int("21") that functionality breaks.


On 1 November 2010 at 15:08 Lennart Kats commented:

Fixed in r21312 (scheduled for 0.5.3.92).


On 1 November 2010 at 15:08 Lennart Kats closed this issue.

On 9 December 2010 at 14:43 Lennart Kats tagged incompatible

Log in to post comments