package mantra.compiler
CEmitter
CLASS
public class
Native code generator translating Mantra AST into optimized ISO C99 source with vtable structs.
🏗️ Constructor Summary
Constructor Signature
def __init__(self)
⚙️ Method Summary
| Modifier & Return Type | Method Signature | Description |
|---|---|---|
String |
emit(program: Program) |
Produces complete C99 code. |
🔍 Detailed Method Specifications
pub def emit(program: Program) -> String
Produces complete C99 code.
💡 Example Usage
cemitter_example.mantra
let emitter = CEmitter()
let c_code = emitter.emit(program)