I am planning to detect the constructor calls and return statement of a 
function 


a = quote begin
       x = Foo(12)
       y = 5 + 6
       f(x.val,y)
       x.val * y
end

a is an Expr, in this expression , I would like to detect the  constructor 
calls (Foo(12)(  and distinguish them from normal function calls(fx.val,y).
and i also want to identify the return statement, (x.val*y). How can i do 
it programmatically?

Thanks

       

Reply via email to