class

DoisC::Codegen::Transpiler

Inherits DoisC::Codegen::BaseCodegen < Reference < Object

Transpiles the typed Dois AST into final C source text.

This layer should NOT walk expressions itself anymore. It should only orchestrate the specialized emitters.

Constructors

Instance methods

generate(ast : ASTData::AST) : String

Main compiler entry point. main.cr currently calls generate, so keep that stable.

Source
transpile(ast : ASTData::AST) : String
Source