Documentation ¶
Index ¶
- func CheckTypeOfList(l *List, t string) bool
- func GetTypeOfKeyAndValue(v string) (string, string)
- func IsList(t string) bool
- func IsMap(typ string) bool
- func IsStruct(typ string) bool
- func StringAreEscapedChar(value string) bool
- type Any
- func (a *Any) Add(other Type) (Type, error)
- func (a *Any) And(other Type) (Type, error)
- func (a *Any) Append(other Type) (Type, error)
- func (a *Any) Decrement()
- func (a *Any) Div(other Type) (Type, error)
- func (a *Any) DivEc(other Type) (Type, error)
- func (a *Any) Eq(other Type) (Type, error)
- func (a *Any) GetFunction() *Function
- func (a *Any) GetIndex(i Type) (*Type, error)
- func (a *Any) GetSize() int
- func (a *Any) GetString() String
- func (a *Any) GetType() string
- func (a *Any) GetValue() any
- func (a *Any) Gt(other Type) (Type, error)
- func (a *Any) GtEq(other Type) (Type, error)
- func (a *Any) Increment()
- func (a *Any) IsNull() bool
- func (a *Any) Len() (int, error)
- func (a *Any) Lw(other Type) (Type, error)
- func (a *Any) LwEq(other Type) (Type, error)
- func (a *Any) Mod(other Type) (Type, error)
- func (a *Any) Mul(other Type) (Type, error)
- func (a *Any) Not() (Type, error)
- func (a *Any) NotEq(other Type) (Type, error)
- func (a *Any) Or(other Type) (Type, error)
- func (a *Any) SetAny(value Type) error
- func (a *Any) SetValue(value any) error
- func (a *Any) String() string
- func (a *Any) Sub(other Type) (Type, error)
- func (a *Any) Xor(other Type) (Type, error)
- type Bool
- func (b Bool) Add(other Type) (Type, error)
- func (b Bool) And(other Type) (Type, error)
- func (b Bool) Append(other Type) (Type, error)
- func (b Bool) Div(other Type) (Type, error)
- func (b Bool) DivEc(other Type) (Type, error)
- func (b Bool) Eq(other Type) (Type, error)
- func (b Bool) GetIndex(other Type) (*Type, error)
- func (b Bool) GetSize() int
- func (b Bool) GetString() String
- func (b Bool) GetType() string
- func (b Bool) GetValue() any
- func (b Bool) Gt(other Type) (Type, error)
- func (b Bool) GtEq(other Type) (Type, error)
- func (b Bool) IsNull() bool
- func (b Bool) Len() (int, error)
- func (b Bool) Lw(other Type) (Type, error)
- func (b Bool) LwEq(other Type) (Type, error)
- func (b Bool) Mod(other Type) (Type, error)
- func (b Bool) Mul(other Type) (Type, error)
- func (b Bool) Not() (Type, error)
- func (b Bool) NotEq(other Type) (Type, error)
- func (b Bool) Or(other Type) (Type, error)
- func (b Bool) SetValue(value any) error
- func (b Bool) String() string
- func (b Bool) Sub(other Type) (Type, error)
- func (b Bool) Xor(other Type) (Type, error)
- type Char
- func (c Char) Add(other Type) (Type, error)
- func (c Char) And(other Type) (Type, error)
- func (c Char) Append(other Type) (Type, error)
- func (c Char) Div(other Type) (Type, error)
- func (c Char) DivEc(other Type) (Type, error)
- func (c Char) Eq(other Type) (Type, error)
- func (Char) GetIndex(index Type) (*Type, error)
- func (c Char) GetSize() int
- func (c Char) GetString() String
- func (Char) GetType() string
- func (c Char) GetValue() any
- func (c Char) GetValueAsInt() Int
- func (c Char) Gt(other Type) (Type, error)
- func (c Char) GtEq(other Type) (Type, error)
- func (Char) IsNull() bool
- func (c Char) Len() (int, error)
- func (c Char) Lw(other Type) (Type, error)
- func (c Char) LwEq(other Type) (Type, error)
- func (c Char) Mod(other Type) (Type, error)
- func (c Char) Mul(other Type) (Type, error)
- func (c Char) Not() (Type, error)
- func (c Char) NotEq(other Type) (Type, error)
- func (c Char) Or(other Type) (Type, error)
- func (c Char) SetValue(value any) error
- func (c Char) String() string
- func (c Char) Sub(other Type) (Type, error)
- func (c Char) Xor(other Type) (Type, error)
- type Float
- func (f Float) Add(other Type) (Type, error)
- func (f Float) And(other Type) (Type, error)
- func (f Float) Append(other Type) (Type, error)
- func (f Float) Div(other Type) (Type, error)
- func (f Float) DivEc(other Type) (Type, error)
- func (f Float) Eq(other Type) (Type, error)
- func (f Float) GetIndex(other Type) (*Type, error)
- func (f Float) GetSize() int
- func (f Float) GetString() String
- func (f Float) GetType() string
- func (f Float) GetValue() any
- func (f Float) Gt(other Type) (Type, error)
- func (f Float) GtEq(other Type) (Type, error)
- func (f Float) IsNull() bool
- func (f Float) Len() (int, error)
- func (f Float) Lw(other Type) (Type, error)
- func (f Float) LwEq(other Type) (Type, error)
- func (f Float) Mod(other Type) (Type, error)
- func (f Float) Mul(other Type) (Type, error)
- func (f Float) Not() (Type, error)
- func (f Float) NotEq(other Type) (Type, error)
- func (f Float) Or(other Type) (Type, error)
- func (f Float) SetValue(value any) error
- func (f Float) String() string
- func (f Float) Sub(other Type) (Type, error)
- func (f Float) Xor(other Type) (Type, error)
- type Function
- func (f *Function) Add(other Type) (Type, error)
- func (f *Function) AddOverload(args []parser.FunctionParams, body []parser.Node, ret []string)
- func (f *Function) And(other Type) (Type, error)
- func (f *Function) Append(other Type) (Type, error)
- func (f *Function) CheckReturn(ret []Type, StructDecl []eclaDecl.TypeDecl) bool
- func (f *Function) Div(other Type) (Type, error)
- func (f *Function) DivEc(other Type) (Type, error)
- func (f *Function) Eq(other Type) (Type, error)
- func (f *Function) GetBody() []parser.Node
- func (f *Function) GetIndex(number Type) (*Type, error)
- func (f *Function) GetIndexOfArgs(args []Type) int
- func (f *Function) GetReturn() []string
- func (f *Function) GetSize() int
- func (f *Function) GetString() String
- func (f *Function) GetType() string
- func (f *Function) GetTypes() []string
- func (f *Function) GetValue() any
- func (f *Function) Gt(other Type) (Type, error)
- func (f *Function) GtEq(other Type) (Type, error)
- func (f *Function) IsNull() bool
- func (f *Function) Len() (int, error)
- func (f *Function) Lw(other Type) (Type, error)
- func (f *Function) LwEq(other Type) (Type, error)
- func (f *Function) Mod(other Type) (Type, error)
- func (f *Function) Mul(other Type) (Type, error)
- func (f *Function) Not() (Type, error)
- func (f *Function) NotEq(other Type) (Type, error)
- func (f *Function) Or(other Type) (Type, error)
- func (f *Function) Override(args []parser.FunctionParams, body []parser.Node, ret []string) error
- func (f *Function) SetValue(value any) error
- func (f *Function) String() string
- func (f *Function) Sub(other Type) (Type, error)
- func (f *Function) TypeAndNumberOfArgsIsCorrect(args []Type, StructDecl []eclaDecl.TypeDecl) (bool, map[string]*Var)
- func (f *Function) Xor(other Type) (Type, error)
- type FunctionBuiltIn
- func (f *FunctionBuiltIn) Add(other Type) (Type, error)
- func (f *FunctionBuiltIn) And(other Type) (Type, error)
- func (f *FunctionBuiltIn) Append(other Type) (Type, error)
- func (f *FunctionBuiltIn) Call(args []Type) ([]Type, error)
- func (f *FunctionBuiltIn) Div(other Type) (Type, error)
- func (f *FunctionBuiltIn) DivEc(other Type) (Type, error)
- func (f *FunctionBuiltIn) Eq(other Type) (Type, error)
- func (f *FunctionBuiltIn) GetIndex(number Type) (*Type, error)
- func (f *FunctionBuiltIn) GetSize() int
- func (f *FunctionBuiltIn) GetString() String
- func (f *FunctionBuiltIn) GetType() string
- func (f *FunctionBuiltIn) GetValue() any
- func (f *FunctionBuiltIn) Gt(other Type) (Type, error)
- func (f *FunctionBuiltIn) GtEq(other Type) (Type, error)
- func (f *FunctionBuiltIn) IsNull() bool
- func (f *FunctionBuiltIn) Len() (int, error)
- func (f *FunctionBuiltIn) Lw(other Type) (Type, error)
- func (f *FunctionBuiltIn) LwEq(other Type) (Type, error)
- func (f *FunctionBuiltIn) Mod(other Type) (Type, error)
- func (f *FunctionBuiltIn) Mul(other Type) (Type, error)
- func (f *FunctionBuiltIn) Not() (Type, error)
- func (f *FunctionBuiltIn) NotEq(other Type) (Type, error)
- func (f *FunctionBuiltIn) Or(other Type) (Type, error)
- func (f *FunctionBuiltIn) SetValue(value any) error
- func (f *FunctionBuiltIn) String() string
- func (f *FunctionBuiltIn) Sub(other Type) (Type, error)
- func (f *FunctionBuiltIn) Xor(other Type) (Type, error)
- type Int
- func (i Int) Add(other Type) (Type, error)
- func (i Int) And(other Type) (Type, error)
- func (i Int) Append(other Type) (Type, error)
- func (i Int) Div(other Type) (Type, error)
- func (i Int) DivEc(other Type) (Type, error)
- func (i Int) Eq(other Type) (Type, error)
- func (i Int) GetIndex(other Type) (*Type, error)
- func (i Int) GetSize() int
- func (i Int) GetString() String
- func (i Int) GetType() string
- func (i Int) GetValue() any
- func (i Int) Gt(other Type) (Type, error)
- func (i Int) GtEq(other Type) (Type, error)
- func (i Int) IsNull() bool
- func (i Int) Len() (int, error)
- func (i Int) Lw(other Type) (Type, error)
- func (i Int) LwEq(other Type) (Type, error)
- func (i Int) Mod(other Type) (Type, error)
- func (i Int) Mul(other Type) (Type, error)
- func (i Int) Not() (Type, error)
- func (i Int) NotEq(other Type) (Type, error)
- func (i Int) Or(other Type) (Type, error)
- func (i Int) SetValue(value any) error
- func (i Int) String() string
- func (i Int) Sub(other Type) (Type, error)
- func (i Int) Xor(other Type) (Type, error)
- type Lib
- func (l *Lib) Add(other Type) (Type, error)
- func (l *Lib) And(other Type) (Type, error)
- func (l *Lib) Append(other Type) (Type, error)
- func (l *Lib) Div(other Type) (Type, error)
- func (l *Lib) DivEc(other Type) (Type, error)
- func (l *Lib) Eq(other Type) (Type, error)
- func (l *Lib) GetIndex(number Type) (*Type, error)
- func (l *Lib) GetSize() int
- func (l *Lib) GetString() String
- func (l *Lib) GetType() string
- func (l *Lib) GetValue() any
- func (l *Lib) Gt(other Type) (Type, error)
- func (l *Lib) GtEq(other Type) (Type, error)
- func (l *Lib) IsNull() bool
- func (l *Lib) Len() (int, error)
- func (l *Lib) Lw(other Type) (Type, error)
- func (l *Lib) LwEq(other Type) (Type, error)
- func (l *Lib) Mod(other Type) (Type, error)
- func (l *Lib) Mul(other Type) (Type, error)
- func (l *Lib) Not() (Type, error)
- func (l *Lib) NotEq(other Type) (Type, error)
- func (l *Lib) Or(other Type) (Type, error)
- func (l *Lib) SetValue(value any) error
- func (l *Lib) String() string
- func (l *Lib) Sub(other Type) (Type, error)
- func (l *Lib) Xor(other Type) (Type, error)
- type List
- func (l *List) Add(other Type) (Type, error)
- func (l *List) And(other Type) (Type, error)
- func (l *List) Append(other Type) (Type, error)
- func (l *List) Div(other Type) (Type, error)
- func (l *List) DivEc(other Type) (Type, error)
- func (l *List) Eq(other Type) (Type, error)
- func (l *List) GetIndex(index Type) (*Type, error)
- func (l *List) GetSize() int
- func (l *List) GetString() String
- func (l *List) GetType() string
- func (l *List) GetValue() any
- func (l *List) GetValueType() string
- func (l *List) Gt(other Type) (Type, error)
- func (l *List) GtEq(other Type) (Type, error)
- func (l *List) IsNull() bool
- func (l *List) Len() (int, error)
- func (l *List) Lw(other Type) (Type, error)
- func (l *List) LwEq(other Type) (Type, error)
- func (l *List) Mod(other Type) (Type, error)
- func (l *List) Mul(other Type) (Type, error)
- func (l *List) Not() (Type, error)
- func (l *List) NotEq(other Type) (Type, error)
- func (l *List) Or(other Type) (Type, error)
- func (l *List) SetType(other string)
- func (l *List) SetValue(v any) error
- func (l *List) String() string
- func (l *List) Sub(other Type) (Type, error)
- func (l *List) Xor(other Type) (Type, error)
- type Map
- func (m *Map) Add(value Type) (Type, error)
- func (m *Map) AddKey(key Type) error
- func (m *Map) And(other Type) (Type, error)
- func (m *Map) Append(other Type) (Type, error)
- func (m *Map) Delete(key Type)
- func (m *Map) Div(value Type) (Type, error)
- func (m *Map) DivEc(value Type) (Type, error)
- func (m *Map) Eq(value Type) (Type, error)
- func (m *Map) Get(key Type) (Type, bool)
- func (m *Map) GetIndex(index Type) (*Type, error)
- func (m *Map) GetKey(value Type) (Type, bool)
- func (m *Map) GetKeyTypes() string
- func (m *Map) GetSize() int
- func (m *Map) GetString() String
- func (m *Map) GetType() string
- func (m *Map) GetValue() any
- func (m *Map) GetValueTypes() string
- func (m *Map) Gt(other Type) (Type, error)
- func (m *Map) GtEq(other Type) (Type, error)
- func (m *Map) IsNull() bool
- func (m *Map) Len() (int, error)
- func (m *Map) Lw(other Type) (Type, error)
- func (m *Map) LwEq(other Type) (Type, error)
- func (m *Map) Mod(value Type) (Type, error)
- func (m *Map) Mul(value Type) (Type, error)
- func (m *Map) Not() (Type, error)
- func (m *Map) NotEq(value Type) (Type, error)
- func (m *Map) Or(other Type) (Type, error)
- func (m *Map) Set(key Type, value Type)
- func (m *Map) SetAutoType() error
- func (m *Map) SetType(t string)
- func (m *Map) SetValue(v any) error
- func (m *Map) String() string
- func (m *Map) Sub(value Type) (Type, error)
- func (m *Map) Xor(other Type) (Type, error)
- type Null
- func (n Null) Add(other Type) (Type, error)
- func (n Null) And(other Type) (Type, error)
- func (n Null) Append(other Type) (Type, error)
- func (n Null) Div(other Type) (Type, error)
- func (n Null) DivEc(other Type) (Type, error)
- func (n Null) Eq(other Type) (Type, error)
- func (n Null) GetIndex(number Type) (*Type, error)
- func (n Null) GetSize() int
- func (n Null) GetString() String
- func (n Null) GetType() string
- func (n Null) GetValue() any
- func (n Null) Gt(other Type) (Type, error)
- func (n Null) GtEq(other Type) (Type, error)
- func (n Null) IsNull() bool
- func (n Null) Len() (int, error)
- func (n Null) Lw(other Type) (Type, error)
- func (n Null) LwEq(other Type) (Type, error)
- func (n Null) Mod(other Type) (Type, error)
- func (n Null) Mul(other Type) (Type, error)
- func (n Null) Not() (Type, error)
- func (n Null) NotEq(other Type) (Type, error)
- func (n Null) Or(other Type) (Type, error)
- func (n Null) SetValue(value any) error
- func (n Null) String() string
- func (n Null) Sub(other Type) (Type, error)
- func (n Null) Xor(other Type) (Type, error)
- type String
- func (s String) Add(other Type) (Type, error)
- func (s String) And(other Type) (Type, error)
- func (s String) Append(other Type) (Type, error)
- func (s String) Div(other Type) (Type, error)
- func (s String) DivEc(other Type) (Type, error)
- func (s String) Eq(other Type) (Type, error)
- func (s String) GetIndex(other Type) (*Type, error)
- func (s String) GetSize() int
- func (s String) GetString() String
- func (s String) GetType() string
- func (s String) GetValue() any
- func (s String) Gt(other Type) (Type, error)
- func (s String) GtEq(other Type) (Type, error)
- func (s String) IsNull() bool
- func (s String) Len() (int, error)
- func (s String) Lw(other Type) (Type, error)
- func (s String) LwEq(other Type) (Type, error)
- func (s String) Mod(other Type) (Type, error)
- func (s String) Mul(other Type) (Type, error)
- func (s String) Not() (Type, error)
- func (s String) NotEq(other Type) (Type, error)
- func (s String) Or(other Type) (Type, error)
- func (s String) SetValue(value any) error
- func (s String) String() string
- func (s String) Sub(other Type) (Type, error)
- func (s String) Xor(other Type) (Type, error)
- type Struct
- func (s *Struct) Add(other Type) (Type, error)
- func (s *Struct) AddField(index int, val Type)
- func (s *Struct) And(other Type) (Type, error)
- func (s *Struct) Append(other Type) (Type, error)
- func (s *Struct) Div(value Type) (Type, error)
- func (s *Struct) DivEc(value Type) (Type, error)
- func (s *Struct) Eq(value Type) (Type, error)
- func (s *Struct) Get(fieldName string) (Type, error)
- func (s *Struct) GetField(value string) *Type
- func (s *Struct) GetIndex(index Type) (*Type, error)
- func (s *Struct) GetSize() int
- func (s *Struct) GetString() String
- func (s *Struct) GetType() string
- func (s *Struct) GetValue() any
- func (s *Struct) Gt(other Type) (Type, error)
- func (s *Struct) GtEq(other Type) (Type, error)
- func (s *Struct) IsNull() bool
- func (s *Struct) Len() (int, error)
- func (s *Struct) Lw(other Type) (Type, error)
- func (s *Struct) LwEq(other Type) (Type, error)
- func (s *Struct) Mod(value Type) (Type, error)
- func (s *Struct) Mul(value Type) (Type, error)
- func (s *Struct) Not() (Type, error)
- func (s *Struct) NotEq(value Type) (Type, error)
- func (s *Struct) Or(other Type) (Type, error)
- func (s *Struct) Set(fieldName string, FieldValue Type) error
- func (s *Struct) SetType(t string)
- func (s *Struct) SetValue(v any) error
- func (s *Struct) String() string
- func (s *Struct) Sub(value Type) (Type, error)
- func (s *Struct) Verify() error
- func (s *Struct) Xor(other Type) (Type, error)
- type Type
- type Var
- func (v *Var) Add(other Type) (Type, error)
- func (v *Var) And(other Type) (Type, error)
- func (v *Var) Append(other Type) (Type, error)
- func (v *Var) Decrement()
- func (v *Var) Div(other Type) (Type, error)
- func (v *Var) DivEc(other Type) (Type, error)
- func (v *Var) Eq(other Type) (Type, error)
- func (v *Var) GetFunction() *Function
- func (v *Var) GetIndex(i Type) (*Type, error)
- func (v *Var) GetSize() int
- func (v *Var) GetString() String
- func (v *Var) GetType() string
- func (v *Var) GetValue() any
- func (v *Var) Gt(other Type) (Type, error)
- func (v *Var) GtEq(other Type) (Type, error)
- func (v *Var) Increment()
- func (v *Var) IsAny() bool
- func (v *Var) IsFunction() bool
- func (v *Var) IsNull() bool
- func (v *Var) Len() (int, error)
- func (v *Var) Lw(other Type) (Type, error)
- func (v *Var) LwEq(other Type) (Type, error)
- func (v *Var) Mod(other Type) (Type, error)
- func (v *Var) Mul(other Type) (Type, error)
- func (v *Var) Not() (Type, error)
- func (v *Var) NotEq(other Type) (Type, error)
- func (v *Var) Or(other Type) (Type, error)
- func (v *Var) SetValue(value any) error
- func (v *Var) SetVar(value Type) error
- func (v *Var) String() string
- func (v *Var) Sub(other Type) (Type, error)
- func (v *Var) Xor(other Type) (Type, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTypeOfList ¶
func GetTypeOfKeyAndValue ¶
func StringAreEscapedChar ¶
Types ¶
type Any ¶
func (*Any) GetFunction ¶
func (*Any) GtEq ¶
GtEq returns true if the first Type object is greater than or equal to the second
type Bool ¶
type Bool bool
type Char ¶
type Char rune
func (Char) GetValueAsInt ¶
func (Char) GtEq ¶
GtEq returns true if the first Type object is greater than or equal to the second
func (Char) Mod ¶
Mod returns the remainder of the division of two Type objects compatible with Char
type Float ¶
type Float float32
type Function ¶
type Function struct { Name string Args [][]parser.FunctionParams Body map[string][]parser.Node Return map[string][]string // contains filtered or unexported fields }
func NewAnonymousFunction ¶
func NewFunction ¶
func (*Function) AddOverload ¶
func (*Function) CheckReturn ¶
func (*Function) GetIndexOfArgs ¶
func (*Function) TypeAndNumberOfArgsIsCorrect ¶
type FunctionBuiltIn ¶
type FunctionBuiltIn struct { Name string // contains filtered or unexported fields }
func NewAppend ¶
func NewAppend() *FunctionBuiltIn
func NewLen ¶
func NewLen() *FunctionBuiltIn
func NewSizeOf ¶
func NewSizeOf() *FunctionBuiltIn
func NewTypeOf ¶
func NewTypeOf() *FunctionBuiltIn
func (*FunctionBuiltIn) GetSize ¶
func (f *FunctionBuiltIn) GetSize() int
func (*FunctionBuiltIn) GetString ¶
func (f *FunctionBuiltIn) GetString() String
func (*FunctionBuiltIn) GetType ¶
func (f *FunctionBuiltIn) GetType() string
func (*FunctionBuiltIn) GetValue ¶
func (f *FunctionBuiltIn) GetValue() any
func (*FunctionBuiltIn) IsNull ¶
func (f *FunctionBuiltIn) IsNull() bool
func (*FunctionBuiltIn) Len ¶
func (f *FunctionBuiltIn) Len() (int, error)
func (*FunctionBuiltIn) Not ¶
func (f *FunctionBuiltIn) Not() (Type, error)
func (*FunctionBuiltIn) SetValue ¶
func (f *FunctionBuiltIn) SetValue(value any) error
func (*FunctionBuiltIn) String ¶
func (f *FunctionBuiltIn) String() string
type Int ¶
type Int int
type List ¶
func (*List) GetValueType ¶
type String ¶
type String string
type Struct ¶
type Struct struct { Fields map[string]*Type Typ string Definition *eclaDecl.StructDecl }
func NewStruct ¶
func NewStruct(def *eclaDecl.StructDecl) *Struct
type Type ¶
type Type interface { GetValue() any SetValue(value any) error String() string GetString() String GetType() string GetIndex(index Type) (*Type, error) //Add : + Add(other Type) (Type, error) //Sub : - Sub(other Type) (Type, error) //Mul : * Mul(other Type) (Type, error) //Div : / Div(other Type) (Type, error) //Mod : % Mod(other Type) (Type, error) //DivEc : // DivEc(other Type) (Type, error) //Eq : == Eq(other Type) (Type, error) //NotEq : != NotEq(other Type) (Type, error) //Gt : > Gt(other Type) (Type, error) //GtEq : >= GtEq(other Type) (Type, error) //Lw : < Lw(other Type) (Type, error) //LwEq : <= LwEq(other Type) (Type, error) //And : && And(other Type) (Type, error) //Or : || Or(other Type) (Type, error) //Not : ! Not() (Type, error) //Xor : ^ Xor(other Type) (Type, error) // IsNull : returns true if the value is null IsNull() bool // append : temporary Append(other Type) (Type, error) GetSize() int Len() (int, error) }
type Var ¶
func (*Var) GetFunction ¶
func (*Var) GtEq ¶
GtEq returns true if the first Type object is greater than or equal to the second
func (*Var) IsFunction ¶
Click to show internal directories.
Click to hide internal directories.