---
name: "gengen"
section: "1"
platform: "linux"
package: "gengen"
version: "1.4.3-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gengen"
---

# gengen(1)

manual page for gengen 1.4.3

## NAME

gengen - manual page for gengen 1.4.3

## SYNOPSIS

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

## 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**

  Print help and exit

- **-V**, **--version**

  Print version and exit

- **-i**, **--input**=*file*

  input file (default std input)

- **-F**, **--file-name**=*name*

  name used for generating file (default stdout)

- **-f**, **--gen-name**=*STRING*

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

- **--output-format**=*lang*

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

- **--output-dir**=*STRING*

  output directory (default current dir)

- **--separate-files**

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

- **--expand-tabs**

  strings containing newlines are indented according to the current indentation level

- **--no-gen-version**

  do not put gengen version in the generated file

- **--test-mode**

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

- **--force**

  force regeneration of output code

## REPORTING BUGS

Report bugs to Raman Gopalan \<ramangopalan@gmail.com\>

## COPYRIGHT

Copyright © 2002-2015  Lorenzo Bettini \<http://www.lorenzobettini.it\> 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

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.
