cpp

package
v0.0.0-...-14e3c9d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interpreter

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

func NewInterpreter

func NewInterpreter(config InterpreterConfig) (*Interpreter, error)

func (*Interpreter) AddIncludeDir

func (i *Interpreter) AddIncludeDir(dir string)

func (*Interpreter) AddLibrary

func (i *Interpreter) AddLibrary(lib string)

func (*Interpreter) Close

func (i *Interpreter) Close() error

func (*Interpreter) CompileLibrary

func (i *Interpreter) CompileLibrary(ctx context.Context, code, libraryName string) (string, error)

func (*Interpreter) Exec

func (i *Interpreter) Exec(ctx context.Context, code string) (string, error)

func (*Interpreter) ExecWithInput

func (i *Interpreter) ExecWithInput(ctx context.Context, code, input string) (string, error)

func (*Interpreter) SetCompiler

func (i *Interpreter) SetCompiler(compiler string) error

func (*Interpreter) SetFlags

func (i *Interpreter) SetFlags(flags []string)

type InterpreterConfig

type InterpreterConfig struct {
	IncludeDirs []string
	Libraries   []string
	Compiler    string
	Flags       []string
}

Jump to

Keyboard shortcuts

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