-
Notifications
You must be signed in to change notification settings - Fork 35
fpp to json
Rob Bocchino edited this page Jul 10, 2023
·
11 revisions
Note: This tool is in development.
This tool parses an FPP model, performs semantic checking on it, and writes out the model in Javascript Object Notation (JSON) format.
Options:
-
TODO
Input:
-
A list fl of files to translate: either the single file stdin or a list of files specified on the command line.
Output:
-
TODO
Procedure:
-
Parse each of the files in fl, generating a list tul of translation units. When parsing, recursively resolve include specifiers.
-
Perform semantic checking on the concatenation of tul
-
Convert the abstract syntax tree (AST), the location map, and the Analysis data structure to JSON objects.
-
Write the JSON objects to files.