2003-02-14 21:26:15 +01:00
|
|
|
AutoGen is a tool designed for generating program files that contain
|
|
|
|
repetitive text with varied substitutions. Its goal is to simplify the
|
|
|
|
maintenance of programs that contain large amounts of repetitious text.
|
|
|
|
This is especially valuable if there are several blocks of such text that
|
2003-05-06 19:40:18 +02:00
|
|
|
must be kept synchronized.
|
2003-02-14 21:26:15 +01:00
|
|
|
|
|
|
|
One common example is the problem of maintaining the code required for
|
|
|
|
processing program options. Processing options requires a minimum of four
|
|
|
|
different constructs be kept in proper order in different places in your
|
2003-05-06 19:40:18 +02:00
|
|
|
program. You need at least:
|
2003-02-14 21:26:15 +01:00
|
|
|
|
2003-05-06 19:40:18 +02:00
|
|
|
1. The flag character in the flag string,
|
|
|
|
2. code to process the flag when it is encountered,
|
|
|
|
3. a global state variable or two, and
|
|
|
|
4. a line in the usage text.
|