Skip to content
Beskid The Beskid Book

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

14.1 Pipeline overview

Resolution, semantic facts, typed code generation, AOT execution, and the separate interactive JIT paths.

Pipeline overview

Mirror of the normative Build pipeline overview—same flow, book voice.

accTitle: Current compilation and execution pipeline
accDescr: Resolution and syntax produce a typed program, CodegenInput drives ISLE emission, and the result goes to AOT commands or the JIT test and REPL paths.
flowchart TB
  resolve[Project resolution]
  assemble[program.assemble]
  parse[Parse and syntax diagnostics]
  mods[Mod host optional]
  semantic[Semantic rules and composition.resolve]
  typed[TypedProgram]
  input[CodegenInput]
  isle[ISLE emission to CodegenArtifact]
  jit[JIT tests and REPL]
  aot[AOT build, run, and link]
  resolve --> assemble --> parse --> mods --> semantic --> typed --> input --> isle
  isle --> jit
  isle --> aot

Text equivalent: Resolve the project and assemble source roots. Parse and analyze the program, apply approved Mod behavior, and produce TypedProgram. Construct CodegenInput, emit through ISLE, and create CodegenArtifact. beskid build and beskid run use AOT output. The current test runner and REPL use the JIT engine.

StagePrimary crates
Resolution / graphbeskid_analysis (projects), beskid_cli
Parse, syntax, and typed factsbeskid_analysis, beskid_queries
Mod hostbeskid_analysis (mod_host)
Semantic rulesbeskid_analysis (analysis)
CodegenInput and ISLE emissionbeskid_codegen, beskid_isle
JIT tests and REPLbeskid_engine, beskid_repl, beskid_abi
AOTbeskid_aot
Phase IDsbeskid_pipeline

beskid build, beskid run, beskid analyze orchestrate subsets—contract: Build / analyze / run.

LSP analysis should match CLI phases for the same snapshot (LSP diagnostics).

Front-end