Skip to content

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:

  1. TODO

Input:

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

Output:

  1. TODO

Procedure:

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

  2. Perform semantic checking on the concatenation of tul

  3. Convert the abstract syntax tree (AST), the location map, and the Analysis data structure to JSON objects.

  4. Write the JSON objects to files.

Clone this wiki locally