interfaces

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author added in v0.0.5

type Author struct {
	Name  string
	Email string
}

func (Author) String added in v0.0.5

func (a Author) String() string

type DatapackHeader added in v0.0.3

type DatapackHeader struct {
	Namespace   string `json:"namespace"`
	Definitions struct {
		Functions []struct {
			Name string `json:"name"`
			Args []struct {
				Name string `json:"name"`
				Type string `json:"type"`
			} `json:"args"`
			ReturnType string `json:"returnType"`
		} `json:"functions"`
	} `json:"definitions"`
}

type FuncArg added in v0.0.3

type FuncArg struct {
	Name string
	Type ValueType
}

type FuncDef added in v0.0.3

type FuncDef struct {
	Name       string
	Args       []FuncArg
	ReturnType ValueType
}

type PrimitiveType added in v0.0.8

type PrimitiveType string

type Project added in v0.0.6

type Project struct {
	Name        string   `toml:"name"`
	Namespace   string   `toml:"namespace"`
	Authors     []string `toml:"authors"`
	Entrypoint  string   `toml:"entrypoint"`
	Version     string   `toml:"version"`
	Description string   `toml:"description"`
}

type ProjectConfig

type ProjectConfig struct {
	CleanBeforeInit bool    `toml:"cleanBeforeInit"`
	Debug           bool    `toml:"debug"`
	Project         Project `toml:"Project"`
	Dependencies    struct {
		Headers []string
	} `toml:"-"`
	OutputDir string `toml:"-"`
}

type SourceLocation

type SourceLocation struct {
	Row int
	Col int
}

type StructField added in v0.0.8

type StructField struct {
	Name string
	Type ValueType
}

StructField represents a field in a struct declaration.

type ValueType added in v0.0.3

type ValueType interface {
	Primitive() ValueType
	ToString() string
}

Jump to

Keyboard shortcuts

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