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) Close

func (i *Interpreter) Close()

func (*Interpreter) Exec

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

type InterpreterConfig

type InterpreterConfig struct {
	CompilerPath string        // Path to the C++ compiler (e.g., g++)
	Flags        []string      // Compiler flags (e.g., -std=c++17)
	Timeout      time.Duration // Execution timeout
}

Jump to

Keyboard shortcuts

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