compiler

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2019 License: Apache-2.0 Imports: 17 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyQuery        = errors.New("empty query")
	ErrNotImplemented    = errors.New("not implemented")
	ErrVariableNotFound  = errors.New("variable not found")
	ErrVariableNotUnique = errors.New("variable is already defined")
	ErrInvalidToken      = errors.New("invalid token")
	ErrInvalidDataSource = errors.New("invalid data source")
)

Functions

This section is empty.

Types

type FqlCompiler

type FqlCompiler struct {
	*NamespaceContainer
}

func New

func New(setters ...Option) *FqlCompiler

func (*FqlCompiler) Compile

func (c *FqlCompiler) Compile(query string) (program *runtime.Program, err error)

func (*FqlCompiler) MustCompile

func (c *FqlCompiler) MustCompile(query string) *runtime.Program

type NamespaceContainer added in v0.8.0

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

func (*NamespaceContainer) Namespace added in v0.8.0

func (nc *NamespaceContainer) Namespace(name string) core.Namespace

func (*NamespaceContainer) RegisterFunction added in v0.8.0

func (nc *NamespaceContainer) RegisterFunction(name string, fun core.Function) error

func (*NamespaceContainer) RegisterFunctions added in v0.8.0

func (nc *NamespaceContainer) RegisterFunctions(funcs core.Functions) error

func (*NamespaceContainer) RegisteredFunctions added in v0.8.0

func (nc *NamespaceContainer) RegisteredFunctions() []string

func (*NamespaceContainer) RemoveFunction added in v0.8.0

func (nc *NamespaceContainer) RemoveFunction(name string)

type Option

type Option func(opts *Options)

func WithoutStdlib

func WithoutStdlib() Option

type Options

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

Jump to

Keyboard shortcuts

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