Skip to main content

Crate pepl_compiler

Crate pepl_compiler 

Source
Expand description

PEPL compiler: orchestrates the full compilation pipeline.

PEPL Source → Lexer → Parser → Type Checker → Invariant Checker → WASM Codegen → .wasm

§Two entry points

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§

ActionInfo
A declared action with name and parameter types.
CompileResult
The result of a full compilation pipeline.
FieldInfo
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 → .wasm bytes.
compile_to_result
Full compilation pipeline, returning a CompileResult (JSON-serializable).
type_check
Type-check a PEPL source file.