pepl-compiler
PEPL compiler: orchestrates the full compilation pipeline from source text to WASM binary.
Chains together lexing, parsing, type checking, invariant checking, and WASM code generation into a single API. Also provides an LLM reference generator and stdlib table export.
Key Exports
use ;
// Full compilation — source to WASM
let wasm: = compile;
// Full compilation with metadata
let result: CompileResult = compile_to_result;
// result.success, result.wasm, result.errors, result.source_hash, result.wasm_hash, ...
// Type-check only (no WASM generation)
let errors = type_check;
CompileResult
Pipeline
Source → Lexer → Parser → Type Checker → Invariant Checker → Codegen → WASM
Constants
PEPL_LANGUAGE_VERSION— the PEPL language version ("0.1.0")PEPL_COMPILER_VERSION— the compiler crate version
Install
License
MIT — see LICENSE