windjammer 0.48.0

A simple language inspired by Go, Ruby, and Elixir that transpiles to Rust - 80% of Rust's power with 20% of the complexity
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Statement generation for Rust code
//!
//! This module handles the generation of all statement types:
//! - Variable declarations (let, const, static)
//! - Assignments
//! - If/while/for/match statements
//! - Return statements
//! - Expression statements
//! - etc.

use crate::parser::*;

/// Statement generation methods for CodeGenerator
pub trait StatementGenerator {
    fn generate_statement(&mut self, stmt: &Statement) -> String;
}

// Implementation will be added after extracting from generator.rs