GENGEN(1)

πŸ“¦ version 1.4.3, in arch rolling

πŸ’… GENGEN(1) β€” the gengen manual page, bestie edition ✨

okay so real quick before we dive in: this is the manual page for gengen, and it lives in section 1 of the manual (that's the "1" in GENGEN(1), iykyk). let's get into it πŸŽ€


🌸 NAME 🌸

gengen β€” manual page for gengen 1.4.3


✨ SYNOPSIS ✨

gengen [OPTIONS]...

that's it. that's the whole summoning ritual. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

GNU gengen 1.4.3, hi hello welcome πŸ‘‘

so here's the vibe: you hand this program a skeleton source file that has some parts in it marked to be replaced. gengen then generates a program β€” and that generated program generates that source, substituting those parts exactly as you specified. it's like a program that writes a program that writes your file. recursion but make it fashion. 🧚


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” prints the help text and dips out (exits).
  • -V, --version β€” prints the version and dips out (exits).
  • -i, --input=file β€” the input file. default is standard input (stdin), no cap.
  • -F, --file-name=name β€” the name used for generating the file. default is stdout, so it just spills out onto your terminal if you don't say otherwise 🫢
  • -f, --gen-name=STRING β€” prefix for the generated code. default is gengen.
  • --output-format=lang β€” the target language: cpp, c, lua. default is cpp.
  • --output-dir=STRING β€” output directory. default is the current dir.
  • --separate-files β€” output to separate files (header, source). requires --file-name, so don't skip it bestie πŸ™ˆ
  • --expand-tabs β€” strings containing newlines get indented according to the current indentation level. cute and tidy πŸ’–
  • --no-gen-version β€” don't put the gengen version in the generated file. for the people who like it clean ✨
  • --test-mode β€” even with errors, exit with 0. > this is only for testing purposes, okay? like genuinely. don't ship that πŸ’€
  • --force β€” force regeneration of the output code. make it happen πŸ”₯

😭 REPORTING BUGS 😭

found a bug? spill it to Raman Gopalan <ramangopalan@gmail.com>. they wanna know, fr fr.


Copyright Β© 2002-2015 Lorenzo Bettini <http://www.lorenzobettini.it>

this program comes with ABSOLUTELY NO WARRANTY β€” like, none, zero, nada. 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. slay, legally speaking βš–οΈπŸ’œ


🌈 SEE ALSO 🌈

the full documentation for gengen is maintained as a Texinfo manual. so if the info and gengen programs are properly installed at your site, then this command:

info gengen

should give you access to the complete manual. go forth and read, bestie πŸ“–πŸ¦‹


so yeah, that's gengen β€” version 1.4.3, from way back in June 2015, page GENGEN(1). mwah, take care of her πŸ’‹πŸŽ€

πŸ“¦ where this page comes from