Skip to main content

Module codegen

Module codegen 

Source
Expand description

Code generation module for compiling ELO expressions to Rust

This module provides the core code generation engine that transforms ELO AST into idiomatic Rust code via the quote! macro.

Re-exports§

pub use errors::CodeGenError;
pub use operators::BinaryOp;
pub use operators::OperatorGenerator;
pub use operators::UnaryOp;
pub use types::TypeContext;

Modules§

errors
Code generation errors
expressions
Expression code generation
functions
Standard library function call code generation
operators
Binary and unary operator code generation
types
Type system mapping between ELO and Rust types

Structs§

RustCodeGenerator
Main code generator for transforming ELO AST to Rust code