language

package
v0.0.0-...-3c6041a Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Build(ctx context.Context, filename string) error
	Type() Type
	ExecName() string
}

type Controller

type Controller interface {
	SetFilename(filename string)
	Filename() string
	Sourcecode() (string, error)
	LanguageType() Type

	Valid() bool
	Build(ctx context.Context) error
	Compare(ctx context.Context, input string, output string) (string, error)
}

func NewController

func NewController(rawLanguageType string) (Controller, error)

type File

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

func (*File) Name

func (f *File) Name() string

func (*File) ReadAll

func (f *File) ReadAll() (string, error)

func (*File) SetName

func (f *File) SetName(name string)

type Type

type Type int
const (
	TypeCPP14gcc Type = iota
	TypeCPP17gcc
)

Jump to

Keyboard shortcuts

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