Build refactor #1546
Labels
kind: refactoring
Improve code readability
misc: ecosystem
Blueprint, Misti, Verifier, Web IDE, VSCode plugin
scope: pipeline
Stages of Tact compiler: parsing, ..., typechecking, codegen, etc. (src/pipeline)
@byakuren-hijiri: Document and refactor the frontend pipeline. Currently, the way the compiler prepares to calling the
precompile
function is quite convoluted. All the arguments of the functions used beforeprecompile
should be documented, we should extract small methods when possible, and document them, to make that API more useful for third-parties.@byakuren-hijiri: Extract methods from the
build
function (src/pipeline/build.ts
) to make it more modular. We need to separate the build functionality from CLI parsing and use different methods to create context, compile, and precompile. This is important to implement in order to enable third-party tools to hook into the compilation pipeline in the most flexible way. Perhaps, the best way to achieve this functionality is to create theBuilder
class with public methods defining the pipeline.The text was updated successfully, but these errors were encountered: