Documentation
¶
Index ¶
- func Analyze(ctx context.Context, seq ast.Seq, source *data.Source, ...) (dag.Seq, error)
- func DotExprToFieldPath(e ast.Expr) *dag.This
- type Binder
- type Scope
- func (s *Scope) DefineAs(name string) error
- func (s *Scope) DefineConst(zctx *zed.Context, name string, def dag.Expr) error
- func (s *Scope) DefineFunc(f *dag.Func) error
- func (s *Scope) DefineVar(name string) error
- func (s *Scope) Enter()
- func (s *Scope) Exit()
- func (s *Scope) Lookup(name string) dag.Expr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Analyze ¶
func Analyze(ctx context.Context, seq ast.Seq, source *data.Source, head *lakeparse.Commitish) (dag.Seq, error)
Analyze performs a semantic analysis of the AST, translating it from AST to DAG form, resolving syntax ambiguities, and performing constant propagation. After semantic analysis, the DAG is ready for either optimization or compilation.
Types ¶
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (*Scope) DefineConst ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.