interfaces

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind int
const (
	KindConst Kind = iota
	KindVar
	KindFunction
	KindClass
	KindEnum
	KindPackage
	KindEnumItem
	KindParameter
	KindProperty
)

type Scope

type Scope interface {
	Resolve(name string) Symbol
	Define(s Symbol) bool
	Push() Scope
	Pop() Scope
	AllSymbols() iter.Seq[Symbol]
}

type Specie

type Specie int
const (
	SpecieObject Specie = iota
	SpecieType
	SpecieOther
)

type Statement

type Statement interface {
}

type Symbol

type Symbol interface {
	Id() string
	Kind() Kind
	Specie() Specie

	InitScope(parent Scope) *parser.ParseError
	Scope() Scope
}

Jump to

Keyboard shortcuts

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