data

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Statements []interfaces.Statement
	// contains filtered or unexported fields
}

func (*Block) Add

func (b *Block) Add(s interfaces.Statement)

func (*Block) InitScope

func (b *Block) InitScope(parent interfaces.Scope) *parser.ParseError

func (*Block) SetEmbedder

func (b *Block) SetEmbedder(embedder interfaces.Symbol)

type Date

type Date struct {
	Year  int `json:"year"`
	Month int `json:"month"`
	Day   int `json:"day"`
}

func NewDate

func NewDate(year int, month int, day int) *Date

func (*Date) IsValid

func (d *Date) IsValid() bool

func (*Date) String

func (d *Date) String() string

type FQIdentifier

type FQIdentifier struct {
	Pack string
	Name string
}

func NewFQIdentifier

func NewFQIdentifier(tree parser.IFqIdentifierContext) *FQIdentifier

func (*FQIdentifier) String

func (i *FQIdentifier) String() string

type SymbolTable

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

func NewSymbolTable

func NewSymbolTable() *SymbolTable

func (*SymbolTable) AllSymbols

func (s *SymbolTable) AllSymbols() iter.Seq[interfaces.Symbol]

func (*SymbolTable) Define

func (s *SymbolTable) Define(symbol interfaces.Symbol) bool

func (*SymbolTable) Pop

func (s *SymbolTable) Pop() interfaces.Scope

func (*SymbolTable) Push

func (s *SymbolTable) Push() interfaces.Scope

func (*SymbolTable) Resolve

func (s *SymbolTable) Resolve(name string) interfaces.Symbol

type Time

type Time struct {
	Hour int `json:"hour"`
	Min  int `json:"min"`
}

func NewTime

func NewTime(hour int, min int) *Time

func NewTimeFromString

func NewTimeFromString(time string) (*Time, error)

func (*Time) Add

func (t *Time) Add(hour, mins int) *Time

func (*Time) IsValid

func (t *Time) IsValid() bool

func (*Time) String

func (t *Time) String() string

func (*Time) Sub

func (t *Time) Sub(hour, mins int) *Time

Jump to

Keyboard shortcuts

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