gaia-assembler 0.1.1

Universal assembler framework for Gaia project
Documentation
// Gaia module for testing F# code functionality
module fsharp_test;

import "System";

function main(): void {
    // Print hello message
    call System.Console.WriteLine("Hello from Gaia!");
    call System.Console.WriteLine("Testing Gaia IR to MSIL conversion...");
    
    // Test basic arithmetic operations
    let a: i32 = 10;
    let b: i32 = 5;
    let sum: i32 = a + b;
    let difference: i32 = a - b;
    let product: i32 = a * b;
    let quotient: i32 = a / b;
    
    // Print results
    call System.Console.WriteLine("a = " + a + ", b = " + b);
    call System.Console.WriteLine("a + b = " + sum);
    call System.Console.WriteLine("a - b = " + difference);
    call System.Console.WriteLine("a * b = " + product);
    call System.Console.WriteLine("a / b = " + quotient);
    
    // Test conditional statement
    if (sum > 10) {
        call System.Console.WriteLine("Sum is greater than 10");
    } else {
        call System.Console.WriteLine("Sum is not greater than 10");
    }
    
    call System.Console.WriteLine("Test completed successfully!");
}