...

Package helpers

import "github.com/zylisp/zylisp/core/generator/helpers"
Overview
Index

Overview ▾

func E

func E(exprs ...ast.Expr) []ast.Expr

E converts passed expressions to a collection of expressions.

func EmptyE

func EmptyE() []ast.Expr

EmptyE returns an empty expression AST

func EmptyI

func EmptyI() []*ast.Ident

EmptyI returns an empty identity AST

func EmptyS

func EmptyS() []ast.Stmt

EmptyS returns a empty statement AST.

func I

func I(ident *ast.Ident) []*ast.Ident

I converts passed identities to a collection of identities.

func S

func S(stmts ...ast.Stmt) []ast.Stmt

S converts passed statements to a collection of statements.