19 lines
670 B
Rust
19 lines
670 B
Rust
//! # Codegen Module
|
|
//!
|
|
//! This module is responsible for translating the High-Level AST into
|
|
//! Low-Level Prometeu ByteCode instructions.
|
|
//!
|
|
//! It consists of:
|
|
//! - **codegen.rs**: The main engine that traverses the AST and maintains the compiler state.
|
|
//! - **validator.rs**: A pre-flight check to ensure the AST only contains supported constructs.
|
|
//! - **syscall_map.rs**: A bridge between high-level JS functions and virtual machine syscall IDs.
|
|
//! - **ast_util.rs**: Convenience functions for extracting information from OXC AST nodes.
|
|
|
|
pub mod codegen;
|
|
pub mod validator;
|
|
pub mod ast_util;
|
|
pub mod syscall_map;
|
|
mod input_map;
|
|
|
|
pub use codegen::Codegen;
|