Expand description
PEPL compiler: orchestrates the full compilation pipeline.
PEPL Source → Lexer → Parser → Type Checker → Invariant Checker → WASM Codegen → .wasm§Two entry points
type_check— Parse + type-check only, returning structured errors.compile— Full pipeline: parse → type-check → codegen →.wasmbytes.compile_to_result— Full pipeline returning aCompileResult(JSON-serializable).
Modules§
- checker
- PEPL Type Checker — walks a parsed AST and validates types.
- env
- Type environment with lexically scoped bindings.
- reference
- Machine-generated PEPL reference and stdlib table.
- stdlib
- Standard library function signature registry.
- ty
- Internal type representation for the PEPL type checker.
Structs§
- Action
Info - A declared action with name and parameter types.
- Compile
Result - The result of a full compilation pipeline.
- Field
Info - A declared state field with name and type.
Constants§
- PEPL_
COMPILER_ VERSION - Compiler version (matches Cargo package version).
- PEPL_
LANGUAGE_ VERSION - PEPL language version (Phase 0).
Functions§
- compile
- Full compilation pipeline: source →
.wasmbytes. - compile_
to_ result - Full compilation pipeline, returning a
CompileResult(JSON-serializable). - type_
check - Type-check a PEPL source file.