25 lines
848 B
Rust
25 lines
848 B
Rust
//! # Prometeu Bytecode (PBC)
|
|
//!
|
|
//! This crate defines the core Application Binary Interface (ABI) and Instruction Set Architecture (ISA)
|
|
//! for the Prometeu Virtual Machine (PVM).
|
|
//!
|
|
//! It serves as the "source of truth" for how programs are structured, encoded, and executed
|
|
//! within the ecosystem.
|
|
//!
|
|
//! ## Core Components:
|
|
//! - [`opcode`]: Defines the available instructions and their performance characteristics.
|
|
//! - [`abi`]: Specifies the binary rules for operands and stack behavior.
|
|
//! - [`asm`]: Provides a programmatic Assembler to convert high-level instructions to bytes.
|
|
//! - [`disasm`]: Provides a Disassembler to inspect compiled bytecode.
|
|
//! - [`readwrite`]: Internal utilities for Little-Endian binary I/O.
|
|
|
|
pub mod opcode;
|
|
pub mod abi;
|
|
pub mod readwrite;
|
|
pub mod asm;
|
|
pub mod disasm;
|
|
|
|
mod model;
|
|
|
|
pub use model::*;
|