エンドユーザーが編集する必要がある大きなスクリプトがあるため、多少冗長なコメントが必要です。これに似たファイルのレイアウトを使用します
//********************
//
// 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...
関数の概要をファイルのヘッダーにコピー/貼り付けする単純なパーサーを作成したいと考えています。ANTLR や RegEx など、これを実現するのに役立ついくつかのツールを知っていますが、最善の方法は何でしょうか?