-
Notifications
You must be signed in to change notification settings - Fork 34
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:
-
-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:
-
Parse each of the files in fl to a translation unit tu, reporting any errors that occur.
-
If
-i
is present, then recursively resolve include specifiers. Check for include cycles. Upon detecting an include cycle, halt with an error message. -
Write out the formatted source code.