I have a large script that end-users need to edit so it requires somewhat redundant commenting. I use a layout for my files similar to this
//********************
//
// FileName
// This script contains:
// - Function X - does something
// - Function Y - does something else
//
//********************
//********************
// Function X
// does something (<< I'd only like to enter this part once)
//********************
// Code here...
//********************
// Function Y
// does something else
//********************
// Code here...
I want to create a simple parser that does the copy/pasting of the function summaries to the file's header. I know of several tools that could help to accomplish this, like ANTLR and even RegEx, but what would be the best method?