Hi..

I need some help..

I have a file which looks like this..

function a{
 statement1;
 statement2;
}
function b{
 statement1;
 statement2;
}
//function: this is not a function

function

 function c
{
 statement1;
 statement2;
}


An extra line, comment with function name,  should be added to every
function block in the above file.. The desired output is the
following..


function a{
 //this is function a

 statement1;
 statement2;
}
function b{
 //this is function b

 statement1;
 statement2;
}
//function: this is not a function

function

 function c
{
 //this is function c

 statement1;
 statement2;
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MyLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/mylug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to