Skip to content

fpp format

bocchino edited this page Dec 12, 2020 · 4 revisions

This tool parses FPP source files into an abstract syntax tree (AST) and writes out the AST as formatted source code.

Flags:

  1. -i: Resolve include specifiers.

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

Output: Formatted FPP source code, written to standard output.

Procedure:

  1. Parse each of the files in fl to a translation unit tu, reporting any errors that occur.

  2. If -i is present, then recursively resolve include specifiers. Check for include cycles. Upon detecting an include cycle, halt with an error message.

  3. Write out the formatted source code.

Clone this wiki locally