Skip to content

fpp filenames

Rob Bocchino edited this page Jul 16, 2021 · 14 revisions

This tool writes out the names of XML and C++ files generated from FPP source files.

Input: A list fl of files: either the single file stdin or a list of files specified on the command line.

Output: A list of file names, written one per line to standard output, with no other punctuation. The elements of the list are the names of the XML and C++ files that would be generated by running fpp-to-xml and fpp-to-cpp on fl and importing the dependencies of fl.

Procedure:

  1. Parse each of the files in fl, generating a list tul of translation units. When parsing, recursively resolve include specifiers.

  2. Walk the AST and identify the definitions that cause XML or C++ files to be generated.

  3. Write out the names of the generated files.