compiler

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 16 Imported by: 0

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 {
	// contains filtered or unexported fields
}

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

func (*FqlCompiler) RegisterFunction

func (c *FqlCompiler) RegisterFunction(name string, fun core.Function) error

func (*FqlCompiler) RegisterFunctions

func (c *FqlCompiler) RegisterFunctions(funcs map[string]core.Function) error

func (*FqlCompiler) RegisteredFunctions added in v0.7.0

func (c *FqlCompiler) RegisteredFunctions() (funcs []string)

func (*FqlCompiler) RemoveFunction added in v0.5.0

func (c *FqlCompiler) 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