like as you put the @param varName ..blah ... it'll drop the var into the method signature ... or the other way around.
I think the other way around should be much easier... but the regex gets fairly huge soon. I'm letting other regex gurus step in and have a stab at the problem, my attempt has become a huge mess after like 30 seconds :)