[antlr-interest] help with instrumentor

Naimal Khan naimal_khan at hotmail.com
Tue Nov 28 04:36:29 PST 2006


Hi every one,
I want to develop a java Source code instrumentor for analysing the source 
code. For example i want to analyse a conditional statement such as x1=10; 
x2=12; . . . xn=6 and i've condition such as if ((x1<x2)&& (x3>x5)) {do this 
thing;} else {do that thing;} at this point i want the instrumentor to 
insert code. e.g, declare temp1, temp2,...tempn variables (egual to the 
number of variable used in the condition) and then return the values such as 
(x2-x1)+(x3-x5). Can i do such kind of intrumentation with ANTLR? how?

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



More information about the antlr-interest mailing list