| Crates.io | swamp-compile |
| lib.rs | swamp-compile |
| version | 0.2.26 |
| created_at | 2025-03-29 17:13:43.76961+00 |
| updated_at | 2025-08-18 11:26:57.268983+00 |
| description | Main driver for the Swamp compiler, orchestrating bootstrapping, dependency loading, parsing, and semantic analysis phases. |
| homepage | |
| repository | https://github.com/swamp/swamp |
| max_upload_size | |
| id | 1611469 |
| size | 52,702 |
The main orchestrator for the Swamp programming language compilation pipeline.
This crate ties together various stages of the Swamp compiler to transform source code into a fully analyzed program representation (swamp_semantic::Program). It manages the overall process, including setting up the environment, resolving dependencies, and invoking the semantic analyzer.
swamp-core) and the default symbol table.SourceMap for tracking file locations.swamp-dep-loader to parse the main module and its dependencies, determining the correct analysis order.swamp-program-analyzer to drive the semantic analysis (swamp-analyzer) of all modules in the correct order.swamp-error-report to display compilation errors with source context.bootstrap_and_compile to run the entire pipeline.This crate is typically used as the main entry point for compiling Swamp code, either as a library or within a command-line tool.
[dependencies]
swamp-compile = "0.2.26"