Documentation ¶
Index ¶
- Constants
- Variables
- func EvaluatorCreator() mel3program.Mel3Visitor
- type Evaluator
- func (ev *Evaluator) GetError() error
- func (ev *Evaluator) GetMel3Object() *mel3program.Mel3Object
- func (ev *Evaluator) GetName() string
- func (ev *Evaluator) GetResult() *mel3program.Mel3Program
- func (ev *Evaluator) Inspect() string
- func (ev *Evaluator) SetMel3Object(mel3o *mel3program.Mel3Object)
- func (ev *Evaluator) Visit(in_prog *mel3program.Mel3Program) mel3program.Mel3Visitor
- type M3datesMe3li
Constants ¶
View Source
const ( DATECONST = uint16(0) + iota TIMESTAMPCONST DIFFDAYS )
Program IDs
View Source
const ( DATE = uint16(0) + iota TIMESTAMP )
Program types
View Source
const (
MYLIBID = mel3program.LIB_M3DATES
)
Variables ¶
View Source
var Implementation = mel3program.Mel3Implementation{ ProgramNames: map[uint16]string{ DATECONST: "dateconst", TIMESTAMPCONST: "timestampconst", DIFFDAYS: "diffdays", }, TypeNames: map[uint16]string{ DATE: "date", TIMESTAMP: "timestamp", }, ProgramTypes: map[uint16]mel3program.ArgumentsTypes{ DATECONST: mel3program.ArgumentsTypes{mel3program.ArgType{MYLIBID, DATE, []uint64{}}}, TIMESTAMPCONST: mel3program.ArgumentsTypes{mel3program.ArgType{MYLIBID, TIMESTAMP, []uint64{}}}, DIFFDAYS: mel3program.ArgumentsTypes{mel3program.ArgType{m3uint.MYLIBID, m3uint.M3UINT, []uint64{}}}, }, NonVariadicArgs: map[uint16]mel3program.ArgumentsTypes{ DATECONST: mel3program.ArgumentsTypes{}, TIMESTAMPCONST: mel3program.ArgumentsTypes{}, DIFFDAYS: mel3program.ArgumentsTypes{mel3program.ArgType{MYLIBID, DATE, []uint64{}}, mel3program.ArgType{MYLIBID, DATE, []uint64{}}}, }, IsVariadic: map[uint16]bool{ DATECONST: false, TIMESTAMPCONST: false, DIFFDAYS: false, }, VariadicType: map[uint16]mel3program.ArgType{ DATECONST: mel3program.ArgType{}, TIMESTAMPCONST: mel3program.ArgType{}, DIFFDAYS: mel3program.ArgType{}, }, ImplName: "m3dates", }
The Mel3 implementation
Functions ¶
func EvaluatorCreator ¶
func EvaluatorCreator() mel3program.Mel3Visitor
Types ¶
type Evaluator ¶
type Evaluator struct { *mel3program.Mel3Object Result *mel3program.Mel3Program // contains filtered or unexported fields }
func (*Evaluator) GetMel3Object ¶
func (ev *Evaluator) GetMel3Object() *mel3program.Mel3Object
func (*Evaluator) GetResult ¶
func (ev *Evaluator) GetResult() *mel3program.Mel3Program
func (*Evaluator) SetMel3Object ¶
func (ev *Evaluator) SetMel3Object(mel3o *mel3program.Mel3Object)
func (*Evaluator) Visit ¶
func (ev *Evaluator) Visit(in_prog *mel3program.Mel3Program) mel3program.Mel3Visitor
type M3datesMe3li ¶
type M3datesMe3li struct {
mel3program.Mel3Object
}
The effective Me3li
func (*M3datesMe3li) MelCopy ¶
func (prog *M3datesMe3li) MelCopy() mel.Me3li
func (*M3datesMe3li) MelInit ¶
func (prog *M3datesMe3li) MelInit(c *mel.MelConfig, ep *mel.EvolutionParameters)
The Mel entry point for M3uintMe3li
Click to show internal directories.
Click to hide internal directories.