Skip to content

Code generator

ProJor's main function is to generate code. This is a two-step process:

  • First, ProJor reads the model from the .projor/ directory. In this step, the templates are also loaded.
  • Then, ProJor iterates through all templates, and generates a virtual file system of the generated code. It might also read files in case of infix templates.
  • After the VFS has been built, ProJor writes the files to the disk.
  • In the end, ProJor writes the .projor/.pstate.json file, which contains the generated VFS.