views:

25

answers:

0

Hi!

I am currently servicing an old VBA (visual basic for applications) application. I've got a legacy tool which analyzes that application and prints out dead variables. As there are more than 2000 of them I do not want to do this by hand.

Therefore I had the idea to transform the separate codefiles which contain the dead variable according to the aforementioned tool to ASTs and remove them that way.

My question: Is there a recommended way to do this? I do not want to use StringTemplate, as I would need to create templates for all rules and if I had a commend on the hidden channel, it would be lost, right? Everything I need is to remove parts of that code and print out the rest as it was read in.

Any one has any recommendations, please?