GENGEN(1) User Commands GENGEN(1)

# [NAME](#NAME)

gengen - manual page for gengen 1.4.3

# [SYNOPSIS](#SYNOPSIS)

**gengen** \[*OPTIONS*]...

# [DESCRIPTION](#DESCRIPTION)

GNU gengen 1.4.3

This program, given a skeleton source file with some parts to be replaced, generates a program that generates that source, and substitutes those parts as specified.

[**-h**, **--help**](#h)

Print help and exit

[**-V**, **--version**](#V)

Print version and exit

[**-i**, **--input**=*file*](#i)

input file (default std input)

[**-F**, **--file-name**=*name*](#F)

name used for generating file (default stdout)

[**-f**, **--gen-name**=*STRING*](#f)

prefix for generated code (default=\`gengen')

[**--output-format**=*lang*](#output)

target language (cpp, c, lua) (default=\`cpp')

[**--output-dir**=*STRING*](#output~2)

output directory (default current dir)

[**--separate-files**](#separate)

output to separate files (header, source). require **--file-name**

[**--expand-tabs**](#expand)

strings containing newlines are indented according to the current indentation level

[**--no-gen-version**](#no)

do not put gengen version in the generated file

[**--test-mode**](#test)

even with errors exit with 0 (this is only for testing purposes)

[**--force**](#force)

force regeneration of output code

# [REPORTING BUGS](#REPORTING_BUGS)

Report bugs to Raman Gopalan &lt;ramangopalan@gmail.com&gt;

# [COPYRIGHT](#COPYRIGHT)

Copyright © 2002-2015 Lorenzo Bettini &lt;http://www.lorenzobettini.it&gt; This program comes with ABSOLUTELY NO WARRANTY; for details please see the file 'COPYING' supplied with the source code.  
This is free software, and you are welcome to redistribute it under certain conditions; again, see 'COPYING' for details. This program is released under the GNU General Public License.

# [SEE ALSO](#SEE_ALSO)

The full documentation for **gengen** is maintained as a Texinfo manual. If the **info** and **gengen** programs are properly installed at your site, the command

**info gengen**

should give you access to the complete manual.

June 2015 gengen 1.4.3

---

Document: gengen(1) from gengen 1.4.3-r3 (Chainguard OS)
Source: https://git.savannah.gnu.org/git/gengen.git
