package codegen

import "github.com/azin-lang/Azin/internal/codegen"

Index

Types

type Transpiler

type Transpiler struct {
	// contains filtered or unexported fields
}

the Transpiler struct is responsible for transpiling the AST to C code.

func New
func New() *Transpiler

create a new Transpiler.

func (*Transpiler) Transpile
func (t *Transpiler) Transpile(program *ast.Program) string

Transpile transpiles the AST to C code.