interpreter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package interpreter interprets and evaluates the data model produced by the CQL parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval

func Eval(ctx context.Context, libs []*model.Library, config Config) (result.Libraries, error)

Eval evaluates the intermediate ELM like data structure from our parser.

Types

type Config

type Config struct {
	DataModels          *modelinfo.ModelInfos
	Parameters          map[result.DefKey]model.IExpression
	Retriever           retriever.Retriever
	Terminology         terminology.Provider
	EvaluationTimestamp time.Time
	ReturnPrivateDefs   bool
}

Config configures the evaluation of the CQL.

Jump to

Keyboard shortcuts

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