irgo

package module
v0.0.0-...-2abae1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2018 License: BSD-3-Clause Imports: 24 Imported by: 2

README

github.com/cznic/irgo has moved to modernc.org/irgo (vcs).

Please update your import paths to modernc.org/irgo.

This repo is now archived.

Documentation

Overview

Package irgo translates intermediate representations to Go. (Work In Progress)

Index

Constants

This section is empty.

Variables

View Source
var (
	// Testing amends things for tests.
	Testing bool
	// Testing hook.
	FTrace bool
)

Functions

func New

func New(out io.Writer, obj []ir.Object, types map[ir.TypeID]string, opts ...Option) (err error)

New writes Go code generated from obj to out. No package or import clause is generated. The types argument is consulted for named types.

func TODO

func TODO(msg string, more ...interface{}) string

TODO remove me.

Types

type Option

type Option func(*options) error

Option is a configuration/setup function that can be passed to the New function.

func TypeCache

func TypeCache(tc ir.TypeCache) Option

TypeCache option requests to use a shared type cache tc.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL