transpiler

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DummyWorkingCode A working SystemVerilog code used for testing.
	DummyWorkingCode = `` /* 1241-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func Transpile

func Transpile(code string, logs chan<- Log) (string, error)

Transpile Transpile your code from SystemVerilog to C++.

Types

type Log

type Log interface {
	Name() string
}

Log a interface for a log.

type LogInternal

type LogInternal struct {
	Message  string `json:"message"`
	Severity string `json:"severity"`
}

LogInternal A internal log.

func (LogInternal) Name

func (LogInternal) Name() string

Name Returns the instance type name.

type LogStderr

type LogStderr struct {
	Stderr string `json:"stderr"`
}

LogStderr A log from the stderr.

func (LogStderr) Name

func (LogStderr) Name() string

Name Returns the instance type name.

type LogStdout

type LogStdout struct {
	Stdout string `json:"stdout"`
}

LogStdout A log from the stdout.

func (LogStdout) Name

func (LogStdout) Name() string

Name Returns the instance type name.

Jump to

Keyboard shortcuts

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