semantic

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyze

func Analyze(ctx context.Context, seq *ast.Sequential, constsAST []ast.Proc, adaptor proc.DataAdaptor, head *lakeparse.Commitish) (*dag.Sequential, []dag.Op, error)

Analyze analysis the AST and prepares it for runtime compilation.

func DotExprToFieldPath

func DotExprToFieldPath(e ast.Expr) *dag.Path

func FieldsOf

func FieldsOf(e ast.Expr) field.List

func LiftConsts added in v0.32.0

func LiftConsts(p ast.Proc) []ast.Proc

Types

type Binder

type Binder map[string]*entry

func NewBinder

func NewBinder() Binder

func (Binder) Define

func (b Binder) Define(name string, ref dag.Op)

type Scope

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

func NewScope

func NewScope() *Scope

func (*Scope) Bind

func (s *Scope) Bind(name string, ref dag.Op)

func (*Scope) Enter

func (s *Scope) Enter()

func (*Scope) Exit

func (s *Scope) Exit()

func (*Scope) Lookup

func (s *Scope) Lookup(name string) dag.Op

Jump to

Keyboard shortcuts

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