docs.rs failed to build phenotyper-0.3.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Phenotyper Core — compiler library for the Phenotyper structural artifact definition language.
This crate implements the full compilation pipeline:
- Lexer: Tokenization of
.phtand.mdsources - Parser: Rustemo-based parser producing a span-annotated AST
- AST: Surface syntax tree data types
- Symbol table: Name collection and resolution
- IR: Normalized intermediate representation
- Semantic validation: Type, render, and generation validation
- Codegen: Rust source code generation
Build script integration
For build.rs integration (like prost-build or rustemo), use the
high-level [compile()] function:
// In your build.rs:
fn main() {
phenotyper::compile("src/phenotypes/csv.pht", "src/generated")
.expect("phenotyper compilation failed");
}