Documentation
¶
Overview ¶
Package value contains definitions of Elk values, classes, structs, modules etc.
Index ¶
- Constants
- Variables
- func AddConstant(namespace Value, name Symbol, val Value)
- func AddInt(left, right Value) (Value, Value)
- func CompareInt(left, right Value) (Value, Value)
- func CountFloatDigits(str string) int
- func DivideInt(left, right Value) (Value, Value)
- func Equal(left, right Value) bool
- func ExponentiateInt(left, right Value) (Value, Value)
- func Falsy(val Value) bool
- func Hash(key Value) (result UInt64, err Value)
- func InitGlobalEnvironment()
- func InspectSlice[T Inspectable](slice []T) string
- func InspectSymbol(name string) string
- func InspectSymbolContent(name string) string
- func InstanceOf(val Value, class *Class) bool
- func IntToGoInt(val Value) (int, bool)
- func IsA(val Value, class *Class) bool
- func IsMutableCollection(val Value) bool
- func IsNil(val Value) bool
- func IterateNativeIterator(iter NativeIterator) iter.Seq2[Value, Value]
- func LoadTimezone(name string) (zone *Timezone, err Value)
- func LogicalRightShift16[L SimpleInt](left L, right uint64) L
- func LogicalRightShift32[L SimpleInt](left L, right uint64) L
- func LogicalRightShift64[L SimpleInt](left L, right uint64) L
- func LogicalRightShift8[L SimpleInt](left L, right uint64) L
- func MakeValidatedDate(year, month, day int) (Date, Value)
- func ModuloInt(left, right Value) (Value, Value)
- func MultiplyInt(left, right Value) (Value, Value)
- func MustStrictParseInt(s string, base int, bitSize int) int64
- func MustStrictParseUint(s string, base int, bitSize int) uint64
- func NewClassComparer(opts *cmp.Options) cmp.Option
- func NewInlineValueComparer(opts *cmp.Options) cmp.Option
- func NewInterfaceComparer(opts *cmp.Options) cmp.Option
- func NewModuleComparer(opts *cmp.Options) cmp.Option
- func NewObjectComparer(opts *cmp.Options) cmp.Option
- func NewReferenceComparer() cmp.Option
- func NewRegexComparer(opts *cmp.Options) cmp.Option
- func NewSymbolTableComparer() cmp.Option
- func NewTimezoneFromOffsetErr(offset TimeSpan) (*Timezone, Value)
- func ParseBigFloat(str string) (*BigFloat, Value)
- func ParseBigInt(s string, base int) (*BigInt, Value)
- func ParseBigIntWithErr(s string, base int, formatError *Class) (*BigInt, Value)
- func ParseDate(formatString, input string) (result Date, err Value)
- func ParseDateSpan(str string) (result DateSpan, err Value)
- func ParseDateTime(formatString, input string) (result *DateTime, err Value)
- func ParseDateTimeSpan(str string) (result *DateTimeSpan, err Value)
- func ParseInt(s string, base int) (Value, Value)
- func ParseIntWithErr(s string, base int, formatErr *Class) (Value, Value)
- func ParseTime(formatString, input string) (result Time, err Value)
- func ParseTimeSpan(str string) (result TimeSpan, err Value)
- func PrecisionForFloatString(str string) uint
- func RefErr(ref Reference, err Value) (Value, Value)
- func SetInstanceVariable(object Value, index int, val Value)
- func StrictEqual(left, right Value) bool
- func SubtractInt(left, right Value) (Value, Value)
- func ToGoInt(val Value) (int, bool)
- func ToGoUInt(val Value) (uint, bool)
- func ToValueErr[T ToValuer](t T, err Value) (Value, Value)
- func Truthy(val Value) bool
- type ArrayList
- func (l *ArrayList) Append(elements ...Value)
- func (l *ArrayList) At(i int) Value
- func (l *ArrayList) BoxOf(index int) (*Box, Value)
- func (l *ArrayList) BoxOfVal(index Value) (*Box, Value)
- func (l *ArrayList) Capacity() int
- func (*ArrayList) Class() *Class
- func (l *ArrayList) Concat(other Value) (*ArrayList, Value)
- func (l *ArrayList) Copy() Reference
- func (*ArrayList) DirectClass() *Class
- func (l *ArrayList) Error() string
- func (l *ArrayList) Expand(newElements int)
- func (l *ArrayList) Get(index int) (Value, Value)
- func (l *ArrayList) Grow(newSlots int)
- func (l *ArrayList) ImmutableBoxOfVal(index Value) (*ImmutableBox, Value)
- func (l *ArrayList) Inspect() string
- func (*ArrayList) InstanceVariables() *InstanceVariables
- func (l *ArrayList) LeftCapacity() int
- func (l *ArrayList) Length() int
- func (l *ArrayList) RemoveAt(i int)
- func (l *ArrayList) RemoveAtErr(index int) Value
- func (l *ArrayList) Repeat(other Value) (*ArrayList, Value)
- func (l *ArrayList) Set(index int, val Value) Value
- func (l *ArrayList) SetAt(index int, val Value)
- func (*ArrayList) SingletonClass() *Class
- func (l *ArrayList) Subscript(key Value) (Value, Value)
- func (l *ArrayList) SubscriptSet(key, val Value) Value
- type ArrayListIterator
- func (*ArrayListIterator) Class() *Class
- func (l *ArrayListIterator) Copy() Reference
- func (*ArrayListIterator) DirectClass() *Class
- func (l *ArrayListIterator) Error() string
- func (l *ArrayListIterator) Inspect() string
- func (*ArrayListIterator) InstanceVariables() *InstanceVariables
- func (l *ArrayListIterator) Next() (Value, Value)
- func (l *ArrayListIterator) Reset()
- func (*ArrayListIterator) SingletonClass() *Class
- type ArrayTuple
- func (t *ArrayTuple) Append(element Value)
- func (t *ArrayTuple) At(i int) Value
- func (*ArrayTuple) Class() *Class
- func (t *ArrayTuple) ConcatVal(other Value) (Value, Value)
- func (t *ArrayTuple) Copy() Reference
- func (*ArrayTuple) DirectClass() *Class
- func (t *ArrayTuple) Error() string
- func (t *ArrayTuple) Expand(newElements int)
- func (t *ArrayTuple) Get(index int) (Value, Value)
- func (l *ArrayTuple) ImmutableBoxOf(index int) (*ImmutableBox, Value)
- func (l *ArrayTuple) ImmutableBoxOfVal(index Value) (*ImmutableBox, Value)
- func (t *ArrayTuple) Inspect() string
- func (*ArrayTuple) InstanceVariables() *InstanceVariables
- func (t *ArrayTuple) Length() int
- func (t *ArrayTuple) Repeat(other Value) (*ArrayTuple, Value)
- func (t *ArrayTuple) Set(index int, val Value) Value
- func (t *ArrayTuple) SetAt(index int, val Value)
- func (*ArrayTuple) SingletonClass() *Class
- func (t *ArrayTuple) Subscript(key Value) (Value, Value)
- func (t *ArrayTuple) SubscriptSet(key, val Value) Value
- type ArrayTupleIterator
- func (*ArrayTupleIterator) Class() *Class
- func (t *ArrayTupleIterator) Copy() Reference
- func (*ArrayTupleIterator) DirectClass() *Class
- func (t *ArrayTupleIterator) Error() string
- func (t *ArrayTupleIterator) Inspect() string
- func (*ArrayTupleIterator) InstanceVariables() *InstanceVariables
- func (t *ArrayTupleIterator) Next() (Value, Value)
- func (t *ArrayTupleIterator) Reset()
- func (*ArrayTupleIterator) SingletonClass() *Class
- type BeginlessClosedRange
- func (*BeginlessClosedRange) Class() *Class
- func (r *BeginlessClosedRange) Copy() Reference
- func (*BeginlessClosedRange) DirectClass() *Class
- func (r *BeginlessClosedRange) Error() string
- func (r *BeginlessClosedRange) Inspect() string
- func (r *BeginlessClosedRange) InstanceVariables() *InstanceVariables
- func (*BeginlessClosedRange) SingletonClass() *Class
- type BeginlessOpenRange
- func (*BeginlessOpenRange) Class() *Class
- func (r *BeginlessOpenRange) Copy() Reference
- func (*BeginlessOpenRange) DirectClass() *Class
- func (r *BeginlessOpenRange) Error() string
- func (r *BeginlessOpenRange) Inspect() string
- func (r *BeginlessOpenRange) InstanceVariables() *InstanceVariables
- func (*BeginlessOpenRange) SingletonClass() *Class
- type BigFloat
- func (z *BigFloat) AddBigFloat(x, y *BigFloat) *BigFloat
- func (f *BigFloat) AddVal(other Value) (Value, Value)
- func (f *BigFloat) AsGoBigFloat() *big.Float
- func (*BigFloat) Class() *Class
- func (x *BigFloat) Cmp(y *BigFloat) int
- func (f *BigFloat) CompareVal(other Value) (Value, Value)
- func (f *BigFloat) Copy() Reference
- func (*BigFloat) DirectClass() *Class
- func (z *BigFloat) DivBigFloat(x, y *BigFloat) *BigFloat
- func (f *BigFloat) DivideVal(other Value) (Value, Value)
- func (f *BigFloat) Equal(other Value) bool
- func (f *BigFloat) EqualVal(other Value) Value
- func (f *BigFloat) Error() string
- func (z *BigFloat) ExpBigFloat(x, y *BigFloat) *BigFloat
- func (f *BigFloat) ExponentiateVal(other Value) (Value, Value)
- func (f *BigFloat) Float32() float32
- func (f *BigFloat) Float64() float64
- func (f *BigFloat) FloorBigFloat() *BigFloat
- func (f *BigFloat) GreaterThan(other Value) (bool, Value)
- func (f *BigFloat) GreaterThanEqual(other Value) (bool, Value)
- func (f *BigFloat) GreaterThanEqualVal(other Value) (Value, Value)
- func (f *BigFloat) GreaterThanVal(other Value) (Value, Value)
- func (f *BigFloat) Hash() UInt64
- func (f *BigFloat) Inspect() string
- func (f *BigFloat) InstanceVariables() *InstanceVariables
- func (f *BigFloat) Int16() int16
- func (f *BigFloat) Int32() int32
- func (f *BigFloat) Int64() int64
- func (f *BigFloat) IsInf(sign int) bool
- func (f *BigFloat) IsNaN() bool
- func (z *BigFloat) IsZero() bool
- func (f *BigFloat) LaxEqualBool(other Value) bool
- func (f *BigFloat) LaxEqualVal(other Value) Value
- func (f *BigFloat) LessThan(other Value) (bool, Value)
- func (f *BigFloat) LessThanEqual(other Value) (bool, Value)
- func (f *BigFloat) LessThanEqualVal(other Value) (Value, Value)
- func (f *BigFloat) LessThanVal(other Value) (Value, Value)
- func (z *BigFloat) Mod(x, y *BigFloat) *BigFloat
- func (f *BigFloat) ModuloVal(other Value) (Value, Value)
- func (z *BigFloat) MulBigFloat(x, y *BigFloat) *BigFloat
- func (f *BigFloat) MultiplyVal(other Value) (Value, Value)
- func (f *BigFloat) Negate() *BigFloat
- func (f *BigFloat) Precision() uint
- func (z *BigFloat) Set(x *BigFloat) *BigFloat
- func (f *BigFloat) SetBigInt(i *BigInt) *BigFloat
- func (f *BigFloat) SetElkFloat32(x Float32) *BigFloat
- func (f *BigFloat) SetElkFloat64(x Float64) *BigFloat
- func (f *BigFloat) SetElkInt64(i Int64) *BigFloat
- func (f *BigFloat) SetFloat(x Float) *BigFloat
- func (f *BigFloat) SetFloat32(x float32) *BigFloat
- func (f *BigFloat) SetFloat64(x float64) *BigFloat
- func (z *BigFloat) SetInf() *BigFloat
- func (f *BigFloat) SetInt64(i int64) *BigFloat
- func (z *BigFloat) SetNaN() *BigFloat
- func (z *BigFloat) SetNegInf() *BigFloat
- func (f *BigFloat) SetPrecision(prec uint) *BigFloat
- func (f *BigFloat) SetSmallInt(i SmallInt) *BigFloat
- func (f *BigFloat) SetUInt64(i UInt64) *BigFloat
- func (f *BigFloat) SetUint64(i uint64) *BigFloat
- func (f *BigFloat) Sign() int
- func (*BigFloat) SingletonClass() *Class
- func (f *BigFloat) StrictEqualVal(other Value) Value
- func (z *BigFloat) SubBigFloat(x, y *BigFloat) *BigFloat
- func (f *BigFloat) SubtractVal(other Value) (Value, Value)
- func (f *BigFloat) ToBigInt() *BigInt
- func (f *BigFloat) ToFloat() Float
- func (f *BigFloat) ToFloat32() Float32
- func (f *BigFloat) ToFloat64() Float64
- func (f *BigFloat) ToGoBigFloat() *big.Float
- func (f *BigFloat) ToInt() Value
- func (f *BigFloat) ToInt16() Int16
- func (f *BigFloat) ToInt32() Int32
- func (f *BigFloat) ToInt64() Int64
- func (f *BigFloat) ToInt8() Int8
- func (f *BigFloat) ToUInt() UInt
- func (f *BigFloat) ToUInt16() UInt16
- func (f *BigFloat) ToUInt32() UInt32
- func (f *BigFloat) ToUInt64() UInt64
- func (f *BigFloat) ToUInt8() UInt8
- func (f *BigFloat) Uint16() uint16
- func (f *BigFloat) Uint32() uint32
- func (f *BigFloat) Uint64() uint64
- func (f *BigFloat) Uint8() uint8
- type BigFloatErrNaN
- type BigInt
- func (i *BigInt) AddBigFloat(other *BigFloat) *BigFloat
- func (i *BigInt) AddBigInt(other *BigInt) Value
- func (i *BigInt) AddFloat(other Float) Float
- func (i *BigInt) AddSmallInt(other SmallInt) Value
- func (i *BigInt) AddVal(other Value) (Value, Value)
- func (i *BigInt) BitSize() int
- func (i *BigInt) BitwiseAndNotVal(other Value) (Value, Value)
- func (i *BigInt) BitwiseAndVal(other Value) (Value, Value)
- func (i *BigInt) BitwiseNot() *BigInt
- func (i *BigInt) BitwiseOrVal(other Value) (Value, Value)
- func (i *BigInt) BitwiseXorVal(other Value) (Value, Value)
- func (i *BigInt) Centuries() DateSpan
- func (*BigInt) Class() *Class
- func (x *BigInt) Cmp(y *BigInt) int
- func (i *BigInt) CompareVal(other Value) (Value, Value)
- func (i *BigInt) Copy() Reference
- func (i *BigInt) Days() DateSpan
- func (i *BigInt) DecrementVal() Value
- func (*BigInt) DirectClass() *Class
- func (i *BigInt) DivideBigFloat(other *BigFloat) *BigFloat
- func (i *BigInt) DivideBigInt(other *BigInt) (Value, Value)
- func (i *BigInt) DivideFloat(other Float) Float
- func (i *BigInt) DivideSmallInt(other SmallInt) (Value, Value)
- func (i *BigInt) DivideVal(other Value) (Value, Value)
- func (i *BigInt) Equal(other Value) bool
- func (i *BigInt) EqualVal(other Value) Value
- func (i *BigInt) Error() string
- func (i *BigInt) ExponentiateBigFloat(other *BigFloat) *BigFloat
- func (i *BigInt) ExponentiateBigInt(other *BigInt) Value
- func (i *BigInt) ExponentiateFloat(other Float) Float
- func (i *BigInt) ExponentiateSmallInt(other SmallInt) Value
- func (i *BigInt) ExponentiateVal(other Value) (Value, Value)
- func (i *BigInt) GreaterThan(other Value) (bool, Value)
- func (i *BigInt) GreaterThanEqual(other Value) (bool, Value)
- func (i *BigInt) GreaterThanEqualVal(other Value) (Value, Value)
- func (i *BigInt) GreaterThanVal(other Value) (Value, Value)
- func (i *BigInt) Hash() UInt64
- func (i *BigInt) Hours() TimeSpan
- func (i *BigInt) Increment() *BigInt
- func (i *BigInt) Inspect() string
- func (i *BigInt) InstanceVariables() *InstanceVariables
- func (i *BigInt) IsEven() bool
- func (i *BigInt) IsOdd() bool
- func (i *BigInt) IsSmallInt() bool
- func (i *BigInt) IsZero() bool
- func (i *BigInt) LaxEqualVal(other Value) Value
- func (i *BigInt) LeftBitshiftVal(other Value) (Value, Value)
- func (i *BigInt) LessThan(other Value) (bool, Value)
- func (i *BigInt) LessThanEqual(other Value) (bool, Value)
- func (i *BigInt) LessThanEqualVal(other Value) (Value, Value)
- func (i *BigInt) LessThanVal(other Value) (Value, Value)
- func (i *BigInt) Microseconds() TimeSpan
- func (i *BigInt) Millenia() DateSpan
- func (i *BigInt) Milliseconds() TimeSpan
- func (i *BigInt) Minutes() TimeSpan
- func (i *BigInt) ModuloBigFloat(other *BigFloat) *BigFloat
- func (i *BigInt) ModuloBigInt(other *BigInt) (Value, Value)
- func (i *BigInt) ModuloFloat(other Float) Float
- func (i *BigInt) ModuloSmallInt(other SmallInt) (Value, Value)
- func (i *BigInt) ModuloVal(other Value) (Value, Value)
- func (i *BigInt) Months() DateSpan
- func (i *BigInt) MultiplyBigFloat(other *BigFloat) *BigFloat
- func (i *BigInt) MultiplyBigInt(other *BigInt) Value
- func (i *BigInt) MultiplyFloat(other Float) Float
- func (i *BigInt) MultiplySmallInt(other SmallInt) Value
- func (i *BigInt) MultiplyVal(other Value) (Value, Value)
- func (i *BigInt) Nanoseconds() TimeSpan
- func (i *BigInt) Negate() *BigInt
- func (i *BigInt) RightBitshiftVal(other Value) (Value, Value)
- func (i *BigInt) Seconds() TimeSpan
- func (*BigInt) SingletonClass() *Class
- func (i *BigInt) StrictEqualVal(other Value) Value
- func (i *BigInt) SubtractBigFloat(other *BigFloat) *BigFloat
- func (i *BigInt) SubtractBigInt(other *BigInt) Value
- func (i *BigInt) SubtractFloat(other Float) Float
- func (i *BigInt) SubtractSmallInt(other SmallInt) Value
- func (i *BigInt) SubtractVal(other Value) (Value, Value)
- func (i *BigInt) ToFloat() Float
- func (i *BigInt) ToFloat32() Float32
- func (i *BigInt) ToFloat64() Float64
- func (i *BigInt) ToGoBigInt() *big.Int
- func (i *BigInt) ToInt16() Int16
- func (i *BigInt) ToInt32() Int32
- func (i *BigInt) ToInt64() Int64
- func (i *BigInt) ToInt8() Int8
- func (i *BigInt) ToSmallInt() SmallInt
- func (i *BigInt) ToString() String
- func (i *BigInt) ToUInt16() UInt16
- func (i *BigInt) ToUInt32() UInt32
- func (i *BigInt) ToUInt64() UInt64
- func (i *BigInt) ToUInt8() UInt8
- func (i *BigInt) Weeks() DateSpan
- func (i *BigInt) Years() DateSpan
- type BigIntIterator
- func (*BigIntIterator) Class() *Class
- func (l *BigIntIterator) Copy() Reference
- func (*BigIntIterator) DirectClass() *Class
- func (l *BigIntIterator) Error() string
- func (l *BigIntIterator) Inspect() string
- func (*BigIntIterator) InstanceVariables() *InstanceVariables
- func (l *BigIntIterator) Next() (Value, Value)
- func (l *BigIntIterator) Reset()
- func (*BigIntIterator) SingletonClass() *Class
- type Box
- func (*Box) Class() *Class
- func (b *Box) Copy() Reference
- func (*Box) DirectClass() *Class
- func (b *Box) Error() string
- func (b *Box) Get() Value
- func (b *Box) Inspect() string
- func (*Box) InstanceVariables() *InstanceVariables
- func (b *Box) Next(step int) *Box
- func (b *Box) Prev(step int) *Box
- func (b *Box) Set(v Value)
- func (*Box) SingletonClass() *Class
- func (b *Box) ToImmutableBox() *ImmutableBox
- type CallCache
- type CallCacheEntry
- type CallFrame
- func (*CallFrame) Class() *Class
- func (c *CallFrame) Copy() Reference
- func (*CallFrame) DirectClass() *Class
- func (c *CallFrame) Error() string
- func (c *CallFrame) Inspect() string
- func (*CallFrame) InstanceVariables() *InstanceVariables
- func (*CallFrame) SingletonClass() *Class
- func (c *CallFrame) String() string
- type CallSiteInfo
- func (*CallSiteInfo) Class() *Class
- func (c *CallSiteInfo) Copy() Reference
- func (*CallSiteInfo) DirectClass() *Class
- func (c *CallSiteInfo) Error() string
- func (c *CallSiteInfo) Inspect() string
- func (*CallSiteInfo) InstanceVariables() *InstanceVariables
- func (*CallSiteInfo) SingletonClass() *Class
- type Channel
- func (ch *Channel) Capacity() int
- func (*Channel) Class() *Class
- func (ch *Channel) Close() (err Value)
- func (ch *Channel) Copy() Reference
- func (*Channel) DirectClass() *Class
- func (ch *Channel) Error() string
- func (ch *Channel) Inspect() string
- func (*Channel) InstanceVariables() *InstanceVariables
- func (ch *Channel) LeftCapacity() int
- func (ch *Channel) Length() int
- func (ch *Channel) Next() (Value, Value)
- func (ch *Channel) Pop() (Value, bool)
- func (ch *Channel) Push(val Value) (err Value)
- func (*Channel) SingletonClass() *Class
- type Char
- func (c Char) ByteCount() int
- func (Char) CharCount() int
- func (Char) Class() *Class
- func (x Char) Cmp(y Char) int
- func (c Char) CompareVal(other Value) (Value, Value)
- func (c Char) Concat(other Value) (String, Value)
- func (Char) DirectClass() *Class
- func (c Char) Equal(other Value) bool
- func (c Char) EqualVal(other Value) Value
- func (c Char) Error() string
- func (Char) GraphemeCount() int
- func (c Char) GreaterThan(other Value) (bool, Value)
- func (c Char) GreaterThanEqual(other Value) (bool, Value)
- func (c Char) GreaterThanEqualVal(other Value) (Value, Value)
- func (c Char) GreaterThanVal(other Value) (Value, Value)
- func (c Char) Hash() UInt64
- func (c Char) Inspect() string
- func (Char) InstanceVariables() *InstanceVariables
- func (c Char) LaxEqualVal(other Value) Value
- func (c Char) LessThan(other Value) (bool, Value)
- func (c Char) LessThanEqual(other Value) (bool, Value)
- func (c Char) LessThanEqualVal(other Value) (Value, Value)
- func (c Char) LessThanVal(other Value) (Value, Value)
- func (c Char) Lowercase() Char
- func (c Char) Repeat(other Value) (String, Value)
- func (c Char) Rune() rune
- func (Char) SingletonClass() *Class
- func (c Char) StrictEqualVal(other Value) Value
- func (c Char) ToValue() Value
- func (c Char) Uppercase() Char
- type Class
- func (c *Class) Class() *Class
- func (c *Class) Copy() Reference
- func (c *Class) CreateInstance() Value
- func (c *Class) DirectClass() *Class
- func (c *Class) Doc() Value
- func (c *Class) Error() string
- func (c *Class) GetIvarName(ivarIndex int) (Symbol, bool)
- func (c *Class) IncludeMixin(mixin *Mixin)
- func (c *Class) Inspect() string
- func (c *Class) InspectInheritance() string
- func (c *Class) InspectParents() string
- func (c *Class) InstanceVariables() *InstanceVariables
- func (c *Class) IsMixin() bool
- func (c *Class) IsMixinProxy() bool
- func (c *Class) IsSingleton() bool
- func (c *Class) Parents() iter.Seq[*Class]
- func (c *Class) SetDirectClass(metaClass *Class)
- func (c *Class) SetDoc(doc String)
- func (c *Class) SetMixin()
- func (c *Class) SetMixinProxy()
- func (c *Class) SetSingleton()
- func (c *Class) SetSingletonName(name string)
- func (c *Class) SetSuperclass(superclass *Class)
- func (c *Class) SingletonClass() *Class
- type ClassOption
- func ClassWithConstants(constants SymbolMap) ClassOption
- func ClassWithConstructor(constructor ConstructorFunc) ClassOption
- func ClassWithDefinedIvars(names []Symbol) ClassOption
- func ClassWithIvarIndices(ivarIndices IvarIndices) ClassOption
- func ClassWithMetaClass(metaClass *Class) ClassOption
- func ClassWithMethods(methods MethodMap) ClassOption
- func ClassWithMixin() ClassOption
- func ClassWithMixinProxy() ClassOption
- func ClassWithName(name string) ClassOption
- func ClassWithSingleton() ClassOption
- func ClassWithSuperclass(parent *Class) ClassOption
- type ClosedRange
- type ClosedRangeIterator
- func (*ClosedRangeIterator) Class() *Class
- func (r *ClosedRangeIterator) Copy() Reference
- func (*ClosedRangeIterator) DirectClass() *Class
- func (r *ClosedRangeIterator) Error() string
- func (r *ClosedRangeIterator) Inspect() string
- func (*ClosedRangeIterator) InstanceVariables() *InstanceVariables
- func (r *ClosedRangeIterator) Reset()
- func (*ClosedRangeIterator) SingletonClass() *Class
- type ConstantContainer
- type ConstructorFunc
- type Date
- func (d Date) AbbreviatedMonthName() string
- func (d Date) AbbreviatedWeekdayName() string
- func (d Date) AddDateSpan(val DateSpan) Date
- func (d Date) AddDateTimeSpan(val *DateTimeSpan) *DateTime
- func (d Date) AddTimeSpan(val TimeSpan) *DateTime
- func (d Date) Century() int
- func (Date) Class() *Class
- func (d Date) Cmp(other Date) int
- func (d Date) CompareVal(other Value) (Value, Value)
- func (d Date) Day() int
- func (d Date) Diff(val Value) (Value, Value)
- func (d Date) DiffDate(val Date) DateSpan
- func (d Date) DiffDateTime(val *DateTime) *DateTimeSpan
- func (Date) DirectClass() *Class
- func (d Date) Equal(other Value) bool
- func (d Date) Error() string
- func (d Date) Format(formatString string) (_ string, err Value)
- func (d Date) GreaterThan(other Value) (bool, Value)
- func (d Date) GreaterThanEqual(other Value) (bool, Value)
- func (d Date) ISOWeek() int
- func (d Date) ISOYear() int
- func (d Date) ISOYearDay() int
- func (d Date) ISOYearLastTwo() int
- func (d Date) Inspect() string
- func (Date) InstanceVariables() *InstanceVariables
- func (d Date) IsFriday() bool
- func (d Date) IsMonday() bool
- func (d Date) IsSaturday() bool
- func (d Date) IsSunday() bool
- func (d Date) IsThursday() bool
- func (d Date) IsTuesday() bool
- func (d Date) IsWednesday() bool
- func (d Date) LessThan(other Value) (bool, Value)
- func (d Date) LessThanEqual(other Value) (bool, Value)
- func (d Date) Millenium() int
- func (d Date) Month() int
- func (d Date) MonthName() string
- func (d Date) MustFormat(formatString string) string
- func (d Date) Normalize() Date
- func (d *Date) SetDay(v int)
- func (d *Date) SetMonth(v int)
- func (d *Date) SetYear(v int)
- func (Date) SingletonClass() *Class
- func (d Date) String() string
- func (d Date) Subtract(val Value) (Value, Value)
- func (d Date) SubtractDateSpan(val DateSpan) Date
- func (d Date) SubtractDateTimeSpan(val *DateTimeSpan) *DateTime
- func (d Date) SubtractTimeSpan(val TimeSpan) *DateTime
- func (d Date) ToDateSpan() DateSpan
- func (d Date) ToDateTime() *DateTime
- func (d Date) ToDateTimeSpan() *DateTimeSpan
- func (d Date) ToDateTimeValue() DateTime
- func (d Date) ToGoTime() time.Time
- func (d Date) ToString() String
- func (d Date) ToValue() Value
- func (d Date) WeekFromMonday() int
- func (d Date) WeekFromSunday() int
- func (d Date) WeekdayFromMonday() int
- func (d Date) WeekdayFromSunday() int
- func (d Date) WeekdayName() string
- func (d Date) Year() int
- func (d Date) YearDay() int
- func (d Date) YearLastTwo() int
- type DateSpan
- func (d DateSpan) Add(other Value) (Value, Value)
- func (d DateSpan) AddDateSpan(other DateSpan) DateSpan
- func (d DateSpan) AddDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
- func (d DateSpan) AddTimeSpan(other TimeSpan) *DateTimeSpan
- func (DateSpan) Class() *Class
- func (x DateSpan) Cmp(y DateSpan) int
- func (d DateSpan) CompareVal(other Value) (Value, Value)
- func (d DateSpan) Copy() Reference
- func (d DateSpan) Days() int
- func (DateSpan) DirectClass() *Class
- func (d DateSpan) Divide(other Value) (Value, Value)
- func (d DateSpan) DivideBigFloat(other *BigFloat) *DateTimeSpan
- func (d DateSpan) DivideBigInt(other *BigInt) *DateTimeSpan
- func (d DateSpan) DivideFloat(other Float) *DateTimeSpan
- func (d DateSpan) DivideInt(other Value) *DateTimeSpan
- func (d DateSpan) DivideSmallInt(other SmallInt) *DateTimeSpan
- func (d DateSpan) Equal(other Value) bool
- func (d DateSpan) Error() string
- func (d DateSpan) GreaterThan(other Value) (result bool, err Value)
- func (d DateSpan) GreaterThanEqual(other Value) (result bool, err Value)
- func (d DateSpan) GreaterThanEqualVal(other Value) (Value, Value)
- func (d DateSpan) GreaterThanVal(other Value) (Value, Value)
- func (d DateSpan) InDays() Float
- func (d DateSpan) InDaysBigFloat() *BigFloat
- func (d DateSpan) InHours() Float
- func (d DateSpan) InMicroseconds() Float
- func (d DateSpan) InMilliseconds() Float
- func (d DateSpan) InMinutes() Float
- func (d DateSpan) InMonths() Float
- func (d DateSpan) InNanoseconds() Float
- func (d DateSpan) InSeconds() Float
- func (d DateSpan) InWeeks() Float
- func (d DateSpan) InYears() Float
- func (d DateSpan) Inspect() string
- func (DateSpan) InstanceVariables() *InstanceVariables
- func (d DateSpan) IsZero() bool
- func (d DateSpan) LessThan(other Value) (result bool, err Value)
- func (d DateSpan) LessThanEqual(other Value) (result bool, err Value)
- func (d DateSpan) LessThanVal(other Value) (Value, Value)
- func (d DateSpan) Months() int
- func (d DateSpan) Multiply(other Value) (Value, Value)
- func (d DateSpan) MultiplyBigFloat(other *BigFloat) *DateTimeSpan
- func (d DateSpan) MultiplyBigInt(other *BigInt) DateSpan
- func (d DateSpan) MultiplyFloat(other Float) *DateTimeSpan
- func (d DateSpan) MultiplyInt(other Value) DateSpan
- func (d DateSpan) MultiplySmallInt(other SmallInt) DateSpan
- func (d DateSpan) Negate() DateSpan
- func (DateSpan) SingletonClass() *Class
- func (d DateSpan) String() string
- func (d DateSpan) Subtract(other Value) (Value, Value)
- func (d DateSpan) SubtractDateSpan(other DateSpan) DateSpan
- func (d DateSpan) SubtractDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
- func (d DateSpan) SubtractTimeSpan(other TimeSpan) *DateTimeSpan
- func (d DateSpan) ToDate() Date
- func (d DateSpan) ToDateTimeSpan() *DateTimeSpan
- func (d DateSpan) ToString() String
- func (d DateSpan) ToValue() Value
- func (d DateSpan) TotalDays() Value
- func (d DateSpan) TotalHours() Value
- func (d DateSpan) TotalMicroseconds() Value
- func (d DateSpan) TotalMilliseconds() Value
- func (d DateSpan) TotalMinutes() Value
- func (d DateSpan) TotalMonths() Value
- func (d DateSpan) TotalNanoseconds() Value
- func (d DateSpan) TotalSeconds() Value
- func (d DateSpan) TotalWeeks() Value
- func (d DateSpan) TotalYears() Value
- func (d DateSpan) Years() int
- type DateTime
- func DateTimeNow() *DateTime
- func MakeDateTime(year, month, day, hour, min, sec, millisec, microsec, nsec int, zone *Timezone) DateTime
- func MakeDateTimeFromDateAndTime(date Date, time Time, zone *Timezone) DateTime
- func MakeZeroDateTime() DateTime
- func NewDateTime(year, month, day, hour, min, sec, millisec, microsec, nsec int, zone *Timezone) *DateTime
- func ToElkDateTime(time time.Time) *DateTime
- func ToElkDateTimeValue(time time.Time) DateTime
- func (t DateTime) AbbreviatedMonthName() string
- func (t DateTime) AbbreviatedWeekdayName() string
- func (t *DateTime) Add(val Value) (Value, Value)
- func (t *DateTime) AddDateSpan(val DateSpan) *DateTime
- func (t *DateTime) AddDateTimeSpan(val *DateTimeSpan) *DateTime
- func (t *DateTime) AddTimeSpan(val TimeSpan) *DateTime
- func (t DateTime) AttosecondsInSecond() int64
- func (t DateTime) Century() int
- func (DateTime) Class() *Class
- func (x *DateTime) Cmp(y *DateTime) int
- func (d *DateTime) CompareVal(other Value) (Value, Value)
- func (t *DateTime) Copy() Reference
- func (t *DateTime) Date() Date
- func (t DateTime) Day() int
- func (t *DateTime) Diff(val Value) (Value, Value)
- func (t *DateTime) DiffDate(val Date) *DateTimeSpan
- func (t *DateTime) DiffDateTime(val *DateTime) *DateTimeSpan
- func (DateTime) DirectClass() *Class
- func (t *DateTime) Equal(other Value) bool
- func (t DateTime) Error() string
- func (t DateTime) FemtosecondsInSecond() int64
- func (t DateTime) Format(formatString string) (_ string, err Value)
- func (t *DateTime) GreaterThan(other Value) (result bool, err Value)
- func (t *DateTime) GreaterThanEqual(other Value) (result bool, err Value)
- func (t *DateTime) GreaterThanEqualVal(other Value) (Value, Value)
- func (t *DateTime) GreaterThanVal(other Value) (Value, Value)
- func (t DateTime) Hour() int
- func (t DateTime) Hour12() int
- func (t DateTime) ISOWeek() int
- func (t DateTime) ISOYear() int
- func (t DateTime) ISOYearDay() int
- func (t DateTime) ISOYearLastTwo() int
- func (t *DateTime) InZone(zone *Timezone) *DateTime
- func (t DateTime) Inspect() string
- func (t DateTime) InstanceVariables() *InstanceVariables
- func (t DateTime) IsAM() bool
- func (t DateTime) IsFriday() bool
- func (t DateTime) IsLocal() bool
- func (t DateTime) IsMonday() bool
- func (t DateTime) IsPM() bool
- func (t DateTime) IsSaturday() bool
- func (t DateTime) IsSunday() bool
- func (t DateTime) IsThursday() bool
- func (t DateTime) IsTuesday() bool
- func (t DateTime) IsUTC() bool
- func (t DateTime) IsWednesday() bool
- func (t *DateTime) LaxEqual(other Value) bool
- func (t *DateTime) LessThan(other Value) (result bool, err Value)
- func (t *DateTime) LessThanEqual(other Value) (result bool, err Value)
- func (t *DateTime) LessThanEqualVal(other Value) (Value, Value)
- func (t *DateTime) LessThanVal(other Value) (Value, Value)
- func (t *DateTime) Local() *DateTime
- func (t DateTime) Meridiem() string
- func (t DateTime) MeridiemLowercase() string
- func (t DateTime) Microsecond() int
- func (t DateTime) MicrosecondsInSecond() int
- func (t DateTime) Millenium() int
- func (t DateTime) Millisecond() int
- func (t DateTime) Minute() int
- func (t DateTime) Month() int
- func (t DateTime) MonthName() string
- func (t DateTime) MustFormat(formatString string) string
- func (t DateTime) Nanosecond() int
- func (t DateTime) NanosecondsInSecond() int
- func (t DateTime) PicosecondsInSecond() int64
- func (t DateTime) Second() int
- func (DateTime) SingletonClass() *Class
- func (t *DateTime) StrictEqual(other Value) bool
- func (t DateTime) String() string
- func (t *DateTime) Subtract(val Value) (Value, Value)
- func (t *DateTime) SubtractDateSpan(val DateSpan) *DateTime
- func (t *DateTime) SubtractDateTimeSpan(val *DateTimeSpan) *DateTime
- func (t *DateTime) SubtractTimeSpan(val TimeSpan) *DateTime
- func (t *DateTime) Time() Time
- func (t *DateTime) ToDate() Date
- func (t DateTime) ToDateTimeSpan() *DateTimeSpan
- func (t DateTime) ToGoTime() time.Time
- func (t DateTime) ToString() String
- func (t *DateTime) UTC() *DateTime
- func (t DateTime) UnixAttoseconds() *big.Int
- func (t DateTime) UnixFemtoseconds() *big.Int
- func (t DateTime) UnixMicroseconds() *big.Int
- func (t DateTime) UnixMilliseconds() int64
- func (t DateTime) UnixNanoseconds() *big.Int
- func (t DateTime) UnixPicoseconds() *big.Int
- func (t DateTime) UnixSeconds() int64
- func (t DateTime) UnixYoctoseconds() *big.Int
- func (t DateTime) UnixZeptoseconds() *big.Int
- func (t DateTime) WeekFromMonday() int
- func (t DateTime) WeekFromSunday() int
- func (t DateTime) WeekdayFromMonday() int
- func (t DateTime) WeekdayFromSunday() int
- func (t DateTime) WeekdayName() string
- func (t *DateTime) WithZone(zone *Timezone) *DateTime
- func (t DateTime) Year() int
- func (t DateTime) YearDay() int
- func (t DateTime) YearLastTwo() int
- func (t DateTime) YoctosecondsInSecond() *big.Int
- func (t DateTime) ZeptosecondsInSecond() *big.Int
- func (t DateTime) Zone() *Timezone
- func (t DateTime) ZoneAbbreviatedName() string
- func (t DateTime) ZoneName() string
- func (t DateTime) ZoneOffset() TimeSpan
- func (t DateTime) ZoneOffsetHourMinutes() int
- func (t DateTime) ZoneOffsetHours() int
- func (t DateTime) ZoneOffsetSeconds() int
- type DateTimeSpan
- func (d *DateTimeSpan) Add(other Value) (Value, Value)
- func (d *DateTimeSpan) AddDateSpan(other DateSpan) *DateTimeSpan
- func (d *DateTimeSpan) AddDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
- func (d *DateTimeSpan) AddMutDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
- func (d *DateTimeSpan) AddMutTimeSpan(other TimeSpan) *DateTimeSpan
- func (d *DateTimeSpan) AddTimeSpan(other TimeSpan) *DateTimeSpan
- func (*DateTimeSpan) Class() *Class
- func (x *DateTimeSpan) Cmp(y *DateTimeSpan) int
- func (d *DateTimeSpan) CompareVal(other Value) (Value, Value)
- func (d *DateTimeSpan) Copy() Reference
- func (d *DateTimeSpan) Days() int
- func (*DateTimeSpan) DirectClass() *Class
- func (d *DateTimeSpan) Divide(other Value) (Value, Value)
- func (d *DateTimeSpan) DivideBigFloat(other *BigFloat) *DateTimeSpan
- func (d *DateTimeSpan) DivideBigInt(other *BigInt) *DateTimeSpan
- func (d *DateTimeSpan) DivideFloat(other Float) *DateTimeSpan
- func (d *DateTimeSpan) DivideInt(other Value) *DateTimeSpan
- func (d *DateTimeSpan) DivideSmallInt(other SmallInt) *DateTimeSpan
- func (d *DateTimeSpan) Dup() *DateTimeSpan
- func (d *DateTimeSpan) Equal(other Value) bool
- func (d *DateTimeSpan) Error() string
- func (d *DateTimeSpan) GreaterThan(other Value) (result bool, err Value)
- func (d *DateTimeSpan) GreaterThanEqual(other Value) (result bool, err Value)
- func (d *DateTimeSpan) GreaterThanEqualVal(other Value) (Value, Value)
- func (d *DateTimeSpan) GreaterThanVal(other Value) (Value, Value)
- func (d *DateTimeSpan) Hours() int
- func (d *DateTimeSpan) InDays() Float
- func (d *DateTimeSpan) InHours() Float
- func (d *DateTimeSpan) InMicroseconds() Float
- func (d *DateTimeSpan) InMilliseconds() Float
- func (d *DateTimeSpan) InMinutes() Float
- func (d *DateTimeSpan) InMonths() Float
- func (d *DateTimeSpan) InNanoseconds() Float
- func (d *DateTimeSpan) InSeconds() Float
- func (d *DateTimeSpan) InWeeks() Float
- func (d *DateTimeSpan) InYears() Float
- func (d *DateTimeSpan) Inspect() string
- func (*DateTimeSpan) InstanceVariables() *InstanceVariables
- func (d *DateTimeSpan) IsZero() bool
- func (d *DateTimeSpan) LessThan(other Value) (result bool, err Value)
- func (d *DateTimeSpan) LessThanEqual(other Value) (result bool, err Value)
- func (d *DateTimeSpan) LessThanVal(other Value) (Value, Value)
- func (d *DateTimeSpan) Microseconds() int
- func (d *DateTimeSpan) Milliseconds() int
- func (d *DateTimeSpan) Minutes() int
- func (d *DateTimeSpan) Months() int
- func (d *DateTimeSpan) Multiply(other Value) (Value, Value)
- func (d *DateTimeSpan) MultiplyBigFloat(other *BigFloat) *DateTimeSpan
- func (d *DateTimeSpan) MultiplyBigInt(other *BigInt) *DateTimeSpan
- func (d *DateTimeSpan) MultiplyFloat(other Float) *DateTimeSpan
- func (d *DateTimeSpan) MultiplyInt(other Value) *DateTimeSpan
- func (d *DateTimeSpan) MultiplySmallInt(other SmallInt) *DateTimeSpan
- func (d *DateTimeSpan) Nanoseconds() int
- func (d *DateTimeSpan) Negate() *DateTimeSpan
- func (d *DateTimeSpan) Normalise()
- func (d *DateTimeSpan) Seconds() int
- func (*DateTimeSpan) SingletonClass() *Class
- func (d *DateTimeSpan) String() string
- func (d *DateTimeSpan) Subtract(other Value) (Value, Value)
- func (d *DateTimeSpan) SubtractDateSpan(other DateSpan) *DateTimeSpan
- func (d *DateTimeSpan) SubtractDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
- func (d *DateTimeSpan) SubtractTimeSpan(other TimeSpan) *DateTimeSpan
- func (d *DateTimeSpan) ToDateTime() *DateTime
- func (d *DateTimeSpan) ToDateTimeWithZone(zone *Timezone) *DateTime
- func (d *DateTimeSpan) ToString() String
- func (d *DateTimeSpan) TotalDays() Value
- func (d *DateTimeSpan) TotalHours() Value
- func (d *DateTimeSpan) TotalMicroseconds() Value
- func (d *DateTimeSpan) TotalMilliseconds() Value
- func (d *DateTimeSpan) TotalMinutes() Value
- func (d *DateTimeSpan) TotalMonths() Value
- func (d *DateTimeSpan) TotalNanoseconds() Value
- func (d *DateTimeSpan) TotalSeconds() Value
- func (d *DateTimeSpan) TotalWeeks() Value
- func (d *DateTimeSpan) TotalYears() Value
- func (d *DateTimeSpan) Years() int
- type Diagnostic
- type DiagnosticList
- func (dl *DiagnosticList) Append(elements ...*Diagnostic)
- func (dl *DiagnosticList) At(i int) *Diagnostic
- func (dl *DiagnosticList) Capacity() int
- func (*DiagnosticList) Class() *Class
- func (l *DiagnosticList) Concat(other Value) (*ArrayList, Value)
- func (d *DiagnosticList) Copy() Reference
- func (*DiagnosticList) DirectClass() *Class
- func (d *DiagnosticList) Error() string
- func (dl *DiagnosticList) Get(index int) (Value, Value)
- func (dl *DiagnosticList) Grow(newSlots int)
- func (d *DiagnosticList) Inspect() string
- func (*DiagnosticList) InstanceVariables() *InstanceVariables
- func (l *DiagnosticList) LeftCapacity() int
- func (dl *DiagnosticList) Length() int
- func (l *DiagnosticList) Repeat(other Value) (*DiagnosticList, Value)
- func (l *DiagnosticList) Set(index int, val *Diagnostic) Value
- func (l *DiagnosticList) SetAt(index int, val *Diagnostic)
- func (*DiagnosticList) SingletonClass() *Class
- func (dl *DiagnosticList) Subscript(key Value) (Value, Value)
- func (dl *DiagnosticList) SubscriptSet(key Value, val *Diagnostic) Value
- type DiagnosticListIterator
- func (*DiagnosticListIterator) Class() *Class
- func (l *DiagnosticListIterator) Copy() Reference
- func (*DiagnosticListIterator) DirectClass() *Class
- func (l *DiagnosticListIterator) Error() string
- func (l *DiagnosticListIterator) Inspect() string
- func (*DiagnosticListIterator) InstanceVariables() *InstanceVariables
- func (l *DiagnosticListIterator) Next() (Value, Value)
- func (l *DiagnosticListIterator) Reset()
- func (*DiagnosticListIterator) SingletonClass() *Class
- type EndlessClosedRange
- func (*EndlessClosedRange) Class() *Class
- func (r *EndlessClosedRange) Copy() Reference
- func (*EndlessClosedRange) DirectClass() *Class
- func (r *EndlessClosedRange) Error() string
- func (r *EndlessClosedRange) Inspect() string
- func (r *EndlessClosedRange) InstanceVariables() *InstanceVariables
- func (*EndlessClosedRange) SingletonClass() *Class
- type EndlessClosedRangeIterator
- func (*EndlessClosedRangeIterator) Class() *Class
- func (r *EndlessClosedRangeIterator) Copy() Reference
- func (*EndlessClosedRangeIterator) DirectClass() *Class
- func (r *EndlessClosedRangeIterator) Error() string
- func (r *EndlessClosedRangeIterator) Inspect() string
- func (*EndlessClosedRangeIterator) InstanceVariables() *InstanceVariables
- func (r *EndlessClosedRangeIterator) Reset()
- func (*EndlessClosedRangeIterator) SingletonClass() *Class
- type EndlessOpenRange
- func (*EndlessOpenRange) Class() *Class
- func (r *EndlessOpenRange) Copy() Reference
- func (*EndlessOpenRange) DirectClass() *Class
- func (r *EndlessOpenRange) Error() string
- func (r *EndlessOpenRange) Inspect() string
- func (r *EndlessOpenRange) InstanceVariables() *InstanceVariables
- func (*EndlessOpenRange) SingletonClass() *Class
- type EndlessOpenRangeIterator
- func (*EndlessOpenRangeIterator) Class() *Class
- func (r *EndlessOpenRangeIterator) Copy() Reference
- func (*EndlessOpenRangeIterator) DirectClass() *Class
- func (r *EndlessOpenRangeIterator) Error() string
- func (r *EndlessOpenRangeIterator) Inspect() string
- func (*EndlessOpenRangeIterator) InstanceVariables() *InstanceVariables
- func (r *EndlessOpenRangeIterator) Reset()
- func (*EndlessOpenRangeIterator) SingletonClass() *Class
- type FalseType
- type Float
- func (f Float) AddVal(other Value) (result, err Value)
- func (f Float) Centuries() *DateTimeSpan
- func (Float) Class() *Class
- func (x Float) Cmp(y Float) int
- func (f Float) CompareVal(other Value) (result, err Value)
- func (f Float) Days() *DateTimeSpan
- func (Float) DirectClass() *Class
- func (f Float) DivideVal(other Value) (result, err Value)
- func (f Float) Equal(other Value) bool
- func (f Float) EqualVal(other Value) Value
- func (f Float) Error() string
- func (f Float) ExponentiateVal(other Value) (result, err Value)
- func (f Float) GreaterThan(other Value) (bool, Value)
- func (f Float) GreaterThanEqual(other Value) (bool, Value)
- func (f Float) GreaterThanEqualVal(other Value) (Value, Value)
- func (f Float) GreaterThanVal(other Value) (Value, Value)
- func (f Float) Hash() UInt64
- func (f Float) Hours() TimeSpan
- func (f Float) Inspect() string
- func (f Float) InstanceVariables() *InstanceVariables
- func (f Float) IsInf(sign int) bool
- func (f Float) IsInt() bool
- func (f Float) IsNaN() bool
- func (f Float) LaxEqualVal(other Value) Value
- func (f Float) LessThan(other Value) (bool, Value)
- func (f Float) LessThanEqual(other Value) (bool, Value)
- func (f Float) LessThanEqualVal(other Value) (Value, Value)
- func (f Float) LessThanVal(other Value) (Value, Value)
- func (f Float) Microseconds() TimeSpan
- func (f Float) Millenia() *DateTimeSpan
- func (f Float) Milliseconds() TimeSpan
- func (f Float) Minutes() TimeSpan
- func (a Float) Mod(b Float) Float
- func (f Float) ModuloVal(other Value) (result, err Value)
- func (f Float) Months() *DateTimeSpan
- func (f Float) MultiplyVal(other Value) (result, err Value)
- func (f Float) Nanoseconds() TimeSpan
- func (f Float) Seconds() TimeSpan
- func (Float) SingletonClass() *Class
- func (f Float) StrictEqualVal(other Value) Value
- func (f Float) SubtractVal(other Value) (result, err Value)
- func (f Float) ToFloat32() Float32
- func (f Float) ToFloat64() Float64
- func (f Float) ToInt() Value
- func (f Float) ToInt16() Int16
- func (f Float) ToInt32() Int32
- func (f Float) ToInt64() Int64
- func (f Float) ToInt8() Int8
- func (f Float) ToString() String
- func (f Float) ToUInt() UInt
- func (f Float) ToUInt16() UInt16
- func (f Float) ToUInt32() UInt32
- func (f Float) ToUInt64() UInt64
- func (f Float) ToUInt8() UInt8
- func (f Float) ToValue() Value
- func (f Float) Weeks() *DateTimeSpan
- func (f Float) Years() *DateTimeSpan
- type Float32
- func (f Float32) Add(other Value) (Float32, Value)
- func (Float32) Class() *Class
- func (f Float32) CompareVal(other Value) (Value, Value)
- func (Float32) DirectClass() *Class
- func (f Float32) Divide(other Value) (Float32, Value)
- func (f Float32) Equal(other Value) bool
- func (f Float32) EqualVal(other Value) Value
- func (f Float32) Error() string
- func (f Float32) ExponentiateVal(other Value) (Float32, Value)
- func (f Float32) GreaterThan(other Value) (bool, Value)
- func (f Float32) GreaterThanEqual(other Value) (bool, Value)
- func (f Float32) GreaterThanEqualVal(other Value) (Value, Value)
- func (f Float32) GreaterThanVal(other Value) (Value, Value)
- func (f Float32) Hash() UInt64
- func (f Float32) Inspect() string
- func (f Float32) InstanceVariables() *InstanceVariables
- func (f Float32) IsInf(sign int) bool
- func (f Float32) IsNaN() bool
- func (f Float32) LessThan(other Value) (bool, Value)
- func (f Float32) LessThanEqual(other Value) (bool, Value)
- func (f Float32) LessThanEqualVal(other Value) (Value, Value)
- func (f Float32) LessThanVal(other Value) (Value, Value)
- func (f Float32) ModuloVal(other Value) (Float32, Value)
- func (f Float32) Multiply(other Value) (Float32, Value)
- func (Float32) SingletonClass() *Class
- func (f Float32) StrictEqualVal(other Value) Value
- func (f Float32) Subtract(other Value) (Float32, Value)
- func (f Float32) ToString() String
- func (f Float32) ToValue() Value
- type Float64
- func (f Float64) Add(other Value) (Float64, Value)
- func (Float64) Class() *Class
- func (f Float64) CompareVal(other Value) (Value, Value)
- func (f Float64) Copy() Reference
- func (Float64) DirectClass() *Class
- func (f Float64) Divide(other Value) (Float64, Value)
- func (f Float64) Equal(other Value) bool
- func (f Float64) EqualVal(other Value) Value
- func (f Float64) Error() string
- func (f Float64) ExponentiateVal(other Value) (Float64, Value)
- func (f Float64) GreaterThan(other Value) (bool, Value)
- func (f Float64) GreaterThanEqual(other Value) (bool, Value)
- func (f Float64) GreaterThanEqualVal(other Value) (Value, Value)
- func (f Float64) GreaterThanVal(other Value) (Value, Value)
- func (f Float64) Hash() UInt64
- func (f Float64) Inspect() string
- func (f Float64) InstanceVariables() *InstanceVariables
- func (f Float64) IsInf(sign int) bool
- func (f Float64) IsNaN() bool
- func (f Float64) LessThan(other Value) (bool, Value)
- func (f Float64) LessThanEqual(other Value) (bool, Value)
- func (f Float64) LessThanEqualVal(other Value) (Value, Value)
- func (f Float64) LessThanVal(other Value) (Value, Value)
- func (f Float64) ModuloVal(other Value) (Float64, Value)
- func (f Float64) Multiply(other Value) (Float64, Value)
- func (Float64) SingletonClass() *Class
- func (f Float64) StrictEqualVal(other Value) Value
- func (f Float64) Subtract(other Value) (Float64, Value)
- func (f Float64) ToString() String
- func (f Float64) ToValue() Value
- type Function
- type GlobalObjectType
- func (GlobalObjectType) Class() *Class
- func (g GlobalObjectType) Copy() Reference
- func (GlobalObjectType) DirectClass() *Class
- func (g GlobalObjectType) Error() string
- func (GlobalObjectType) Inspect() string
- func (GlobalObjectType) InstanceVariables() *InstanceVariables
- func (GlobalObjectType) SingletonClass() *Class
- type HashMap
- func (h *HashMap) All() iter.Seq[Pair]
- func (h *HashMap) Capacity() int
- func (*HashMap) Class() *Class
- func (h *HashMap) Clone() *HashMap
- func (h *HashMap) Copy() Reference
- func (*HashMap) DirectClass() *Class
- func (h *HashMap) Error() string
- func (h *HashMap) Inspect() string
- func (*HashMap) InstanceVariables() *InstanceVariables
- func (h *HashMap) LeftCapacity() int
- func (h *HashMap) Length() int
- func (*HashMap) SingletonClass() *Class
- type HashMapIterator
- func (*HashMapIterator) Class() *Class
- func (h *HashMapIterator) Copy() Reference
- func (*HashMapIterator) DirectClass() *Class
- func (h *HashMapIterator) Error() string
- func (h *HashMapIterator) Inspect() string
- func (*HashMapIterator) InstanceVariables() *InstanceVariables
- func (h *HashMapIterator) Next() (Value, Value)
- func (h *HashMapIterator) Reset()
- func (*HashMapIterator) SingletonClass() *Class
- type HashRecord
- func (h *HashRecord) All() iter.Seq[Pair]
- func (*HashRecord) Class() *Class
- func (h *HashRecord) Copy() Reference
- func (*HashRecord) DirectClass() *Class
- func (h *HashRecord) Error() string
- func (h *HashRecord) Inspect() string
- func (*HashRecord) InstanceVariables() *InstanceVariables
- func (h *HashRecord) Length() int
- func (*HashRecord) SingletonClass() *Class
- type HashRecordIterator
- func (*HashRecordIterator) Class() *Class
- func (h *HashRecordIterator) Copy() Reference
- func (*HashRecordIterator) DirectClass() *Class
- func (h *HashRecordIterator) Error() string
- func (h *HashRecordIterator) Inspect() string
- func (*HashRecordIterator) InstanceVariables() *InstanceVariables
- func (h *HashRecordIterator) Next() (Value, Value)
- func (h *HashRecordIterator) Reset()
- func (*HashRecordIterator) SingletonClass() *Class
- type HashSet
- func (h *HashSet) All() iter.Seq[Value]
- func (h *HashSet) Capacity() int
- func (*HashSet) Class() *Class
- func (h *HashSet) Copy() Reference
- func (*HashSet) DirectClass() *Class
- func (h *HashSet) Error() string
- func (h *HashSet) Inspect() string
- func (*HashSet) InstanceVariables() *InstanceVariables
- func (h *HashSet) LeftCapacity() int
- func (h *HashSet) Length() int
- func (*HashSet) SingletonClass() *Class
- type HashSetIterator
- func (*HashSetIterator) Class() *Class
- func (h *HashSetIterator) Copy() Reference
- func (*HashSetIterator) DirectClass() *Class
- func (h *HashSetIterator) Error() string
- func (h *HashSetIterator) Inspect() string
- func (*HashSetIterator) InstanceVariables() *InstanceVariables
- func (h *HashSetIterator) Next() (Value, Value)
- func (h *HashSetIterator) Reset()
- func (*HashSetIterator) SingletonClass() *Class
- type ImmutableBox
- func (*ImmutableBox) Class() *Class
- func (b *ImmutableBox) Copy() Reference
- func (*ImmutableBox) DirectClass() *Class
- func (b *ImmutableBox) Error() string
- func (b *ImmutableBox) Get() Value
- func (b *ImmutableBox) Inspect() string
- func (*ImmutableBox) InstanceVariables() *InstanceVariables
- func (b *ImmutableBox) Next(step int) *ImmutableBox
- func (b *ImmutableBox) Prev(step int) *ImmutableBox
- func (*ImmutableBox) SingletonClass() *Class
- func (b *ImmutableBox) ToBox() *Box
- type Inspectable
- type InstanceVariables
- type Int16
- func (i Int16) Add(other Value) (Int16, Value)
- func (i Int16) BitwiseAnd(other Value) (Int16, Value)
- func (i Int16) BitwiseAndNot(other Value) (Int16, Value)
- func (i Int16) BitwiseOr(other Value) (Int16, Value)
- func (i Int16) BitwiseXor(other Value) (Int16, Value)
- func (i Int16) Class() *Class
- func (i Int16) CompareVal(other Value) (Value, Value)
- func (Int16) DirectClass() *Class
- func (i Int16) Divide(other Value) (Int16, Value)
- func (i Int16) Equal(other Value) bool
- func (i Int16) EqualVal(other Value) Value
- func (i Int16) Error() string
- func (i Int16) ExponentiateVal(other Value) (Int16, Value)
- func (i Int16) GreaterThan(other Value) (bool, Value)
- func (i Int16) GreaterThanEqual(other Value) (bool, Value)
- func (i Int16) GreaterThanEqualVal(other Value) (Value, Value)
- func (i Int16) GreaterThanVal(other Value) (Value, Value)
- func (i Int16) Hash() UInt64
- func (i Int16) Inspect() string
- func (i Int16) InstanceVariables() *InstanceVariables
- func (i Int16) LessThan(other Value) (bool, Value)
- func (i Int16) LessThanEqual(other Value) (bool, Value)
- func (i Int16) LessThanEqualVal(other Value) (Value, Value)
- func (i Int16) LessThanVal(other Value) (Value, Value)
- func (i Int16) ModuloVal(other Value) (Int16, Value)
- func (i Int16) Multiply(other Value) (Int16, Value)
- func (Int16) SingletonClass() *Class
- func (i Int16) StrictEqualVal(other Value) Value
- func (i Int16) Subtract(other Value) (Int16, Value)
- func (i Int16) ToFloat() Float
- func (i Int16) ToFloat32() Float32
- func (i Int16) ToFloat64() Float64
- func (i Int16) ToInt32() Int32
- func (i Int16) ToInt64() Int64
- func (i Int16) ToInt8() Int8
- func (i Int16) ToSmallInt() SmallInt
- func (i Int16) ToString() String
- func (i Int16) ToUInt() UInt
- func (i Int16) ToUInt16() UInt16
- func (i Int16) ToUInt32() UInt32
- func (i Int16) ToUInt64() UInt64
- func (i Int16) ToUInt8() UInt8
- func (i Int16) ToValue() Value
- type Int32
- func (i Int32) Add(other Value) (Int32, Value)
- func (i Int32) BitwiseAnd(other Value) (Int32, Value)
- func (i Int32) BitwiseAndNot(other Value) (Int32, Value)
- func (i Int32) BitwiseOr(other Value) (Int32, Value)
- func (i Int32) BitwiseXor(other Value) (Int32, Value)
- func (i Int32) Class() *Class
- func (i Int32) CompareVal(other Value) (Value, Value)
- func (Int32) DirectClass() *Class
- func (i Int32) Divide(other Value) (Int32, Value)
- func (i Int32) Equal(other Value) bool
- func (i Int32) EqualVal(other Value) Value
- func (i Int32) Error() string
- func (i Int32) ExponentiateVal(other Value) (Int32, Value)
- func (i Int32) GreaterThan(other Value) (bool, Value)
- func (i Int32) GreaterThanEqual(other Value) (bool, Value)
- func (i Int32) GreaterThanEqualVal(other Value) (Value, Value)
- func (i Int32) GreaterThanVal(other Value) (Value, Value)
- func (i Int32) Hash() UInt64
- func (i Int32) Inspect() string
- func (i Int32) InstanceVariables() *InstanceVariables
- func (i Int32) LessThan(other Value) (bool, Value)
- func (i Int32) LessThanEqual(other Value) (bool, Value)
- func (i Int32) LessThanEqualVal(other Value) (Value, Value)
- func (i Int32) LessThanVal(other Value) (Value, Value)
- func (i Int32) ModuloVal(other Value) (Int32, Value)
- func (i Int32) Multiply(other Value) (Int32, Value)
- func (Int32) SingletonClass() *Class
- func (i Int32) StrictEqualVal(other Value) Value
- func (i Int32) Subtract(other Value) (Int32, Value)
- func (i Int32) ToFloat() Float
- func (i Int32) ToFloat32() Float32
- func (i Int32) ToFloat64() Float64
- func (i Int32) ToInt16() Int16
- func (i Int32) ToInt64() Int64
- func (i Int32) ToInt8() Int8
- func (i Int32) ToSmallInt() SmallInt
- func (i Int32) ToString() String
- func (i Int32) ToUInt() UInt
- func (i Int32) ToUInt16() UInt16
- func (i Int32) ToUInt32() UInt32
- func (i Int32) ToUInt64() UInt64
- func (i Int32) ToUInt8() UInt8
- func (i Int32) ToValue() Value
- type Int64
- func (i Int64) Add(other Value) (Int64, Value)
- func (i Int64) BitwiseAnd(other Value) (Int64, Value)
- func (i Int64) BitwiseAndNot(other Value) (Int64, Value)
- func (i Int64) BitwiseOr(other Value) (Int64, Value)
- func (i Int64) BitwiseXor(other Value) (Int64, Value)
- func (i Int64) Class() *Class
- func (i Int64) CompareVal(other Value) (Value, Value)
- func (i Int64) Copy() Reference
- func (Int64) DirectClass() *Class
- func (i Int64) Divide(other Value) (Int64, Value)
- func (i Int64) Equal(other Value) bool
- func (i Int64) EqualVal(other Value) Value
- func (i Int64) Error() string
- func (i Int64) ExponentiateVal(other Value) (Int64, Value)
- func (i Int64) GreaterThan(other Value) (bool, Value)
- func (i Int64) GreaterThanEqual(other Value) (bool, Value)
- func (i Int64) GreaterThanEqualVal(other Value) (Value, Value)
- func (i Int64) GreaterThanVal(other Value) (Value, Value)
- func (i Int64) Hash() UInt64
- func (i Int64) Inspect() string
- func (i Int64) InstanceVariables() *InstanceVariables
- func (i Int64) LessThan(other Value) (bool, Value)
- func (i Int64) LessThanEqual(other Value) (bool, Value)
- func (i Int64) LessThanEqualVal(other Value) (Value, Value)
- func (i Int64) LessThanVal(other Value) (Value, Value)
- func (i Int64) ModuloVal(other Value) (Int64, Value)
- func (i Int64) Multiply(other Value) (Int64, Value)
- func (Int64) SingletonClass() *Class
- func (i Int64) StrictEqualVal(other Value) Value
- func (i Int64) Subtract(other Value) (Int64, Value)
- func (i Int64) ToFloat() Float
- func (i Int64) ToFloat32() Float32
- func (i Int64) ToFloat64() Float64
- func (i Int64) ToInt16() Int16
- func (i Int64) ToInt32() Int32
- func (i Int64) ToInt8() Int8
- func (i Int64) ToSmallInt() SmallInt
- func (i Int64) ToString() String
- func (i Int64) ToUInt() UInt
- func (i Int64) ToUInt16() UInt16
- func (i Int64) ToUInt32() UInt32
- func (i Int64) ToUInt64() UInt64
- func (i Int64) ToUInt8() UInt8
- func (i Int64) ToValue() Value
- type Int8
- func (i Int8) Add(other Value) (Int8, Value)
- func (i Int8) BitwiseAnd(other Value) (Int8, Value)
- func (i Int8) BitwiseAndNot(other Value) (Int8, Value)
- func (i Int8) BitwiseOr(other Value) (Int8, Value)
- func (i Int8) BitwiseXor(other Value) (Int8, Value)
- func (i Int8) Class() *Class
- func (i Int8) CompareVal(other Value) (Value, Value)
- func (Int8) DirectClass() *Class
- func (i Int8) Divide(other Value) (Int8, Value)
- func (i Int8) Equal(other Value) bool
- func (i Int8) EqualVal(other Value) Value
- func (i Int8) Error() string
- func (i Int8) ExponentiateVal(other Value) (Int8, Value)
- func (i Int8) GreaterThan(other Value) (bool, Value)
- func (i Int8) GreaterThanEqual(other Value) (bool, Value)
- func (i Int8) GreaterThanEqualVal(other Value) (Value, Value)
- func (i Int8) GreaterThanVal(other Value) (Value, Value)
- func (i Int8) Hash() UInt64
- func (i Int8) Inspect() string
- func (i Int8) InstanceVariables() *InstanceVariables
- func (i Int8) LessThan(other Value) (bool, Value)
- func (i Int8) LessThanEqual(other Value) (bool, Value)
- func (i Int8) LessThanEqualVal(other Value) (Value, Value)
- func (i Int8) LessThanVal(other Value) (Value, Value)
- func (i Int8) ModuloVal(other Value) (Int8, Value)
- func (i Int8) Multiply(other Value) (Int8, Value)
- func (Int8) SingletonClass() *Class
- func (i Int8) StrictEqualVal(other Value) Value
- func (i Int8) Subtract(other Value) (Int8, Value)
- func (i Int8) ToFloat() Float
- func (i Int8) ToFloat32() Float32
- func (i Int8) ToFloat64() Float64
- func (i Int8) ToInt16() Int16
- func (i Int8) ToInt32() Int32
- func (i Int8) ToInt64() Int64
- func (i Int8) ToSmallInt() SmallInt
- func (i Int8) ToString() String
- func (i Int8) ToUInt() UInt
- func (i Int8) ToUInt16() UInt16
- func (i Int8) ToUInt32() UInt32
- func (i Int8) ToUInt64() UInt64
- func (i Int8) ToUInt8() UInt8
- func (i Int8) ToValue() Value
- type Interface
- type InterfaceOption
- type IvarIndices
- func (*IvarIndices) Class() *Class
- func (n *IvarIndices) Copy() Reference
- func (*IvarIndices) DirectClass() *Class
- func (n *IvarIndices) Error() string
- func (n IvarIndices) GetIndex(name Symbol) int
- func (n IvarIndices) GetIndexOk(name Symbol) (int, bool)
- func (n IvarIndices) GetName(index int) Symbol
- func (n IvarIndices) GetNameOk(index int) (Symbol, bool)
- func (in *IvarIndices) Inspect() string
- func (*IvarIndices) InstanceVariables() *InstanceVariables
- func (in *IvarIndices) Length() int
- func (n IvarIndices) SetIndex(name Symbol, i int)
- func (*IvarIndices) SingletonClass() *Class
- func (n IvarIndices) ToGoSource() string
- type LeftOpenRange
- func (*LeftOpenRange) Class() *Class
- func (r *LeftOpenRange) Copy() Reference
- func (*LeftOpenRange) DirectClass() *Class
- func (r *LeftOpenRange) Error() string
- func (r *LeftOpenRange) Inspect() string
- func (r *LeftOpenRange) InstanceVariables() *InstanceVariables
- func (*LeftOpenRange) SingletonClass() *Class
- type LeftOpenRangeIterator
- func (*LeftOpenRangeIterator) Class() *Class
- func (r *LeftOpenRangeIterator) Copy() Reference
- func (*LeftOpenRangeIterator) DirectClass() *Class
- func (r *LeftOpenRangeIterator) Error() string
- func (r *LeftOpenRangeIterator) Inspect() string
- func (*LeftOpenRangeIterator) InstanceVariables() *InstanceVariables
- func (r *LeftOpenRangeIterator) Reset()
- func (*LeftOpenRangeIterator) SingletonClass() *Class
- type Location
- func (*Location) Class() *Class
- func (l *Location) Copy() Reference
- func (*Location) DirectClass() *Class
- func (l *Location) Equal(other *Location) bool
- func (l *Location) Error() string
- func (l *Location) Inspect() string
- func (*Location) InstanceVariables() *InstanceVariables
- func (*Location) SingletonClass() *Class
- func (l *Location) SpanValue() *Span
- type Method
- type MethodContainer
- func (m *MethodContainer) AttachMethod(name Symbol, method Method)
- func (m *MethodContainer) DefineAlias(newMethodName, oldMethodName Symbol)
- func (m *MethodContainer) DefineAliasString(newMethodName, oldMethodName string)
- func (m *MethodContainer) LookupMethod(name Symbol) Method
- func (m *MethodContainer) Superclass() *Class
- type MethodMap
- type Mixin
- type MixinOption
- type Module
- func (m *Module) Class() *Class
- func (m *Module) Copy() Reference
- func (m *Module) DirectClass() *Class
- func (m *Module) Error() string
- func (m *Module) Inspect() string
- func (m *Module) InstanceVariables() *InstanceVariables
- func (m *Module) SetDirectClass(class *Class)
- func (m *Module) SingletonClass() *Class
- type ModuleOption
- type Mutex
- func (*Mutex) Class() *Class
- func (m *Mutex) Copy() Reference
- func (*Mutex) DirectClass() *Class
- func (m *Mutex) Error() string
- func (m *Mutex) Inspect() string
- func (*Mutex) InstanceVariables() *InstanceVariables
- func (m *Mutex) Lock()
- func (*Mutex) SingletonClass() *Class
- func (m *Mutex) Unlock() (err Value)
- type Native
- type NativeIterator
- type NilType
- func (NilType) Class() *Class
- func (NilType) DirectClass() *Class
- func (n NilType) Error() string
- func (NilType) Hash() UInt64
- func (NilType) Inspect() string
- func (NilType) InstanceVariables() *InstanceVariables
- func (NilType) SingletonClass() *Class
- func (NilType) ToBigFloat() *BigFloat
- func (NilType) ToChar() Char
- func (NilType) ToFloat() Float
- func (NilType) ToFloat32() Float32
- func (NilType) ToFloat64() Float64
- func (NilType) ToInt() Value
- func (NilType) ToInt16() Int16
- func (NilType) ToInt32() Int32
- func (NilType) ToInt64() Int64
- func (NilType) ToInt8() Int8
- func (NilType) ToSmallInt() SmallInt
- func (NilType) ToString() String
- func (NilType) ToUInt16() UInt16
- func (NilType) ToUInt32() UInt32
- func (NilType) ToUInt64() UInt64
- func (NilType) ToUInt8() UInt8
- func (n NilType) ToValue() Value
- type Object
- func Errorf(class *Class, format string, a ...any) *Object
- func NewArgumentTypeError(argName, given, expected string) *Object
- func NewBigFloatPrecisionError(precision string) *Object
- func NewBitshiftOperandError(other Value) *Object
- func NewCantAccessInstanceVariablesOnPrimitiveError(value string) *Object
- func NewCantSetInstanceVariablesOnPrimitiveError(value string) *Object
- func NewCapacityTypeError(val string) *Object
- func NewCoerceError(target, other *Class) *Object
- func NewDuplicatedArgumentError(methodName, paramName string) *Object
- func NewError(class *Class, message string) *Object
- func NewIncompatibleDateFormatError(formatString, input string) *Object
- func NewIncompatibleDateTimeFormatError(formatString, input string) *Object
- func NewIncompatibleTemporalFormatError(kind, formatString, input string) *Object
- func NewIncompatibleTimeFormatError(formatString, input string) *Object
- func NewIndexOutOfRangeError(index string, length int) *Object
- func NewInvalidSuperclassError(superclass string) *Object
- func NewIsNotClassError(value string) *Object
- func NewIsNotClassOrMixinError(value string) *Object
- func NewIsNotMixinError(value string) *Object
- func NewModifierMismatchError(object, modifier string, with bool) *Object
- func NewNegativeCapacityError(capacity string) *Object
- func NewNegativeIndicesInCollectionLiteralsError(index string) *Object
- func NewNoMethodError(methodName string, receiver Value) *Object
- func NewObject(opts ...ObjectOption) *Object
- func NewOpenClosureError(closureVMID, VMID int64, closureInspect string) *Object
- func NewRedefinedConstantError(module, symbol string) *Object
- func NewRequiredArgumentMissingError(methodName, paramName string) *Object
- func NewSingletonError(given string) *Object
- func NewSuperclassMismatchError(class, wantSuperclass, gotSuperclass string) *Object
- func NewTooLargeCapacityError(capacity string) *Object
- func NewUnexpectedNilError() *Object
- func NewUnknownArgumentsError(method string, names []Symbol) *Object
- func NewWrongArgumentCountError(method string, given, expected int) *Object
- func NewWrongArgumentCountRangeError(method string, given, expectedFrom, expectedTo int) *Object
- func NewWrongArgumentCountRestError(method string, given, expectedFrom int) *Object
- func NewWrongPositionalArgumentCountError(method string, given, expectedFrom int) *Object
- func NewZeroDivisionError() *Object
- func (o *Object) Class() *Class
- func (o *Object) Copy() Reference
- func (o *Object) DirectClass() *Class
- func (e *Object) Error() string
- func (o *Object) Inspect() string
- func (o *Object) InstanceVariables() *InstanceVariables
- func (e *Object) Message() Value
- func (e *Object) SetMessage(message Value)
- func (e *Object) SetMessageString(message string)
- func (o *Object) SingletonClass() *Class
- type ObjectOption
- type Once
- type OpenRange
- type OpenRangeIterator
- func (*OpenRangeIterator) Class() *Class
- func (r *OpenRangeIterator) Copy() Reference
- func (*OpenRangeIterator) DirectClass() *Class
- func (r *OpenRangeIterator) Error() string
- func (r *OpenRangeIterator) Inspect() string
- func (*OpenRangeIterator) InstanceVariables() *InstanceVariables
- func (r *OpenRangeIterator) Reset()
- func (*OpenRangeIterator) SingletonClass() *Class
- type Pair
- func (*Pair) Class() *Class
- func (p *Pair) Copy() Reference
- func (*Pair) DirectClass() *Class
- func (p *Pair) Error() string
- func (p *Pair) Get(index int) (Value, Value)
- func (p *Pair) Inspect() string
- func (*Pair) InstanceVariables() *InstanceVariables
- func (*Pair) Length() int
- func (p *Pair) Set(index int, val Value) Value
- func (*Pair) SingletonClass() *Class
- func (p *Pair) Subscript(key Value) (Value, Value)
- func (p *Pair) SubscriptSet(key, val Value) Value
- type PairIterator
- func (*PairIterator) Class() *Class
- func (l *PairIterator) Copy() Reference
- func (*PairIterator) DirectClass() *Class
- func (l *PairIterator) Error() string
- func (l *PairIterator) Inspect() string
- func (*PairIterator) InstanceVariables() *InstanceVariables
- func (l *PairIterator) Next() (Value, Value)
- func (*PairIterator) SingletonClass() *Class
- type Path
- func (p *Path) BackslashString() string
- func (p *Path) Base() string
- func (*Path) Class() *Class
- func (p *Path) Copy() Reference
- func (p *Path) Dir() *Path
- func (*Path) DirectClass() *Class
- func (p *Path) Equal(other *Path) bool
- func (p *Path) Error() string
- func (p *Path) Extension() string
- func (p *Path) Inspect() string
- func (*Path) InstanceVariables() *InstanceVariables
- func (p *Path) IsAbsolute() bool
- func (p *Path) IsLocal() bool
- func (p *Path) MatchesGlob(pattern string) (bool, error)
- func (p *Path) Normalize() *Path
- func (*Path) SingletonClass() *Class
- func (p *Path) SlashString() string
- func (p *Path) Split() []string
- func (p *Path) String() string
- func (p *Path) ToAbsolute() (*Path, error)
- func (p *Path) ToRelative(target *Path) (*Path, error)
- func (p *Path) VolumeName() string
- type Position
- func (*Position) Class() *Class
- func (p *Position) Copy() Reference
- func (*Position) DirectClass() *Class
- func (p *Position) Equal(other *Position) bool
- func (p *Position) Error() string
- func (p *Position) Inspect() string
- func (*Position) InstanceVariables() *InstanceVariables
- func (p *Position) SimpleInspect() string
- func (*Position) SingletonClass() *Class
- type ROMutex
- func (*ROMutex) Class() *Class
- func (m *ROMutex) Copy() Reference
- func (*ROMutex) DirectClass() *Class
- func (m *ROMutex) Error() string
- func (m *ROMutex) Inspect() string
- func (*ROMutex) InstanceVariables() *InstanceVariables
- func (m *ROMutex) Lock()
- func (*ROMutex) SingletonClass() *Class
- func (m *ROMutex) Unlock() (err Value)
- type RWMutex
- func (*RWMutex) Class() *Class
- func (m *RWMutex) Copy() Reference
- func (*RWMutex) DirectClass() *Class
- func (m *RWMutex) Error() string
- func (m *RWMutex) Inspect() string
- func (*RWMutex) InstanceVariables() *InstanceVariables
- func (m *RWMutex) Lock()
- func (m *RWMutex) ReadLock()
- func (m *RWMutex) ReadUnlock() (err Value)
- func (*RWMutex) SingletonClass() *Class
- func (m *RWMutex) Unlock() (err Value)
- type Reference
- type Regex
- func (*Regex) Class() *Class
- func (r *Regex) ConcatVal(other Value) (Value, Value)
- func (r *Regex) Copy() Reference
- func (*Regex) DirectClass() *Class
- func (r *Regex) Equal(other Value) Value
- func (r *Regex) Error() string
- func (r *Regex) Hash() UInt64
- func (r *Regex) Inspect() string
- func (r *Regex) InstanceVariables() *InstanceVariables
- func (r *Regex) LaxEqualVal(other Value) Value
- func (r *Regex) Matches(other Value) (Value, Value)
- func (r *Regex) MatchesString(other string) bool
- func (r *Regex) RepeatVal(other Value) (Value, Value)
- func (*Regex) SingletonClass() *Class
- func (r *Regex) String() string
- func (r *Regex) ToString() String
- func (r *Regex) ToStringWithFlags() String
- func (r *Regex) WriteSourceTo(w io.StringWriter)
- type Result
- func (*Result) Class() *Class
- func (r *Result) Copy() Reference
- func (*Result) DirectClass() *Class
- func (r *Result) Err() Value
- func (r *Result) Error() string
- func (r *Result) Get() (value, err Value)
- func (r *Result) Inspect() string
- func (*Result) InstanceVariables() *InstanceVariables
- func (r *Result) Ok() bool
- func (*Result) SingletonClass() *Class
- func (r *Result) Value() Value
- type RightOpenRange
- func (*RightOpenRange) Class() *Class
- func (r *RightOpenRange) Copy() Reference
- func (*RightOpenRange) DirectClass() *Class
- func (r *RightOpenRange) Error() string
- func (r *RightOpenRange) Inspect() string
- func (r *RightOpenRange) InstanceVariables() *InstanceVariables
- func (*RightOpenRange) SingletonClass() *Class
- type RightOpenRangeIterator
- func (*RightOpenRangeIterator) Class() *Class
- func (r *RightOpenRangeIterator) Copy() Reference
- func (*RightOpenRangeIterator) DirectClass() *Class
- func (r *RightOpenRangeIterator) Error() string
- func (r *RightOpenRangeIterator) Inspect() string
- func (*RightOpenRangeIterator) InstanceVariables() *InstanceVariables
- func (r *RightOpenRangeIterator) Reset()
- func (*RightOpenRangeIterator) SingletonClass() *Class
- type SimpleInt
- type SingedInt
- type SmallInt
- func (i SmallInt) AddBigFloat(other *BigFloat) *BigFloat
- func (i SmallInt) AddBigInt(other *BigInt) Value
- func (i SmallInt) AddFloat(other Float) Float
- func (a SmallInt) AddOverflow(b SmallInt) (result SmallInt, ok bool)
- func (i SmallInt) AddSmallInt(other SmallInt) Value
- func (i SmallInt) AddVal(other Value) (Value, Value)
- func (i SmallInt) BitwiseAndNotVal(other Value) (Value, Value)
- func (i SmallInt) BitwiseAndVal(other Value) (Value, Value)
- func (i SmallInt) BitwiseNot() SmallInt
- func (i SmallInt) BitwiseOrVal(other Value) (Value, Value)
- func (i SmallInt) BitwiseXorVal(other Value) (Value, Value)
- func (i SmallInt) Centuries() DateSpan
- func (SmallInt) Class() *Class
- func (x SmallInt) Cmp(y SmallInt) int
- func (i SmallInt) CompareVal(other Value) (Value, Value)
- func (i SmallInt) Days() DateSpan
- func (i SmallInt) Decrement() Value
- func (SmallInt) DirectClass() *Class
- func (i SmallInt) DivideBigFloat(other *BigFloat) *BigFloat
- func (i SmallInt) DivideBigInt(other *BigInt) (Value, Value)
- func (i SmallInt) DivideFloat(other Float) Float
- func (a SmallInt) DivideOverflow(b SmallInt) (result SmallInt, ok bool)
- func (i SmallInt) DivideSmallInt(other SmallInt) (Value, Value)
- func (i SmallInt) DivideVal(other Value) (Value, Value)
- func (i SmallInt) Equal(other Value) bool
- func (i SmallInt) EqualVal(other Value) Value
- func (i SmallInt) Error() string
- func (i SmallInt) ExponentiateBigFloat(other *BigFloat) *BigFloat
- func (i SmallInt) ExponentiateBigInt(other *BigInt) Value
- func (i SmallInt) ExponentiateFloat(other Float) Float
- func (i SmallInt) ExponentiateSmallInt(other SmallInt) Value
- func (i SmallInt) ExponentiateVal(other Value) (Value, Value)
- func (i SmallInt) GreaterThan(other Value) (bool, Value)
- func (i SmallInt) GreaterThanEqual(other Value) (bool, Value)
- func (i SmallInt) GreaterThanEqualVal(other Value) (Value, Value)
- func (i SmallInt) GreaterThanVal(other Value) (Value, Value)
- func (i SmallInt) Hash() UInt64
- func (i SmallInt) Hours() TimeSpan
- func (i SmallInt) Increment() Value
- func (i SmallInt) Inspect() string
- func (i SmallInt) InstanceVariables() *InstanceVariables
- func (i SmallInt) IsEven() bool
- func (i SmallInt) IsOdd() bool
- func (i SmallInt) LaxEqualVal(other Value) Value
- func (i SmallInt) LeftBitshiftVal(other Value) (Value, Value)
- func (i SmallInt) LessThan(other Value) (bool, Value)
- func (i SmallInt) LessThanEqual(other Value) (bool, Value)
- func (i SmallInt) LessThanEqualVal(other Value) (Value, Value)
- func (i SmallInt) LessThanVal(other Value) (Value, Value)
- func (i SmallInt) Microseconds() TimeSpan
- func (i SmallInt) Millenia() DateSpan
- func (i SmallInt) Milliseconds() TimeSpan
- func (i SmallInt) Minutes() TimeSpan
- func (i SmallInt) ModuloVal(other Value) (Value, Value)
- func (i SmallInt) Months() DateSpan
- func (i SmallInt) MultiplyBigFloat(other *BigFloat) *BigFloat
- func (i SmallInt) MultiplyBigInt(other *BigInt) Value
- func (i SmallInt) MultiplyFloat(other Float) Float
- func (a SmallInt) MultiplyOverflow(b SmallInt) (result SmallInt, ok bool)
- func (i SmallInt) MultiplySmallInt(other SmallInt) Value
- func (i SmallInt) MultiplyVal(other Value) (Value, Value)
- func (i SmallInt) Nanoseconds() TimeSpan
- func (i SmallInt) NegateVal() Value
- func (i SmallInt) RightBitshiftVal(other Value) (Value, Value)
- func (i SmallInt) Seconds() TimeSpan
- func (SmallInt) SingletonClass() *Class
- func (i SmallInt) StrictEqualBool(other Value) bool
- func (i SmallInt) StrictEqualVal(other Value) Value
- func (i SmallInt) SubtractBigFloat(other *BigFloat) *BigFloat
- func (i SmallInt) SubtractBigInt(other *BigInt) Value
- func (i SmallInt) SubtractFloat(other Float) Float
- func (a SmallInt) SubtractOverflow(b SmallInt) (result SmallInt, ok bool)
- func (i SmallInt) SubtractSmallInt(other SmallInt) Value
- func (i SmallInt) SubtractVal(other Value) (Value, Value)
- func (i SmallInt) ToFloat() Float
- func (i SmallInt) ToFloat32() Float32
- func (i SmallInt) ToFloat64() Float64
- func (i SmallInt) ToInt16() Int16
- func (i SmallInt) ToInt32() Int32
- func (i SmallInt) ToInt64() Int64
- func (i SmallInt) ToInt8() Int8
- func (i SmallInt) ToString() String
- func (i SmallInt) ToUInt16() UInt16
- func (i SmallInt) ToUInt32() UInt32
- func (i SmallInt) ToUInt64() UInt64
- func (i SmallInt) ToUInt8() UInt8
- func (i SmallInt) ToValue() Value
- func (i SmallInt) Weeks() DateSpan
- func (i SmallInt) Years() DateSpan
- type SmallIntIterator
- func (*SmallIntIterator) Class() *Class
- func (l *SmallIntIterator) Copy() Reference
- func (*SmallIntIterator) DirectClass() *Class
- func (l *SmallIntIterator) Error() string
- func (l *SmallIntIterator) Inspect() string
- func (*SmallIntIterator) InstanceVariables() *InstanceVariables
- func (l *SmallIntIterator) Next() (Value, Value)
- func (l *SmallIntIterator) Reset()
- func (*SmallIntIterator) SingletonClass() *Class
- type Span
- func (*Span) Class() *Class
- func (s *Span) Copy() Reference
- func (*Span) DirectClass() *Class
- func (s *Span) EndPosition() *Position
- func (s *Span) Equal(other *Span) bool
- func (s *Span) Error() string
- func (s *Span) Inspect() string
- func (*Span) InstanceVariables() *InstanceVariables
- func (*Span) SingletonClass() *Class
- func (s *Span) StartPosition() *Position
- type StackTrace
- func (*StackTrace) Class() *Class
- func (s *StackTrace) Copy() Reference
- func (*StackTrace) DirectClass() *Class
- func (s *StackTrace) Error() string
- func (s *StackTrace) Get(i int) (*CallFrame, Value)
- func (s *StackTrace) Inspect() string
- func (*StackTrace) InstanceVariables() *InstanceVariables
- func (s *StackTrace) Length() int
- func (*StackTrace) SingletonClass() *Class
- func (s *StackTrace) String() string
- type StackTraceIterator
- func (*StackTraceIterator) Class() *Class
- func (s *StackTraceIterator) Copy() Reference
- func (*StackTraceIterator) DirectClass() *Class
- func (s *StackTraceIterator) Error() string
- func (s *StackTraceIterator) Inspect() string
- func (*StackTraceIterator) InstanceVariables() *InstanceVariables
- func (s *StackTraceIterator) Next() (Value, Value)
- func (s *StackTraceIterator) Reset()
- func (*StackTraceIterator) SingletonClass() *Class
- type StrictFloat
- type StrictInt
- type StrictNumeric
- type StrictSignedInt
- type StrictUnsignedInt
- type String
- func (s String) ByteAt(key Value) (UInt8, Value)
- func (s String) ByteAtInt(index int) (UInt8, Value)
- func (s String) ByteCount() int
- func (s String) CharCount() int
- func (s String) Class() *Class
- func (x String) Cmp(y String) int
- func (s String) CompareVal(other Value) (Value, Value)
- func (s String) Concat(other Value) (result String, err Value)
- func (s String) Copy() Reference
- func (String) DirectClass() *Class
- func (s String) Equal(other Value) bool
- func (s String) EqualVal(other Value) Value
- func (s String) Error() string
- func (s String) Get(index int) (Char, Value)
- func (s String) GraphemeAt(key Value) (String, Value)
- func (s String) GraphemeAtInt(index int) (String, Value)
- func (s String) GraphemeCount() int
- func (s String) GreaterThan(other Value) (bool, Value)
- func (s String) GreaterThanEqual(other Value) (bool, Value)
- func (s String) GreaterThanEqualVal(other Value) (Value, Value)
- func (s String) GreaterThanVal(other Value) (Value, Value)
- func (s String) Hash() UInt64
- func (s String) Inspect() string
- func (s String) InstanceVariables() *InstanceVariables
- func (s String) IsEmpty() bool
- func (s String) LJust(targetLen int, padding Char) String
- func (s String) LaxEqualBool(other Value) bool
- func (s String) LaxEqualVal(other Value) Value
- func (s String) LessThan(other Value) (bool, Value)
- func (s String) LessThanEqual(other Value) (bool, Value)
- func (s String) LessThanEqualVal(other Value) (Value, Value)
- func (s String) LessThanVal(other Value) (Value, Value)
- func (s String) Lowercase() String
- func (s String) RJust(targetLen int, padding Char) String
- func (s String) RemoveSuffix(other Value) (String, Value)
- func (s String) Repeat(other Value) (result String, err Value)
- func (s String) ReverseBytes() String
- func (s String) ReverseChars() String
- func (s String) ReverseGraphemes() String
- func (String) SingletonClass() *Class
- func (s String) StrictEqualVal(other Value) Value
- func (s String) String() string
- func (s String) Subscript(key Value) (Char, Value)
- func (s String) ToChar() (Char, bool)
- func (s String) ToInt(base int) (Value, Value)
- func (s String) ToSymbol() Symbol
- func (s String) Uppercase() String
- type StringByteIterator
- func (*StringByteIterator) Class() *Class
- func (s *StringByteIterator) Copy() Reference
- func (*StringByteIterator) DirectClass() *Class
- func (s *StringByteIterator) Error() string
- func (s *StringByteIterator) Inspect() string
- func (*StringByteIterator) InstanceVariables() *InstanceVariables
- func (s *StringByteIterator) Next() (Value, Value)
- func (s *StringByteIterator) Reset()
- func (*StringByteIterator) SingletonClass() *Class
- type StringCharIterator
- func (*StringCharIterator) Class() *Class
- func (s *StringCharIterator) Copy() Reference
- func (*StringCharIterator) DirectClass() *Class
- func (s *StringCharIterator) Error() string
- func (s *StringCharIterator) Inspect() string
- func (*StringCharIterator) InstanceVariables() *InstanceVariables
- func (s *StringCharIterator) Next() (Value, Value)
- func (s *StringCharIterator) Reset()
- func (*StringCharIterator) SingletonClass() *Class
- type StringGraphemeIterator
- func (*StringGraphemeIterator) Class() *Class
- func (s *StringGraphemeIterator) Copy() Reference
- func (*StringGraphemeIterator) DirectClass() *Class
- func (s *StringGraphemeIterator) Error() string
- func (s *StringGraphemeIterator) Inspect() string
- func (*StringGraphemeIterator) InstanceVariables() *InstanceVariables
- func (s *StringGraphemeIterator) Next() (Value, Value)
- func (s *StringGraphemeIterator) Reset()
- func (*StringGraphemeIterator) SingletonClass() *Class
- type Symbol
- func (Symbol) Class() *Class
- func (Symbol) DirectClass() *Class
- func (s Symbol) Equal(other Value) bool
- func (s Symbol) EqualVal(other Value) Value
- func (s Symbol) Error() string
- func (s Symbol) Hash() UInt64
- func (s Symbol) Inspect() string
- func (s Symbol) InspectContent() string
- func (s Symbol) InstanceVariables() *InstanceVariables
- func (s Symbol) LaxEqualVal(other Value) Value
- func (Symbol) SingletonClass() *Class
- func (s Symbol) StrictEqualVal(other Value) Value
- func (s Symbol) String() string
- func (s Symbol) ToString() String
- func (s Symbol) ToValue() Value
- type SymbolMap
- func (SymbolMap) Class() *Class
- func (s SymbolMap) Copy() Reference
- func (s SymbolMap) Delete(key Symbol)
- func (s SymbolMap) DeleteString(key string)
- func (SymbolMap) DirectClass() *Class
- func (s SymbolMap) Error() string
- func (s SymbolMap) Get(key Symbol) Value
- func (s SymbolMap) GetString(key string) (val Value)
- func (s SymbolMap) Has(key Symbol) bool
- func (s SymbolMap) HasString(key string) bool
- func (s SymbolMap) Inspect() string
- func (s SymbolMap) InstanceVariables() *InstanceVariables
- func (s SymbolMap) Set(key Symbol, val Value)
- func (s SymbolMap) SetString(key string, val Value)
- func (SymbolMap) SingletonClass() *Class
- type SymbolTableOption
- type SymbolTableStruct
- type SyncDiagnosticList
- func (dl *SyncDiagnosticList) Append(elements ...*Diagnostic)
- func (dl *SyncDiagnosticList) At(i int) *Diagnostic
- func (dl *SyncDiagnosticList) Capacity() int
- func (*SyncDiagnosticList) Class() *Class
- func (l *SyncDiagnosticList) Concat(other Value) (*ArrayList, Value)
- func (d *SyncDiagnosticList) Copy() Reference
- func (*SyncDiagnosticList) DirectClass() *Class
- func (d *SyncDiagnosticList) Error() string
- func (dl *SyncDiagnosticList) Get(index int) (Value, Value)
- func (dl *SyncDiagnosticList) Grow(newSlots int)
- func (d *SyncDiagnosticList) Inspect() string
- func (*SyncDiagnosticList) InstanceVariables() *InstanceVariables
- func (l *SyncDiagnosticList) LeftCapacity() int
- func (dl *SyncDiagnosticList) Length() int
- func (l *SyncDiagnosticList) Repeat(other Value) (*SyncDiagnosticList, Value)
- func (l *SyncDiagnosticList) Set(index int, val *Diagnostic) Value
- func (l *SyncDiagnosticList) SetAt(index int, val *Diagnostic)
- func (*SyncDiagnosticList) SingletonClass() *Class
- func (dl *SyncDiagnosticList) Subscript(key Value) (Value, Value)
- func (dl *SyncDiagnosticList) SubscriptSet(key Value, val *Diagnostic) Value
- type SyncDiagnosticListIterator
- func (*SyncDiagnosticListIterator) Class() *Class
- func (l *SyncDiagnosticListIterator) Copy() Reference
- func (*SyncDiagnosticListIterator) DirectClass() *Class
- func (l *SyncDiagnosticListIterator) Error() string
- func (l *SyncDiagnosticListIterator) Inspect() string
- func (*SyncDiagnosticListIterator) InstanceVariables() *InstanceVariables
- func (l *SyncDiagnosticListIterator) Next() (Value, Value)
- func (l *SyncDiagnosticListIterator) Reset()
- func (*SyncDiagnosticListIterator) SingletonClass() *Class
- type Time
- func (t Time) Add(val TimeSpan) Time
- func (t Time) AttosecondsInSecond() int64
- func (Time) Class() *Class
- func (t Time) Cmp(other Time) int
- func (t Time) Copy() Reference
- func (t Time) Diff(val Time) TimeSpan
- func (Time) DirectClass() *Class
- func (t Time) Equal(other Value) bool
- func (t Time) Error() string
- func (t Time) FemtosecondsInSecond() int64
- func (t Time) Format(formatString string) (_ string, err Value)
- func (t Time) GreaterThan(other Time) bool
- func (t Time) GreaterThanEqual(other Time) bool
- func (t Time) Hour() int
- func (t Time) Hour12() int
- func (t Time) Inspect() string
- func (Time) InstanceVariables() *InstanceVariables
- func (t Time) IsAM() bool
- func (t Time) IsPM() bool
- func (t Time) LessThan(other Time) bool
- func (t Time) LessThanEqual(other Time) bool
- func (t Time) Meridiem() string
- func (t Time) MeridiemLowercase() string
- func (t Time) Microsecond() int
- func (t Time) MicrosecondsInSecond() int
- func (t Time) Millisecond() int
- func (t Time) MillisecondsInSecond() int
- func (t Time) Minute() int
- func (t Time) MustFormat(formatString string) string
- func (t Time) Nanosecond() int
- func (t Time) NanosecondsInSecond() int
- func (t Time) Normalise() Time
- func (t Time) PicosecondsInSecond() int64
- func (t Time) Second() int
- func (Time) SingletonClass() *Class
- func (t Time) String() string
- func (t Time) Subtract(val Value) (Value, Value)
- func (t Time) SubtractTimeSpan(val TimeSpan) Time
- func (t Time) ToDateTime() *DateTime
- func (t Time) ToDateTimeValue() DateTime
- func (t Time) ToString() String
- func (t Time) ToTimeSpan() TimeSpan
- func (t Time) ToValue() Value
- func (t Time) YoctosecondsInSecond() *BigInt
- func (t Time) ZeptosecondsInSecond() *BigInt
- type TimeSpan
- func (t TimeSpan) Add(other Value) (Value, Value)
- func (t TimeSpan) AddDateSpan(other DateSpan) *DateTimeSpan
- func (t TimeSpan) AddDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
- func (t TimeSpan) AddTimeSpan(other TimeSpan) TimeSpan
- func (TimeSpan) Class() *Class
- func (t TimeSpan) Cmp(other TimeSpan) int
- func (t TimeSpan) Copy() Reference
- func (t TimeSpan) Days() int
- func (TimeSpan) DirectClass() *Class
- func (t TimeSpan) Divide(other Value) (TimeSpan, Value)
- func (t TimeSpan) DivideBigFloat(other *BigFloat) (TimeSpan, Value)
- func (t TimeSpan) DivideBigInt(other *BigInt) (TimeSpan, Value)
- func (t TimeSpan) DivideFloat(other Float) (TimeSpan, Value)
- func (t TimeSpan) DivideInt(other Value) (TimeSpan, Value)
- func (t TimeSpan) DivideSmallInt(other SmallInt) (TimeSpan, Value)
- func (t TimeSpan) Equal(other Value) bool
- func (t TimeSpan) Error() string
- func (t TimeSpan) Go() time.Duration
- func (t TimeSpan) GreaterThan(other TimeSpan) bool
- func (t TimeSpan) GreaterThanEqual(other TimeSpan) bool
- func (t TimeSpan) Hours() int
- func (t TimeSpan) InDays() Float
- func (t TimeSpan) InHours() Float
- func (t TimeSpan) InMicroseconds() Float
- func (t TimeSpan) InMilliseconds() Float
- func (t TimeSpan) InMinutes() Float
- func (t TimeSpan) InMonths() Float
- func (t TimeSpan) InNanoseconds() Float
- func (t TimeSpan) InSeconds() Float
- func (t TimeSpan) InWeeks() Float
- func (t TimeSpan) InYears() Float
- func (t TimeSpan) Inspect() string
- func (TimeSpan) InstanceVariables() *InstanceVariables
- func (t TimeSpan) LessThan(other TimeSpan) bool
- func (t TimeSpan) LessThanEqual(other TimeSpan) bool
- func (t TimeSpan) Microseconds() int
- func (t TimeSpan) Milliseconds() int
- func (t TimeSpan) Minutes() int
- func (t TimeSpan) Months() int
- func (t TimeSpan) Multiply(other Value) (TimeSpan, Value)
- func (t TimeSpan) MultiplyBigFloat(other *BigFloat) TimeSpan
- func (t TimeSpan) MultiplyBigInt(other *BigInt) TimeSpan
- func (t TimeSpan) MultiplyFloat(other Float) TimeSpan
- func (t TimeSpan) MultiplyInt(other Value) TimeSpan
- func (t TimeSpan) MultiplySmallInt(other SmallInt) TimeSpan
- func (t TimeSpan) Nanoseconds() int
- func (t TimeSpan) Seconds() int
- func (TimeSpan) SingletonClass() *Class
- func (t TimeSpan) String() string
- func (t TimeSpan) Subtract(other Value) (Value, Value)
- func (t TimeSpan) SubtractDateSpan(other DateSpan) *DateTimeSpan
- func (t TimeSpan) SubtractDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
- func (t TimeSpan) SubtractTimeSpan(other TimeSpan) TimeSpan
- func (t TimeSpan) ToDateTimeSpan() *DateTimeSpan
- func (t TimeSpan) ToString() String
- func (t TimeSpan) ToTime() Time
- func (t TimeSpan) ToValue() Value
- func (t TimeSpan) TotalDays() Value
- func (t TimeSpan) TotalHours() Value
- func (t TimeSpan) TotalMicroseconds() Value
- func (t TimeSpan) TotalMilliseconds() Value
- func (t TimeSpan) TotalMinutes() Value
- func (t TimeSpan) TotalMonths() Value
- func (t TimeSpan) TotalNanoseconds() Value
- func (t TimeSpan) TotalSeconds() Value
- func (t TimeSpan) TotalWeeks() Value
- func (t TimeSpan) TotalYears() Value
- type Timezone
- func (*Timezone) Class() *Class
- func (t *Timezone) Copy() Reference
- func (t *Timezone) DSTOffset() TimeSpan
- func (*Timezone) DirectClass() *Class
- func (t *Timezone) Equal(other Value) bool
- func (t *Timezone) Error() string
- func (t *Timezone) Inspect() string
- func (t *Timezone) InstanceVariables() *InstanceVariables
- func (t *Timezone) IsLocal() bool
- func (t *Timezone) IsUTC() bool
- func (t *Timezone) Name() string
- func (t *Timezone) Offsets() (TimeSpan, TimeSpan)
- func (*Timezone) SingletonClass() *Class
- func (t *Timezone) StandardOffset() TimeSpan
- func (t *Timezone) ToGoLocation() *time.Location
- type ToValuer
- type TrueType
- type UInt
- func (i UInt) Add(other Value) (UInt, Value)
- func (i UInt) BitwiseAnd(other Value) (UInt, Value)
- func (i UInt) BitwiseAndNot(other Value) (UInt, Value)
- func (i UInt) BitwiseOr(other Value) (UInt, Value)
- func (i UInt) BitwiseXor(other Value) (UInt, Value)
- func (UInt) Class() *Class
- func (i UInt) CompareVal(other Value) (Value, Value)
- func (UInt) DirectClass() *Class
- func (i UInt) Divide(other Value) (UInt, Value)
- func (i UInt) Equal(other Value) bool
- func (i UInt) EqualVal(other Value) Value
- func (i UInt) Error() string
- func (i UInt) ExponentiateVal(other Value) (UInt, Value)
- func (i UInt) GreaterThan(other Value) (bool, Value)
- func (i UInt) GreaterThanEqual(other Value) (bool, Value)
- func (i UInt) GreaterThanEqualVal(other Value) (Value, Value)
- func (i UInt) GreaterThanVal(other Value) (Value, Value)
- func (i UInt) Hash() UInt64
- func (i UInt) Inspect() string
- func (i UInt) InstanceVariables() *InstanceVariables
- func (i UInt) LessThan(other Value) (bool, Value)
- func (i UInt) LessThanEqual(other Value) (bool, Value)
- func (i UInt) LessThanEqualVal(other Value) (Value, Value)
- func (i UInt) LessThanVal(other Value) (Value, Value)
- func (i UInt) ModuloVal(other Value) (UInt, Value)
- func (i UInt) Multiply(other Value) (UInt, Value)
- func (UInt) SingletonClass() *Class
- func (i UInt) StrictEqualVal(other Value) Value
- func (i UInt) Subtract(other Value) (UInt, Value)
- func (i UInt) ToFloat() Float
- func (i UInt) ToFloat32() Float32
- func (i UInt) ToFloat64() Float64
- func (i UInt) ToInt16() Int16
- func (i UInt) ToInt32() Int32
- func (i UInt) ToInt64() Int64
- func (i UInt) ToInt8() Int8
- func (i UInt) ToSmallInt() SmallInt
- func (i UInt) ToString() String
- func (i UInt) ToUInt16() UInt16
- func (i UInt) ToUInt32() UInt32
- func (i UInt) ToUInt64() UInt64
- func (i UInt) ToUInt8() UInt8
- func (i UInt) ToValue() Value
- type UInt16
- func (i UInt16) Add(other Value) (UInt16, Value)
- func (i UInt16) BitwiseAnd(other Value) (UInt16, Value)
- func (i UInt16) BitwiseAndNot(other Value) (UInt16, Value)
- func (i UInt16) BitwiseOr(other Value) (UInt16, Value)
- func (i UInt16) BitwiseXor(other Value) (UInt16, Value)
- func (UInt16) Class() *Class
- func (i UInt16) CompareVal(other Value) (Value, Value)
- func (UInt16) DirectClass() *Class
- func (i UInt16) Divide(other Value) (UInt16, Value)
- func (i UInt16) Equal(other Value) bool
- func (i UInt16) EqualVal(other Value) Value
- func (i UInt16) Error() string
- func (i UInt16) ExponentiateVal(other Value) (UInt16, Value)
- func (i UInt16) GreaterThan(other Value) (bool, Value)
- func (i UInt16) GreaterThanEqual(other Value) (bool, Value)
- func (i UInt16) GreaterThanEqualVal(other Value) (Value, Value)
- func (i UInt16) GreaterThanVal(other Value) (Value, Value)
- func (i UInt16) Hash() UInt64
- func (i UInt16) Inspect() string
- func (i UInt16) InstanceVariables() *InstanceVariables
- func (i UInt16) LessThan(other Value) (bool, Value)
- func (i UInt16) LessThanEqual(other Value) (bool, Value)
- func (i UInt16) LessThanEqualVal(other Value) (Value, Value)
- func (i UInt16) LessThanVal(other Value) (Value, Value)
- func (i UInt16) ModuloVal(other Value) (UInt16, Value)
- func (i UInt16) Multiply(other Value) (UInt16, Value)
- func (UInt16) SingletonClass() *Class
- func (i UInt16) StrictEqualVal(other Value) Value
- func (i UInt16) Subtract(other Value) (UInt16, Value)
- func (i UInt16) ToFloat() Float
- func (i UInt16) ToFloat32() Float32
- func (i UInt16) ToFloat64() Float64
- func (i UInt16) ToInt16() Int16
- func (i UInt16) ToInt32() Int32
- func (i UInt16) ToInt64() Int64
- func (i UInt16) ToInt8() Int8
- func (i UInt16) ToSmallInt() SmallInt
- func (i UInt16) ToString() String
- func (i UInt16) ToUInt() UInt
- func (i UInt16) ToUInt32() UInt32
- func (i UInt16) ToUInt64() UInt64
- func (i UInt16) ToUInt8() UInt8
- func (i UInt16) ToValue() Value
- type UInt32
- func (i UInt32) Add(other Value) (UInt32, Value)
- func (i UInt32) BitwiseAnd(other Value) (UInt32, Value)
- func (i UInt32) BitwiseAndNot(other Value) (UInt32, Value)
- func (i UInt32) BitwiseOr(other Value) (UInt32, Value)
- func (i UInt32) BitwiseXor(other Value) (UInt32, Value)
- func (UInt32) Class() *Class
- func (i UInt32) CompareVal(other Value) (Value, Value)
- func (UInt32) DirectClass() *Class
- func (i UInt32) Divide(other Value) (UInt32, Value)
- func (i UInt32) Equal(other Value) bool
- func (i UInt32) EqualVal(other Value) Value
- func (i UInt32) Error() string
- func (i UInt32) ExponentiateVal(other Value) (UInt32, Value)
- func (i UInt32) GreaterThan(other Value) (bool, Value)
- func (i UInt32) GreaterThanEqual(other Value) (bool, Value)
- func (i UInt32) GreaterThanEqualVal(other Value) (Value, Value)
- func (i UInt32) GreaterThanVal(other Value) (Value, Value)
- func (i UInt32) Hash() UInt64
- func (i UInt32) Inspect() string
- func (i UInt32) InstanceVariables() *InstanceVariables
- func (i UInt32) LessThan(other Value) (bool, Value)
- func (i UInt32) LessThanEqual(other Value) (bool, Value)
- func (i UInt32) LessThanEqualVal(other Value) (Value, Value)
- func (i UInt32) LessThanVal(other Value) (Value, Value)
- func (i UInt32) ModuloVal(other Value) (UInt32, Value)
- func (i UInt32) Multiply(other Value) (UInt32, Value)
- func (UInt32) SingletonClass() *Class
- func (i UInt32) StrictEqualVal(other Value) Value
- func (i UInt32) Subtract(other Value) (UInt32, Value)
- func (i UInt32) ToFloat() Float
- func (i UInt32) ToFloat32() Float32
- func (i UInt32) ToFloat64() Float64
- func (i UInt32) ToInt16() Int16
- func (i UInt32) ToInt32() Int32
- func (i UInt32) ToInt64() Int64
- func (i UInt32) ToInt8() Int8
- func (i UInt32) ToSmallInt() SmallInt
- func (i UInt32) ToString() String
- func (i UInt32) ToUInt() UInt
- func (i UInt32) ToUInt16() UInt16
- func (i UInt32) ToUInt64() UInt64
- func (i UInt32) ToUInt8() UInt8
- func (i UInt32) ToValue() Value
- type UInt64
- func (i UInt64) Add(other Value) (UInt64, Value)
- func (i UInt64) BitwiseAnd(other Value) (UInt64, Value)
- func (i UInt64) BitwiseAndNot(other Value) (UInt64, Value)
- func (i UInt64) BitwiseOr(other Value) (UInt64, Value)
- func (i UInt64) BitwiseXor(other Value) (UInt64, Value)
- func (UInt64) Class() *Class
- func (i UInt64) CompareVal(other Value) (Value, Value)
- func (i UInt64) Copy() Reference
- func (UInt64) DirectClass() *Class
- func (i UInt64) Divide(other Value) (UInt64, Value)
- func (i UInt64) Equal(other Value) bool
- func (i UInt64) EqualVal(other Value) Value
- func (i UInt64) Error() string
- func (i UInt64) ExponentiateVal(other Value) (UInt64, Value)
- func (i UInt64) GreaterThan(other Value) (bool, Value)
- func (i UInt64) GreaterThanEqual(other Value) (bool, Value)
- func (i UInt64) GreaterThanEqualVal(other Value) (Value, Value)
- func (i UInt64) GreaterThanVal(other Value) (Value, Value)
- func (i UInt64) Hash() UInt64
- func (i UInt64) Inspect() string
- func (i UInt64) InstanceVariables() *InstanceVariables
- func (i UInt64) LessThan(other Value) (bool, Value)
- func (i UInt64) LessThanEqual(other Value) (bool, Value)
- func (i UInt64) LessThanEqualVal(other Value) (Value, Value)
- func (i UInt64) LessThanVal(other Value) (Value, Value)
- func (i UInt64) ModuloVal(other Value) (UInt64, Value)
- func (i UInt64) Multiply(other Value) (UInt64, Value)
- func (UInt64) SingletonClass() *Class
- func (i UInt64) StrictEqualVal(other Value) Value
- func (i UInt64) Subtract(other Value) (UInt64, Value)
- func (i UInt64) ToFloat() Float
- func (i UInt64) ToFloat32() Float32
- func (i UInt64) ToFloat64() Float64
- func (i UInt64) ToInt16() Int16
- func (i UInt64) ToInt32() Int32
- func (i UInt64) ToInt64() Int64
- func (i UInt64) ToInt8() Int8
- func (i UInt64) ToSmallInt() SmallInt
- func (i UInt64) ToString() String
- func (i UInt64) ToUInt() UInt
- func (i UInt64) ToUInt16() UInt16
- func (i UInt64) ToUInt32() UInt32
- func (i UInt64) ToUInt8() UInt8
- func (i UInt64) ToValue() Value
- type UInt8
- func (i UInt8) Add(other Value) (UInt8, Value)
- func (i UInt8) BitwiseAnd(other Value) (UInt8, Value)
- func (i UInt8) BitwiseAndNot(other Value) (UInt8, Value)
- func (i UInt8) BitwiseOr(other Value) (UInt8, Value)
- func (i UInt8) BitwiseXor(other Value) (UInt8, Value)
- func (UInt8) Class() *Class
- func (i UInt8) CompareVal(other Value) (Value, Value)
- func (UInt8) DirectClass() *Class
- func (i UInt8) Divide(other Value) (UInt8, Value)
- func (i UInt8) Equal(other Value) bool
- func (i UInt8) EqualVal(other Value) Value
- func (i UInt8) Error() string
- func (i UInt8) ExponentiateVal(other Value) (UInt8, Value)
- func (i UInt8) GreaterThan(other Value) (bool, Value)
- func (i UInt8) GreaterThanEqual(other Value) (bool, Value)
- func (i UInt8) GreaterThanEqualVal(other Value) (Value, Value)
- func (i UInt8) GreaterThanVal(other Value) (Value, Value)
- func (i UInt8) Hash() UInt64
- func (i UInt8) Inspect() string
- func (i UInt8) InstanceVariables() *InstanceVariables
- func (i UInt8) LessThan(other Value) (bool, Value)
- func (i UInt8) LessThanEqual(other Value) (bool, Value)
- func (i UInt8) LessThanEqualVal(other Value) (Value, Value)
- func (i UInt8) LessThanVal(other Value) (Value, Value)
- func (i UInt8) ModuloVal(other Value) (UInt8, Value)
- func (i UInt8) Multiply(other Value) (UInt8, Value)
- func (UInt8) SingletonClass() *Class
- func (i UInt8) StrictEqualVal(other Value) Value
- func (i UInt8) Subtract(other Value) (UInt8, Value)
- func (i UInt8) ToFloat() Float
- func (i UInt8) ToFloat32() Float32
- func (i UInt8) ToFloat64() Float64
- func (i UInt8) ToInt16() Int16
- func (i UInt8) ToInt32() Int32
- func (i UInt8) ToInt64() Int64
- func (i UInt8) ToInt8() Int8
- func (i UInt8) ToSmallInt() SmallInt
- func (i UInt8) ToString() String
- func (i UInt8) ToUInt() UInt
- func (i UInt8) ToUInt16() UInt16
- func (i UInt8) ToUInt32() UInt32
- func (i UInt8) ToUInt64() UInt64
- func (i UInt8) ToValue() Value
- type UndefinedType
- type UnsignedInt
- type Value
- func AddVal(left, right Value) (result, err Value)
- func ArrayListConstructor(class *Class) Value
- func ArrayTupleConstructor(class *Class) Value
- func BitwiseAndNotVal(left, right Value) (result, err Value)
- func BitwiseAndVal(left, right Value) (result, err Value)
- func BitwiseNotVal(operand Value) Value
- func BitwiseOrVal(left, right Value) (result, err Value)
- func BitwiseXorVal(left, right Value) (result, err Value)
- func BoxConstructor(class *Class) Value
- func ClassConstructor(metaClass *Class) Value
- func CompareVal(left, right Value) (result, err Value)
- func DecrementVal(operand Value) Value
- func DiagnosticConstructor(class *Class) Value
- func DiagnosticListConstructor(class *Class) Value
- func DivideVal(left, right Value) (result, err Value)
- func EqualVal(left, right Value) Value
- func ExponentiateVal(left, right Value) (result, err Value)
- func GetConstant(name Symbol) Value
- func GetFromSlice[V any](collection *[]V, index int) (ret V, err Value)
- func GetInstanceVariableByName(object Value, name Symbol) (val, err Value)
- func GreaterThan(left, right Value) (result bool, err Value)
- func GreaterThanEqual(left, right Value) (result bool, err Value)
- func GreaterThanEqualVal(left, right Value) (result, err Value)
- func GreaterThanVal(left, right Value) (result, err Value)
- func HashMapConstructor(class *Class) Value
- func HashRecordConstructor(class *Class) Value
- func ImmutableBoxConstructor(class *Class) Value
- func IncrementVal(operand Value) Value
- func InterfaceConstructor(class *Class) Value
- func Iter(val Value) Value
- func LaxEqualVal(left, right Value) Value
- func LaxNotEqualVal(left, right Value) Value
- func LeftBitshiftVal(left, right Value) (result, err Value)
- func LessThan(left, right Value) (result bool, err Value)
- func LessThanEqual(left, right Value) (result bool, err Value)
- func LessThanEqualVal(left, right Value) (result, err Value)
- func LessThanVal(left, right Value) (result, err Value)
- func LocationConstructor(class *Class) Value
- func LogicalLeftBitshiftVal(left, right Value) (result, err Value)
- func LogicalRightBitshiftVal(left, right Value) (result, err Value)
- func MakeSentinelValue() Value
- func MixinConstructor(class *Class) Value
- func ModuleConstructor(class *Class) Value
- func ModuloVal(left, right Value) (result, err Value)
- func MultiplyVal(left, right Value) (result, err Value)
- func MustParseInt(s string, base int) Value
- func MutexConstructor(class *Class) Value
- func NegateInt(val Value) Value
- func NegateVal(operand Value) Value
- func Next(val Value) (result, err Value)
- func NormalizeArrayIndex(index, length int) (int, Value)
- func NotEqualVal(left, right Value) Value
- func ObjectConstructor(class *Class) Value
- func OnceConstructor(class *Class) Value
- func PairConstructor(class *Class) Value
- func PositionConstructor(class *Class) Value
- func ROMutexConstructor(class *Class) Value
- func RWMutexConstructor(class *Class) Value
- func Ref(ref Reference) Value
- func RightBitshiftVal(left, right Value) (result, err Value)
- func SetInSlice[V any](collection *[]V, index int, val V) (err Value)
- func SetInstanceVariableByName(object Value, name Symbol, val Value) (err Value)
- func SpanConstructor(class *Class) Value
- func StrictEqualVal(left, right Value) Value
- func StrictFloatLaxEqual[T StrictFloat](left T, right Value) Value
- func StrictIntLeftBitshift[T StrictInt](left T, right Value) (T, Value)
- func StrictIntLogicalLeftBitshift[T StrictInt](left T, right Value, shiftFunc logicalShiftFunc[T]) (T, Value)
- func StrictIntLogicalRightBitshift[T StrictInt](left T, right Value, shiftFunc logicalShiftFunc[T]) (T, Value)
- func StrictIntRightBitshift[T StrictInt](left T, right Value) (T, Value)
- func StrictNotEqualVal(left, right Value) Value
- func StrictParseInt(s string, base int, bitSize int) (int64, Value)
- func StrictParseIntWithErr(s string, base int, bitSize int, formatErr *Class) (int64, Value)
- func StrictParseUint(s string, base int, bitSize int) (uint64, Value)
- func StrictParseUintWithErr(s string, base int, bitSize int, formatErr *Class) (uint64, Value)
- func StrictSignedIntLaxEqual[T StrictSignedInt](left T, right Value) Value
- func StrictUnsignedIntLaxEqual[T StrictUnsignedInt](left T, right Value) Value
- func SubscriptSet(collection, key, val Value) (err Value)
- func SubscriptVal(collection, key Value) (result, err Value)
- func SubtractVal(left, right Value) (result, err Value)
- func SyncDiagnosticListConstructor(class *Class) Value
- func ToBool(val Value) Value
- func ToElkBool(val bool) Value
- func ToElkInt(i int64) Value
- func ToNotBool(val Value) Value
- func UnaryPlusVal(operand Value) Value
- func UndefinedConstructor(class *Class) Value
- func WaitGroupConstructor(class *Class) Value
- func (v Value) AsAnyInt() int
- func (v Value) AsBigInt() *BigInt
- func (v Value) AsChar() Char
- func (v Value) AsDate() Date
- func (v Value) AsDateSpan() DateSpan
- func (v Value) AsDateSpanOk() (DateSpan, bool)
- func (v Value) AsFalse() FalseType
- func (v Value) AsFloat() Float
- func (v Value) AsFloat32() Float32
- func (v Value) AsFloat64() Float64
- func (v Value) AsInlineDateSpan() DateSpan
- func (v Value) AsInlineFloat64() Float64
- func (v Value) AsInlineInt64() Int64
- func (v Value) AsInlineSymbol() Symbol
- func (v Value) AsInlineTime() Time
- func (v Value) AsInlineTimeSpan() TimeSpan
- func (v Value) AsInlineUInt64() UInt64
- func (v Value) AsInt() int
- func (v Value) AsInt16() Int16
- func (v Value) AsInt32() Int32
- func (v Value) AsInt64() Int64
- func (v Value) AsInt8() Int8
- func (v Value) AsNativeInt64() int64
- func (v Value) AsNil() NilType
- func (v Value) AsReference() Reference
- func (v Value) AsSmallInt() SmallInt
- func (v Value) AsString() String
- func (v Value) AsTime() Time
- func (v Value) AsTimeOk() (Time, bool)
- func (v Value) AsTimeSpan() TimeSpan
- func (v Value) AsTimeSpanOk() (TimeSpan, bool)
- func (v Value) AsTrue() TrueType
- func (v Value) AsUInt() UInt
- func (v Value) AsUInt16() UInt16
- func (v Value) AsUInt32() UInt32
- func (v Value) AsUInt64() UInt64
- func (v Value) AsUInt8() UInt8
- func (v Value) AsUndefined() UndefinedType
- func (v Value) AsWeak() Weak
- func (v Value) Class() *Class
- func (v Value) Copy() Value
- func (v Value) DirectClass() *Class
- func (v Value) Error() string
- func (v Value) Inspect() string
- func (v Value) InstanceVariables() *InstanceVariables
- func (v Value) IsChar() bool
- func (v Value) IsDate() bool
- func (v Value) IsFalse() bool
- func (v Value) IsFloat() bool
- func (v Value) IsFloat32() bool
- func (v Value) IsInlineDateSpan() bool
- func (v Value) IsInlineFloat64() bool
- func (v Value) IsInlineInt64() bool
- func (v Value) IsInlineSymbol() bool
- func (v Value) IsInlineTime() bool
- func (v Value) IsInlineTimeSpan() bool
- func (v Value) IsInlineUInt64() bool
- func (v Value) IsInlineValue() bool
- func (v Value) IsInt16() bool
- func (v Value) IsInt32() bool
- func (v Value) IsInt8() bool
- func (v Value) IsNil() bool
- func (v Value) IsNotUndefined() bool
- func (v Value) IsReference() bool
- func (v Value) IsSmallInt() bool
- func (v Value) IsTrue() bool
- func (v Value) IsUInt() bool
- func (v Value) IsUInt16() bool
- func (v Value) IsUInt32() bool
- func (v Value) IsUInt8() bool
- func (v Value) IsUndefined() bool
- func (v Value) IsWeak() bool
- func (v Value) MustBigInt() *BigInt
- func (v Value) MustChar() Char
- func (v Value) MustDate() Date
- func (v Value) MustDateSpan() DateSpan
- func (v Value) MustFalse() FalseType
- func (v Value) MustFloat() Float
- func (v Value) MustFloat32() Float32
- func (v Value) MustFloat64() Float64
- func (v Value) MustInlineDateSpan() DateSpan
- func (v Value) MustInlineFloat64() Float64
- func (v Value) MustInlineInt64() Int64
- func (v Value) MustInlineSymbol() Symbol
- func (v Value) MustInlineTime() Time
- func (v Value) MustInlineTimeSpan() TimeSpan
- func (v Value) MustInlineUInt64() UInt64
- func (v Value) MustInt16() Int16
- func (v Value) MustInt32() Int32
- func (v Value) MustInt64() Int64
- func (v Value) MustInt8() Int8
- func (v Value) MustNil() NilType
- func (v Value) MustReference() Reference
- func (v Value) MustSmallInt() SmallInt
- func (v Value) MustTime() Time
- func (v Value) MustTimeSpan() TimeSpan
- func (v Value) MustTrue() TrueType
- func (v Value) MustUInt() UInt
- func (v Value) MustUInt16() UInt16
- func (v Value) MustUInt32() UInt32
- func (v Value) MustUInt64() UInt64
- func (v Value) MustUInt8() UInt8
- func (v Value) MustUndefined() UndefinedType
- func (v Value) MustWeak() Weak
- func (v Value) Pointer() unsafe.Pointer
- func (v Value) SafeAsReference() Reference
- func (v Value) SingletonClass() *Class
- func (v Value) ValueFlag() uint8
- type WaitGroup
- func (w *WaitGroup) Add(n int)
- func (*WaitGroup) Class() *Class
- func (w *WaitGroup) Copy() Reference
- func (*WaitGroup) DirectClass() *Class
- func (w *WaitGroup) End()
- func (w *WaitGroup) Error() string
- func (w *WaitGroup) Inspect() string
- func (w *WaitGroup) InstanceVariables() *InstanceVariables
- func (w *WaitGroup) Remove(n int)
- func (*WaitGroup) SingletonClass() *Class
- func (w *WaitGroup) Start()
- func (w *WaitGroup) Wait()
- type Weak
- func (Weak) Class() *Class
- func (Weak) DirectClass() *Class
- func (w Weak) Error() string
- func (w Weak) Inspect() string
- func (Weak) InstanceVariables() *InstanceVariables
- func (Weak) SingletonClass() *Class
- func (w Weak) ToBox() *Box
- func (w Weak) ToBoxValue() Value
- func (w Weak) ToImmutableBox() *ImmutableBox
- func (w Weak) ToImmutableBoxValue() Value
- func (w Weak) ToValue() Value
Constants ¶
const ( CLASS_SINGLETON_FLAG bitfield.BitFlag8 = 1 << iota // Singleton classes are hidden classes often associated with a single value CLASS_MIXIN_PROXY_FLAG // This class serves as a proxy to an included mixin CLASS_MIXIN_FLAG // This class is a mixin )
const ( SundayAlt = iota Monday Tuesday Wednesday Thursday Friday Saturday Sunday )
const ( Nanosecond TimeSpan = 1 Microsecond = 1000 * Nanosecond Millisecond = 1000 * Microsecond Second = 1000 * Millisecond Minute = 60 * Second Hour = 60 * Minute Day = 24 * Hour Week = 7 * Day Month = TimeSpan(MonthDays * float64(Day)) Year = TimeSpan(YearDays * float64(Day)) )
const ( UNDEFINED_FLAG = iota TRUE_FLAG FALSE_FLAG NIL_FLAG SMALL_INT_FLAG FLOAT_FLAG FLOAT32_FLAG INT8_FLAG UINT8_FLAG INT16_FLAG UINT16_FLAG INT32_FLAG UINT32_FLAG UINT_FLAG CHAR_FLAG SYMBOL_FLAG DATE_FLAG WEAK_FLAG // only 64 bit systems INT64_FLAG UINT64_FLAG FLOAT64_FLAG TIME_FLAG TIME_SPAN_FLAG DATE_SPAN_FLAG REFERENCE_FLAG SENTINEL_FLAG = 0xFF )
const BigFloatNaNMode big.RoundingMode = 0b111
const DateMaxDay = 31
const DateMaxMonth = 12
const DateMaxYear = (1 << 22) - 1
const DateMinDay = 1
const DateMinMonth = 1
const DateMinYear = -(1 << 22)
const DefaultDateFormat = "%Y-%m-%d"
const DefaultDateTimeFormat = "%Y-%m-%d %H:%M:%S.%9N %:z"
const DefaultTimeFormat = "%H:%M:%S.%9N"
const FloatPrecision = 53
const HashMapMaxLoad = 0.75
const HashSetMaxLoad = 0.75
const MAX_ARRAY_LIST_ELEMENTS_IN_INSPECT = 300
const MAX_ARRAY_TUPLE_ELEMENTS_IN_INSPECT = 300
const MAX_HASH_MAP_ELEMENTS_IN_INSPECT = 300
const MAX_HASH_RECORD_ELEMENTS_IN_INSPECT = 300
const MAX_HASH_SET_ELEMENTS_IN_INSPECT = 300
const MAX_IVAR_INDICES_ELEMENTS_IN_INSPECT = 300
const MaxSmallInt = math.MaxInt
Max value of SmallInt
const MinSmallInt = math.MinInt
Min value of SmallInt
const MonthDays = 30.4375
const PtrSize = 4 << (^uintptr(0) >> 63)
const SmallIntBits = PtrSize * 8
Number of bits available for a small int.
const ValueSize = unsafe.Sizeof(Value{})
const YearDays = 365.25
Variables ¶
var ( // positive infinity BigFloatInfVal = BigFloatInf() // negative infinity BigFloatNegInfVal = BigFloatNegInf() // not a number value BigFloatNaNVal = BigFloatNaN() )
var False = FalseType{}.ToValue()
Elk's false value
var GlobalObject = GlobalObjectType{}
var LocalTimezone = NewTimezone(time.Local)
var SYMBOL_TABLE_INITIAL_SIZE int
The number of preallocated slots for symbols in the symbol table at startup.
var True = TrueType{}.ToValue()
Elk's true value
var UTCTimezone = NewTimezone(time.UTC)
var Undefined = UndefinedType{}.ToValue()
Functions ¶
func AddConstant ¶
func CompareInt ¶
func CountFloatDigits ¶
Counts the number of decimal digits in the string.
func ExponentiateInt ¶
func Falsy ¶
Returns true when the Elk value is falsy (works like false in boolean logic) otherwise returns false.
func Hash ¶
Calculate the hash of the value. When successful returns (result, undefined). When an error occurred returns (0, error). When there are no builtin addition functions for the given type returns (0, NotBuiltinError).
func InspectSlice ¶
func InspectSlice[T Inspectable](slice []T) string
Return the string representation of a slice of values.
func InspectSymbol ¶
func InspectSymbolContent ¶
func InstanceOf ¶
Check if the given value is an instance of the given class.
func IntToGoInt ¶
Converts an Elk value strictly to Go int. Returns (0, false) when the value is incompatible. Returns (-1, false) when the value is a BigInt too large to be converted to int.
func IsMutableCollection ¶
func IterateNativeIterator ¶
func IterateNativeIterator(iter NativeIterator) iter.Seq2[Value, Value]
func LoadTimezone ¶
Load a timezone from the IANA database.
func LogicalRightShift16 ¶
func LogicalRightShift32 ¶
func LogicalRightShift64 ¶
func LogicalRightShift8 ¶
func MakeValidatedDate ¶
Make and validate a new date
func MultiplyInt ¶
func NewReferenceComparer ¶
func NewSymbolTableComparer ¶
func NewTimezoneFromOffsetErr ¶
Create a new timezone based on a fixed offset and return an error for invalid values
func ParseBigFloat ¶
Parse a big float value from the given string.
func ParseBigInt ¶
Parses a signed big.Int from a string using Elk syntax.
func ParseBigIntWithErr ¶
Parses a signed big.Int from a string using Elk syntax.
func ParseDateSpan ¶
Create a string formatted according to the given format string.
func ParseDateTime ¶
func ParseDateTimeSpan ¶
func ParseDateTimeSpan(str string) (result *DateTimeSpan, err Value)
Parses a time span string and creates a datetime span value. A datetime span string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "Y", "M", "D", "h", "m", "s", "ms", "us" (or "µs"), "ns".
func ParseTimeSpan ¶
Parses a time span string and creates a datetime span value. A datetime span string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "h", "m", "s", "ms", "us" (or "µs"), "ns".
func PrecisionForFloatString ¶
Calculates the precision required to represent the float in the given string.
func SetInstanceVariable ¶
Set an object's instance variable with the given index to the given value
func StrictEqual ¶
func SubtractInt ¶
func ToGoInt ¶
Converts an Elk value to Go int. Returns (0, false) when the value is incompatible. Returns (-1, false) when the value is a BigInt too large to be converted to int.
Types ¶
type ArrayList ¶
type ArrayList []Value
Elk's ArrayList value
func NewArrayList ¶
func NewArrayListWithLength ¶
func (*ArrayList) Concat ¶
Concatenate another value with this list, creating a new list, and return the result. If the operation is illegal an error will be returned.
func (*ArrayList) DirectClass ¶
func (*ArrayList) ImmutableBoxOfVal ¶
func (l *ArrayList) ImmutableBoxOfVal(index Value) (*ImmutableBox, Value)
Return an immutable box pointing to the slot with the given index.
func (*ArrayList) InstanceVariables ¶
func (*ArrayList) InstanceVariables() *InstanceVariables
func (*ArrayList) LeftCapacity ¶
func (*ArrayList) RemoveAtErr ¶
func (*ArrayList) Repeat ¶
Repeat the content of this list n times and return a new list containing the result. If the operation is illegal an error will be returned.
func (*ArrayList) SingletonClass ¶
func (*ArrayList) SubscriptSet ¶
Set an element under the given index.
type ArrayListIterator ¶
func NewArrayListIterator ¶
func NewArrayListIterator(list *ArrayList) *ArrayListIterator
func NewArrayListIteratorWithIndex ¶
func NewArrayListIteratorWithIndex(list *ArrayList, index int) *ArrayListIterator
func (*ArrayListIterator) Class ¶
func (*ArrayListIterator) Class() *Class
func (*ArrayListIterator) Copy ¶
func (l *ArrayListIterator) Copy() Reference
func (*ArrayListIterator) DirectClass ¶
func (*ArrayListIterator) DirectClass() *Class
func (*ArrayListIterator) Error ¶
func (l *ArrayListIterator) Error() string
func (*ArrayListIterator) Inspect ¶
func (l *ArrayListIterator) Inspect() string
func (*ArrayListIterator) InstanceVariables ¶
func (*ArrayListIterator) InstanceVariables() *InstanceVariables
func (*ArrayListIterator) Next ¶
func (l *ArrayListIterator) Next() (Value, Value)
func (*ArrayListIterator) Reset ¶
func (l *ArrayListIterator) Reset()
func (*ArrayListIterator) SingletonClass ¶
func (*ArrayListIterator) SingletonClass() *Class
type ArrayTuple ¶
type ArrayTuple []Value
Elk's ArrayTuple value
func NewArrayTuple ¶
func NewArrayTuple(capacity int) *ArrayTuple
func NewArrayTupleWithElements ¶
func NewArrayTupleWithElements(capacity int, elements ...Value) *ArrayTuple
func NewArrayTupleWithLength ¶
func NewArrayTupleWithLength(length int) *ArrayTuple
func (*ArrayTuple) At ¶
func (t *ArrayTuple) At(i int) Value
Get an element under the given index without bounds checking.
func (*ArrayTuple) Class ¶
func (*ArrayTuple) Class() *Class
func (*ArrayTuple) ConcatVal ¶
func (t *ArrayTuple) ConcatVal(other Value) (Value, Value)
Concatenate another value with this arrayTuple, creating a new value, and return the result. If the operation is illegal an error will be returned.
func (*ArrayTuple) Copy ¶
func (t *ArrayTuple) Copy() Reference
func (*ArrayTuple) DirectClass ¶
func (*ArrayTuple) DirectClass() *Class
func (*ArrayTuple) Error ¶
func (t *ArrayTuple) Error() string
func (*ArrayTuple) Expand ¶
func (t *ArrayTuple) Expand(newElements int)
Expands the arrayTuple by n nil elements.
func (*ArrayTuple) Get ¶
func (t *ArrayTuple) Get(index int) (Value, Value)
Get an element under the given index.
func (*ArrayTuple) ImmutableBoxOf ¶
func (l *ArrayTuple) ImmutableBoxOf(index int) (*ImmutableBox, Value)
Return a box pointing to the slot with the given index.
func (*ArrayTuple) ImmutableBoxOfVal ¶
func (l *ArrayTuple) ImmutableBoxOfVal(index Value) (*ImmutableBox, Value)
Return a box pointing to the slot with the given index.
func (*ArrayTuple) Inspect ¶
func (t *ArrayTuple) Inspect() string
func (*ArrayTuple) InstanceVariables ¶
func (*ArrayTuple) InstanceVariables() *InstanceVariables
func (*ArrayTuple) Length ¶
func (t *ArrayTuple) Length() int
func (*ArrayTuple) Repeat ¶
func (t *ArrayTuple) Repeat(other Value) (*ArrayTuple, Value)
Repeat the content of this arrayTuple n times and return a new arrayTuple containing the result. If the operation is illegal an error will be returned.
func (*ArrayTuple) Set ¶
func (t *ArrayTuple) Set(index int, val Value) Value
Set an element under the given index.
func (*ArrayTuple) SetAt ¶
func (t *ArrayTuple) SetAt(index int, val Value)
Set an element under the given index without bounds checking.
func (*ArrayTuple) SingletonClass ¶
func (*ArrayTuple) SingletonClass() *Class
func (*ArrayTuple) Subscript ¶
func (t *ArrayTuple) Subscript(key Value) (Value, Value)
Get an element under the given index.
func (*ArrayTuple) SubscriptSet ¶
func (t *ArrayTuple) SubscriptSet(key, val Value) Value
Set an element under the given index.
type ArrayTupleIterator ¶
type ArrayTupleIterator struct {
ArrayTuple *ArrayTuple
Index int
}
func NewArrayTupleIterator ¶
func NewArrayTupleIterator(arrayTuple *ArrayTuple) *ArrayTupleIterator
func NewArrayTupleIteratorWithIndex ¶
func NewArrayTupleIteratorWithIndex(arrayTuple *ArrayTuple, index int) *ArrayTupleIterator
func (*ArrayTupleIterator) Class ¶
func (*ArrayTupleIterator) Class() *Class
func (*ArrayTupleIterator) Copy ¶
func (t *ArrayTupleIterator) Copy() Reference
func (*ArrayTupleIterator) DirectClass ¶
func (*ArrayTupleIterator) DirectClass() *Class
func (*ArrayTupleIterator) Error ¶
func (t *ArrayTupleIterator) Error() string
func (*ArrayTupleIterator) Inspect ¶
func (t *ArrayTupleIterator) Inspect() string
func (*ArrayTupleIterator) InstanceVariables ¶
func (*ArrayTupleIterator) InstanceVariables() *InstanceVariables
func (*ArrayTupleIterator) Next ¶
func (t *ArrayTupleIterator) Next() (Value, Value)
func (*ArrayTupleIterator) Reset ¶
func (t *ArrayTupleIterator) Reset()
func (*ArrayTupleIterator) SingletonClass ¶
func (*ArrayTupleIterator) SingletonClass() *Class
type BeginlessClosedRange ¶
type BeginlessClosedRange struct {
End Value // end value
}
Represents a beginless closed range eg. `...2`
func NewBeginlessClosedRange ¶
func NewBeginlessClosedRange(end Value) *BeginlessClosedRange
Create a new beginless closed range class.
func (*BeginlessClosedRange) Class ¶
func (*BeginlessClosedRange) Class() *Class
func (*BeginlessClosedRange) Copy ¶
func (r *BeginlessClosedRange) Copy() Reference
func (*BeginlessClosedRange) DirectClass ¶
func (*BeginlessClosedRange) DirectClass() *Class
func (*BeginlessClosedRange) Error ¶
func (r *BeginlessClosedRange) Error() string
func (*BeginlessClosedRange) Inspect ¶
func (r *BeginlessClosedRange) Inspect() string
func (*BeginlessClosedRange) InstanceVariables ¶
func (r *BeginlessClosedRange) InstanceVariables() *InstanceVariables
func (*BeginlessClosedRange) SingletonClass ¶
func (*BeginlessClosedRange) SingletonClass() *Class
type BeginlessOpenRange ¶
type BeginlessOpenRange struct {
End Value // end value
}
Represents a beginless open range eg. `..<2`
func NewBeginlessOpenRange ¶
func NewBeginlessOpenRange(end Value) *BeginlessOpenRange
Create a new beginless open range class.
func (*BeginlessOpenRange) Class ¶
func (*BeginlessOpenRange) Class() *Class
func (*BeginlessOpenRange) Copy ¶
func (r *BeginlessOpenRange) Copy() Reference
func (*BeginlessOpenRange) DirectClass ¶
func (*BeginlessOpenRange) DirectClass() *Class
func (*BeginlessOpenRange) Error ¶
func (r *BeginlessOpenRange) Error() string
func (*BeginlessOpenRange) Inspect ¶
func (r *BeginlessOpenRange) Inspect() string
func (*BeginlessOpenRange) InstanceVariables ¶
func (r *BeginlessOpenRange) InstanceVariables() *InstanceVariables
func (*BeginlessOpenRange) SingletonClass ¶
func (*BeginlessOpenRange) SingletonClass() *Class
type BigFloat ¶
Elk's BigFloat value
func NewBigFloat ¶
Create a new BigFloat with the specified value.
func ParseBigFloatPanic ¶
Same as ParseBigFloat but panics on error.
func ToElkBigFloat ¶
Convert Go's big.Float values to Elk's BigFloat values.
func (*BigFloat) AddBigFloat ¶
Add sets z to the rounded sum x+y and returns z.
func (*BigFloat) AsGoBigFloat ¶
Convert Elk's BigFloat values to Go's big.Float values. Does a cast without any checks.
func (*BigFloat) Cmp ¶
Cmp compares x and y and returns:
-1 if x < y 0 if x == y +1 if x > y
Panics if x or y are NaN.
func (*BigFloat) CompareVal ¶
Returns 1 if i is greater than other Returns 0 if both are equal. Returns -1 if i is less than other. Returns nil if the comparison was impossible (NaN)
func (*BigFloat) DirectClass ¶
func (*BigFloat) DivBigFloat ¶
Div sets z to the rounded result x/y and returns z.
func (*BigFloat) DivideVal ¶
DivideVal by another value and return an error if something went wrong.
func (*BigFloat) Equal ¶
Check whether f is equal to other and return an error if something went wrong.
func (*BigFloat) EqualVal ¶
Check whether f is equal to other and return an error if something went wrong.
func (*BigFloat) ExponentiateVal ¶
ExponentiateVal by another value and return an error if something went wrong.
func (*BigFloat) FloorBigFloat ¶
func (*BigFloat) GreaterThan ¶
Check whether f is greater than other and return an error if something went wrong.
func (*BigFloat) GreaterThanEqual ¶
Check whether f is greater than or equal to other and return an error if something went wrong.
func (*BigFloat) GreaterThanEqualVal ¶
Check whether f is greater than or equal to other and return an error if something went wrong.
func (*BigFloat) GreaterThanVal ¶
Check whether f is greater than other and return an error if something went wrong.
func (*BigFloat) InstanceVariables ¶
func (f *BigFloat) InstanceVariables() *InstanceVariables
func (*BigFloat) IsInf ¶
IsInf reports whether f is an infinity, according to sign. If sign > 0, IsInf reports whether f is positive infinity. If sign < 0, IsInf reports whether f is negative infinity. If sign == 0, IsInf reports whether f is either infinity.
func (*BigFloat) LaxEqualBool ¶
Check whether f is equal to other and return an error if something went wrong.
func (*BigFloat) LaxEqualVal ¶
Check whether f is equal to other and return an error if something went wrong.
func (*BigFloat) LessThan ¶
Check whether f is less than other and return an error if something went wrong.
func (*BigFloat) LessThanEqual ¶
Check whether f is less than or equal to other and return an error if something went wrong.
func (*BigFloat) LessThanEqualVal ¶
Check whether f is less than or equal to other and return an error if something went wrong.
func (*BigFloat) LessThanVal ¶
Check whether f is less than other and return an error if something went wrong.
func (*BigFloat) Mod ¶
Perform z = a % b by another BigFloat.
Special cases are:
Mod(±Inf, y) = NaN Mod(NaN, y) = NaN Mod(x, 0) = NaN Mod(x, ±Inf) = x Mod(x, NaN) = NaN
func (*BigFloat) ModuloVal ¶
Perform modulo by another numeric value and return an error if something went wrong.
func (*BigFloat) MulBigFloat ¶
Mul sets z to the rounded result x*y and returns z.
func (*BigFloat) MultiplyVal ¶
MultiplyVal by another value and return an error if something went wrong.
func (*BigFloat) SetElkFloat32 ¶
Sets f to the possibly rounded value of x.
func (*BigFloat) SetElkFloat64 ¶
Sets f to the possibly rounded value of x.
func (*BigFloat) SetElkInt64 ¶
Sets f to the value of i.
func (*BigFloat) SetFloat32 ¶
Sets f to the possibly rounded value of x.
func (*BigFloat) SetFloat64 ¶
Sets f to the possibly rounded value of x.
func (*BigFloat) SetPrecision ¶
Sets the f's precision to prec and possibly rounds the value.
func (*BigFloat) SetSmallInt ¶
Sets f to the value of i.
func (*BigFloat) SingletonClass ¶
func (*BigFloat) StrictEqualVal ¶
Check whether f is strictly equal to other and return an error if something went wrong.
func (*BigFloat) SubBigFloat ¶
Sub sets z to the rounded result x-y and returns z.
func (*BigFloat) SubtractVal ¶
SubtractVal another value and return an error if something went wrong.
func (*BigFloat) ToGoBigFloat ¶
Convert Elk's BigFloat values to Go's big.Float values. Panics with big.ErrNaN if f is a NaN.
type BigFloatErrNaN ¶
type BigFloatErrNaN struct {
// contains filtered or unexported fields
}
A BigFloatErrNaN panic is raised when converting a NaN value from Elk's BigFloat to Go's big.Float. Implements the error interface.
func (BigFloatErrNaN) Error ¶
func (e BigFloatErrNaN) Error() string
type BigInt ¶
Elk's BigInt value
func ParseBigIntPanic ¶
Same as ParseBigInt but panics on error.
func ToElkBigInt ¶
Convert Go big.Int value to Elk BigInt value.
func (*BigInt) AddBigFloat ¶
func (*BigInt) AddSmallInt ¶
func (*BigInt) BitwiseAndNotVal ¶
Perform bitwise AND NOT with another value and return an error if something went wrong.
func (*BigInt) BitwiseAndVal ¶
Perform bitwise AND with another value and return an error if something went wrong.
func (*BigInt) BitwiseNot ¶
Perform bitwise not on the number and return the result.
func (*BigInt) BitwiseOrVal ¶
Perform bitwise OR with another value and return an error if something went wrong.
func (*BigInt) BitwiseXorVal ¶
Perform bitwise XOR with another value and return an error if something went wrong.
func (*BigInt) CompareVal ¶
Returns 1 if i is greater than other Returns 0 if both are equal. Returns -1 if i is less than other. Returns nil if the comparison was impossible (NaN)
func (*BigInt) DecrementVal ¶
DecrementVal the number and return the result.
func (*BigInt) DirectClass ¶
func (*BigInt) DivideBigFloat ¶
func (*BigInt) DivideFloat ¶
func (*BigInt) ExponentiateBigFloat ¶
func (*BigInt) ExponentiateBigInt ¶
func (*BigInt) ExponentiateFloat ¶
func (*BigInt) ExponentiateSmallInt ¶
func (*BigInt) ExponentiateVal ¶
ExponentiateVal by another value and return an error if something went wrong.
func (*BigInt) GreaterThan ¶
Check whether i is greater than other and return an error if something went wrong.
func (*BigInt) GreaterThanEqual ¶
Check whether i is greater than or equal to other and return an error if something went wrong.
func (*BigInt) GreaterThanEqualVal ¶
Check whether i is greater than or equal to other and return an error if something went wrong.
func (*BigInt) GreaterThanVal ¶
Check whether i is greater than other and return an error if something went wrong.
func (*BigInt) InstanceVariables ¶
func (i *BigInt) InstanceVariables() *InstanceVariables
func (*BigInt) IsSmallInt ¶
Reports whether i can be represented as a SmallInt.
func (*BigInt) LaxEqualVal ¶
Check whether i is equal to other (with coercion)
func (*BigInt) LeftBitshiftVal ¶
Bitshift to the left by another integer value and return an error if something went wrong.
func (*BigInt) LessThan ¶
Check whether i is less than other and return an error if something went wrong.
func (*BigInt) LessThanEqual ¶
Check whether i is less than or equal to other and return an error if something went wrong.
func (*BigInt) LessThanEqualVal ¶
Check whether i is less than or equal to other and return an error if something went wrong.
func (*BigInt) LessThanVal ¶
Check whether i is less than other and return an error if something went wrong.
func (*BigInt) Microseconds ¶
func (*BigInt) Milliseconds ¶
func (*BigInt) ModuloBigFloat ¶
func (*BigInt) ModuloFloat ¶
func (*BigInt) ModuloVal ¶
Perform modulo with another numeric value and return an error if something went wrong.
func (*BigInt) MultiplyBigFloat ¶
func (*BigInt) MultiplyBigInt ¶
func (*BigInt) MultiplyFloat ¶
func (*BigInt) MultiplySmallInt ¶
func (*BigInt) MultiplyVal ¶
MultiplyVal by another value and return an error if something went wrong.
func (*BigInt) Nanoseconds ¶
func (*BigInt) RightBitshiftVal ¶
Bitshift to the right by another integer value and return an error if something went wrong.
func (*BigInt) SingletonClass ¶
func (*BigInt) StrictEqualVal ¶
Check whether i is strictly equal to other
func (*BigInt) SubtractBigFloat ¶
func (*BigInt) SubtractBigInt ¶
func (*BigInt) SubtractFloat ¶
func (*BigInt) SubtractSmallInt ¶
func (*BigInt) SubtractVal ¶
SubtractVal another value and return an error if something went wrong.
func (*BigInt) ToGoBigInt ¶
Convert the Elk BigInt value to Go big.Int value.
func (*BigInt) ToSmallInt ¶
Returns the SmallInt representation of i.
type BigIntIterator ¶
func NewBigIntIterator ¶
func NewBigIntIterator(i *BigInt) *BigIntIterator
func NewBigIntIteratorWithCounter ¶
func NewBigIntIteratorWithCounter(i *BigInt, counter Value) *BigIntIterator
func (*BigIntIterator) Class ¶
func (*BigIntIterator) Class() *Class
func (*BigIntIterator) Copy ¶
func (l *BigIntIterator) Copy() Reference
func (*BigIntIterator) DirectClass ¶
func (*BigIntIterator) DirectClass() *Class
func (*BigIntIterator) Error ¶
func (l *BigIntIterator) Error() string
func (*BigIntIterator) Inspect ¶
func (l *BigIntIterator) Inspect() string
func (*BigIntIterator) InstanceVariables ¶
func (*BigIntIterator) InstanceVariables() *InstanceVariables
func (*BigIntIterator) Next ¶
func (l *BigIntIterator) Next() (Value, Value)
func (*BigIntIterator) Reset ¶
func (l *BigIntIterator) Reset()
func (*BigIntIterator) SingletonClass ¶
func (*BigIntIterator) SingletonClass() *Class
type Box ¶
type Box Value
Box wraps another value, it's a pointer to another `Value`.
func (*Box) DirectClass ¶
func (*Box) InstanceVariables ¶
func (*Box) InstanceVariables() *InstanceVariables
func (*Box) SingletonClass ¶
func (*Box) ToImmutableBox ¶
func (b *Box) ToImmutableBox() *ImmutableBox
type CallCache ¶
type CallCache struct {
Entries [3]CallCacheEntry
}
type CallCacheEntry ¶
type CallFrame ¶
func (*CallFrame) DirectClass ¶
func (*CallFrame) InstanceVariables ¶
func (*CallFrame) InstanceVariables() *InstanceVariables
func (*CallFrame) SingletonClass ¶
type CallSiteInfo ¶
type CallSiteInfo struct {
Name Symbol
ArgumentCount int
Cache [3]CallCacheEntry
}
Contains details like the number of arguments or the method name of a particular call site.
func NewCallSiteInfo ¶
func NewCallSiteInfo(methodName Symbol, argCount int) *CallSiteInfo
Create a new CallSiteInfo.
func (*CallSiteInfo) Class ¶
func (*CallSiteInfo) Class() *Class
func (*CallSiteInfo) Copy ¶
func (c *CallSiteInfo) Copy() Reference
func (*CallSiteInfo) DirectClass ¶
func (*CallSiteInfo) DirectClass() *Class
func (*CallSiteInfo) Error ¶
func (c *CallSiteInfo) Error() string
func (*CallSiteInfo) Inspect ¶
func (c *CallSiteInfo) Inspect() string
func (*CallSiteInfo) InstanceVariables ¶
func (*CallSiteInfo) InstanceVariables() *InstanceVariables
func (*CallSiteInfo) SingletonClass ¶
func (*CallSiteInfo) SingletonClass() *Class
type Channel ¶
type Channel struct {
Native chan Value
}
func NewChannel ¶
func (*Channel) DirectClass ¶
func (*Channel) InstanceVariables ¶
func (*Channel) InstanceVariables() *InstanceVariables
func (*Channel) LeftCapacity ¶
func (*Channel) SingletonClass ¶
type Char ¶
type Char rune
Elk's Char value
func (Char) CompareVal ¶
Returns 1 if i is greater than other Returns 0 if both are equal. Returns -1 if i is less than other. Returns nil if the comparison was impossible (NaN)
func (Char) Concat ¶
Concatenate another value with this character, creating a new string, and return the result. If the operation is illegal an error will be returned.
func (Char) DirectClass ¶
func (Char) GraphemeCount ¶
func (Char) GreaterThan ¶
Check whether c is greater than other and return an error if something went wrong.
func (Char) GreaterThanEqual ¶
Check whether c is greater than or equal to other and return an error if something went wrong.
func (Char) GreaterThanEqualVal ¶
Check whether c is greater than or equal to other and return an error if something went wrong.
func (Char) GreaterThanVal ¶
Check whether c is greater than other and return an error if something went wrong.
func (Char) InstanceVariables ¶
func (Char) InstanceVariables() *InstanceVariables
func (Char) LaxEqualVal ¶
Check whether c is equal to other
func (Char) LessThan ¶
Check whether c is less than other and return an error if something went wrong.
func (Char) LessThanEqual ¶
Check whether c is less than or equal to other and return an error if something went wrong.
func (Char) LessThanEqualVal ¶
Check whether c is less than or equal to other and return an error if something went wrong.
func (Char) LessThanVal ¶
Check whether c is less than other and return an error if something went wrong.
func (Char) Repeat ¶
Repeat this character n times and return a new string containing the result. If the operation is illegal an error will be returned.
func (Char) SingletonClass ¶
func (Char) StrictEqualVal ¶
Check whether s is strictly equal to other
type Class ¶
type Class struct {
ConstantContainer
MethodContainer
ConstructorFunc ConstructorFunc
Flags bitfield.BitField8
IvarIndices IvarIndices
// contains filtered or unexported fields
}
Represents an Elk Class.
var AliasDeclarationEntryClass *Class // Std::Elk::AST::AliasDeclarationEntry
var AliasDeclarationNodeClass *Class // Std::Elk::AST::AliasDeclarationNode
var AnyTypeNodeClass *Class // Std::Elk::AST::AnyTypeNode
var ArgumentErrorClass *Class
::Std::ArgumentError
Thrown when the arguments don't match the defined parameters for a given method.
var ArrayListClass *Class
::Std::ArrayList
Represents a dynamically sized array, that can shrink and grow.
var ArrayListLiteralNodeClass *Class // Std::Elk::AST::ArrayListLiteralNode
var ArrayTupleLiteralNodeClass *Class // Std::Elk::AST::ArrayTupleLiteralNode
var AsExpressionNodeClass *Class // Std::Elk::AST::AsExpressionNode
var AsPatternNodeClass *Class // Std::Elk::AST::AsPatternNode
var AssignmentExpressionNodeClass *Class // Std::Elk::AST::AssignmentExpressionNode
var AttrDeclarationNodeClass *Class // Std::Elk::AST::AttrDeclarationNode
var AttributeAccessNodeClass *Class // Std::Elk::AST::AttributeAccessNode
var AttributeParameterNodeClass *Class // Std::Elk::AST::AttributeParameterNode
var AwaitExpressionNodeClass *Class // Std::Elk::AST::AwaitExpressionNode
var BeginlessClosedRangeClass *Class // ::Std::BeginlessClosedRange
var BeginlessOpenRangeClass *Class // ::Std::BeginlessOpenRange
var BigFloatClass *Class // ::Std::BigFloat
var BigFloatLiteralNodeClass *Class // Std::Elk::AST::BigFloatLiteralNode
var BigFloatLiteralNodeFormatErrorClass *Class // Std::Elk::AST::BigFloatLiteralNode::FormatError
var BinArrayListLiteralNodeClass *Class // Std::Elk::AST::BinArrayListLiteralNode
var BinArrayTupleLiteralNodeClass *Class // Std::Elk::AST::BinArrayTupleLiteralNode
var BinHashSetLiteralNodeClass *Class // Std::Elk::AST::BinHashSetLiteralNode
var BinaryExpressionNodeClass *Class // Std::Elk::AST::BinaryExpressionNode
var BinaryPatternNodeClass *Class // Std::Elk::AST::BinaryPatternNode
var BinaryTypeNodeClass *Class // Std::Elk::AST::BinaryTypeNode
var BoolClass *Class // ::Std::Bool
var BoolLiteralNodeClass *Class // Std::Elk::AST::BoolLiteralNode
var BoxClass *Class // ::Std::Box
var BoxOfExpressionNodeClass *Class // Std::Elk::AST::BoxOfExpressionNode
var BoxTypeNodeClass *Class // Std::Elk::AST::BoxTypeNode
var BreakExpressionNodeClass *Class // Std::Elk::AST::BreakExpressionNode
var CallFrameClass *Class // ::Std::CallFrame
var CallNodeClass *Class // Std::Elk::AST::CallNode
var CallableTypeNodeClass *Class // Std::Elk::AST::CallableTypeNode
var CaseNodeClass *Class // Std::Elk::AST::CaseNode
var CatchNodeClass *Class // Std::Elk::AST::CatchNode
var ChannelClass *Class // ::Std::Channel
var ChannelClosedErrorClass *Class // ::Std::Channel::ClosedError
var CharLiteralNodeClass *Class // Std::Elk::AST::CharLiteralNode
var ClassClass *Class // ::Std::Class
var ClassDeclarationNodeClass *Class // Std::Elk::AST::ClassDeclarationNode
var ClosedRangeClass *Class // ::Std::ClosedRange
var ClosureClass *Class // ::Std::Closure
var ClosureLiteralNodeClass *Class // Std::Elk::AST::ClosureLiteralNode
var ColorizerErrorClass *Class
::Std::ColorizerError
var ConstantAsNodeClass *Class // Std::Elk::AST::ConstantAsNode
var ConstantDeclarationNodeClass *Class // Std::Elk::AST::ConstantDeclarationNode
var ConstantLookupNodeClass *Class // Std::Elk::AST::ConstantLookupNode
var ConstantNodeFormatErrorClass *Class // Std::Elk::AST::ConstantNode::FormatError
var ConstructorCallNodeClass *Class // Std::Elk::AST::ConstructorCallNode
var ContinueExpressionNodeClass *Class // Std::Elk::AST::ContinueExpressionNode
var DateClass *Class // ::Std::Date
var DateErrorClass *Class // ::Std::Date::Error
var DateInvalidDayErrorClass *Class // ::Std::Date::InvalidDayError
var DateInvalidMonthErrorClass *Class // ::Std::Date::InvalidMonthError
var DateInvalidYearErrorClass *Class // ::Std::Date::InvalidYearError
var DateSpanClass *Class // ::Std::Date::Span
var DateTimeClass *Class // ::Std::DateTime
var DateTimeSpanClass *Class // ::Std::DateTime::Span
var DiagnosticClass *Class // ::Std::Diagnostic
var DiagnosticListClass *Class // ::Std::DiagnosticList
var DiagnosticListIteratorClass *Class // ::Std::DiagnosticList::Iterator
var DoExpressionNodeClass *Class // Std::Elk::AST::DoExpressionNode
var DoubleQuotedStringLiteralNodeClass *Class // Std::Elk::AST::DoubleQuotedStringLiteralNode
var DoubleSplatExpressionNodeClass *Class // Std::Elk::AST::DoubleSplatExpressionNode
var DurationMixin *Class // ::Std::Duration
var ElkLexerClass *Class // ::Std::Elk::Lexer
var ElkParserClass *Class // ::Std::Elk::Parser
var ElkParserResultClass *Class // ::Std::Elk::Parser::Result
var ElkTokenClass *Class // Std::Elk::Token
var EmptyStatementNodeClass *Class // Std::Elk::AST::EmptyStatementNode
var EndlessClosedRangeClass *Class // ::Std::EndlessClosedRange
var EndlessClosedRangeIteratorClass *Class
::Std::EndlessClosedRange::Iterator
EndlessClosedRange iterator class.
var EndlessOpenRangeClass *Class // ::Std::EndlessOpenRange
var EndlessOpenRangeIteratorClass *Class
::Std::EndlessOpenRange::Iterator
EndlessOpenRange iterator class.
var ExpressionStatementNodeClass *Class // Std::Elk::AST::ExpressionStatementNode
var ExtendWhereBlockExpressionNodeClass *Class // Std::Elk::AST::ExtendWhereBlockExpressionNode
var FalseClass *Class // ::Std::False
var FalseLiteralNodeClass *Class // Std::Elk::AST::FalseLiteralNode
var FileSystemErrorClass *Class
::Std::FileSystemError
var Float32Class *Class // ::Std::Float32
var Float32LiteralNodeClass *Class // Std::Elk::AST::Float32LiteralNode
var Float32LiteralNodeFormatErrorClass *Class // Std::Elk::AST::Float32LiteralNode::FormatError
var Float64Class *Class // ::Std::Float64
var Float64LiteralNodeClass *Class // Std::Elk::AST::Float64LiteralNode
var Float64LiteralNodeFormatErrorClass *Class // Std::Elk::AST::Float64LiteralNode::FormatError
var FloatClass *Class // ::Std::Float
var FloatLiteralNodeClass *Class // Std::Elk::AST::FloatLiteralNode
var FloatLiteralNodeFormatErrorClass *Class // Std::Elk::AST::FloatLiteralNode::FormatError
var ForInExpressionNodeClass *Class // Std::Elk::AST::ForInExpressionNode
var FormalParameterNodeClass *Class // Std::Elk::AST::FormalParameterNode
var FormatErrorClass *Class
::Std::FormatError
Thrown when a literal or interpreted string has an incorrect format.
var FunctionClass *Class // ::Std::Function
var GeneratorClass *Class // ::Std::Generator
var GenericConstantNodeClass *Class // Std::Elk::AST::GenericConstantNode
var GenericConstructorCallNodeClass *Class // Std::Elk::AST::GenericConstructorCallNode
var GenericMethodCallNodeClass *Class // Std::Elk::AST::GenericMethodCallNode
var GenericReceiverlessMethodCallNodeClass *Class // Std::Elk::AST::GenericReceiverlessMethodCallNode
var GenericTypeDefinitionNodeClass *Class // Std::Elk::AST::GenericTypeDefinitionNode
var GetterDeclarationNodeClass *Class // Std::Elk::AST::GetterDeclarationNode
var GlobalObjectSingletonClass *Class
var GoExpressionNodeClass *Class // Std::Elk::AST::GoExpressionNode
var HashMapClass *Class // ::Std::HashMap
var HashMapIteratorClass *Class // ::Std::HashMap::Iterator
var HashMapLiteralNodeClass *Class // Std::Elk::AST::HashMapLiteralNode
var HashRecordClass *Class // ::Std::HashRecord
var HashRecordIteratorClass *Class // ::Std::HashRecord::Iterator
var HashRecordLiteralNodeClass *Class // Std::Elk::AST::HashRecordLiteralNode
var HashSetClass *Class // ::Std::HashSet
var HashSetIteratorClass *Class // ::Std::HashSet::Iterator
var HashSetLiteralNodeClass *Class // Std::Elk::AST::HashSetLiteralNode
var HexArrayListLiteralNodeClass *Class // Std::Elk::AST::HexArrayListLiteralNode
var HexArrayTupleLiteralNodeClass *Class // Std::Elk::AST::HexArrayTupleLiteralNode
var HexHashSetLiteralNodeClass *Class // Std::Elk::AST::HexHashSetLiteralNode
var IdentifierNodeFormatErrorClass *Class // Std::Elk::AST::IdentifierNode::FormatError
var IfExpressionNodeClass *Class // Std::Elk::AST::IfExpressionNode
var ImmutableBoxClass *Class // ::Std::ImmutableBox
var ImplementExpressionNodeClass *Class // Std::Elk::AST::ImplementExpressionNode
var ImportStatementNodeClass *Class // Std::Elk::AST::ImportStatementNode
var IncludeExpressionNodeClass *Class // Std::Elk::AST::IncludeExpressionNode
var InitDefinitionNodeClass *Class // Std::Elk::AST::InitDefinitionNode
var InstanceMethodLookupNodeClass *Class // Std::Elk::AST::InstanceMethodLookupNode
var InstanceOfTypeNodeClass *Class // Std::Elk::AST::InstanceOfTypeNode
var InstanceVariableDeclarationNodeClass *Class // Std::Elk::AST::InstanceVariableDeclarationNode
var Int16Class *Class // ::Std::Int16
var Int16LiteralNodeClass *Class // Std::Elk::AST::Int16LiteralNode
var Int16LiteralNodeFormatErrorClass *Class // Std::Elk::AST::Int16LiteralNode::FormatError
var Int32Class *Class // ::Std::Int32
var Int32LiteralNodeClass *Class // Std::Elk::AST::Int32LiteralNode
var Int32LiteralNodeFormatErrorClass *Class // Std::Elk::AST::Int32LiteralNode::FormatError
var Int64Class *Class // ::Std::Int64
var Int64LiteralNodeClass *Class // Std::Elk::AST::Int64LiteralNode
var Int64LiteralNodeFormatErrorClass *Class // Std::Elk::AST::Int64LiteralNode::FormatError
var Int8Class *Class // ::Std::Int8
var Int8LiteralNodeClass *Class // Std::Elk::AST::Int8LiteralNode
var Int8LiteralNodeFormatErrorClass *Class // Std::Elk::AST::Int8LiteralNode::FormatError
var IntClass *Class // ::Std::Int
var IntIteratorClass *Class // ::Std::Int::Iterator
var IntLiteralNodeClass *Class // Std::Elk::AST::IntLiteralNode
var IntLiteralNodeFormatErrorClass *Class // Std::Elk::AST::IntLiteralNode::FormatError
var InterfaceClass *Class // ::Std::Interface
var InterfaceDeclarationNodeClass *Class // Std::Elk::AST::InterfaceDeclarationNode
var InterpolatedRegexLiteralNodeClass *Class // Std::Elk::AST::InterpolatedRegexLiteralNode
var InterpolatedStringLiteralNodeClass *Class // Std::Elk::AST::InterpolatedStringLiteralNode
var InterpolatedSymbolLiteralNodeClass *Class // Std::Elk::AST::InterpolatedSymbolLiteralNode
var IntersectionTypeNodeClass *Class // Std::Elk::AST::IntersectionTypeNode
var InvalidNodeClass *Class // Std::Elk::AST::InvalidNode
var InvalidTimezoneErrorClass *Class
::Std::InvalidTimezoneError
Thrown when a timezone wasn't found.
var IterableNotFoundError *Class
::Std::Iterable::NotFoundError
var KeyValueExpressionNodeClass *Class // Std::Elk::AST::KeyValueExpressionNode
var KeyValuePatternNodeClass *Class // Std::Elk::AST::KeyValuePatternNode
var LabeledExpressionNodeClass *Class // Std::Elk::AST::LabeledExpressionNode
var LeftOpenRangeClass *Class // ::Std::LeftOpenRange
var ListPatternNodeClass *Class // Std::Elk::AST::ListPatternNode
var LocalBoxClass *Class // ::Std::LocalBox
var LocationClass *Class // Std::FS::Location
var LogicalExpressionNodeClass *Class // Std::Elk::AST::LogicalExpressionNode
var LoopExpressionNodeClass *Class // Std::Elk::AST::LoopExpressionNode
var MacroBoundaryNodeClass *Class // Std::Elk::AST::MacroBoundaryNode
var MacroCallNodeClass *Class // Std::Elk::AST::MacroCallNode
var MacroDefinitionNodeClass *Class // Std::Elk::AST::MacroDefinitionNode
var MacroNameNodeClass *Class // Std::Elk::AST::MacroNameNode
var MapPatternNodeClass *Class // Std::Elk::AST::MapPatternNode
var MatchExpressionNodeClass *Class // Std::Elk::AST::MatchExpressionNode
var MethodCallNodeClass *Class // Std::Elk::AST::MethodCallNode
var MethodClass *Class // ::Std::Method
var MethodDefinitionNodeClass *Class // Std::Elk::AST::MethodDefinitionNode
var MethodLookupAsNodeClass *Class // Std::Elk::AST::MethodLookupAsNode
var MethodLookupNodeClass *Class // Std::Elk::AST::MethodLookupNode
var MethodParameterNodeClass *Class // Std::Elk::AST::MethodParameterNode
var MethodSignatureDefinitionNodeClass *Class // Std::Elk::AST::MethodSignatureDefinitionNode
var MixinClass *Class // ::Std::Mixin
var MixinDeclarationNodeClass *Class // Std::Elk::AST::MixinDeclarationNode
var ModifierForInNodeClass *Class // Std::Elk::AST::ModifierForInNode
var ModifierIfElseNodeClass *Class // Std::Elk::AST::ModifierIfElseNode
var ModifierMismatchErrorClass *Class
::Std::ModifierMismatchError
Thrown when a class was originally defined with some modifiers and later on reopened with different ones.
var ModifierNodeClass *Class // Std::Elk::AST::ModifierNode
var ModuleClass *Class // ::Std::Module
var ModuleDeclarationNodeClass *Class // Std::Elk::AST::ModuleDeclarationNode
var MustExpressionNodeClass *Class // Std::Elk::AST::MustExpressionNode
var MutexClass *Class // ::Std::Sync::Mutex
var MutexUnlockedErrorClass *Class // ::Std::Sync::Mutex::UnlockedError
var NamedCallArgumentNodeClass *Class // Std::Elk::AST::NamedCallArgumentNode
var NeverTypeNodeClass *Class // Std::Elk::AST::NeverTypeNode
var NewExpressionNodeClass *Class // Std::Elk::AST::NewExpressionNode
var NilClass *Class // ::Std::Nil
var NilLiteralNodeClass *Class // Std::Elk::AST::NilLiteralNode
var NilSafeSubscriptExpressionNodeClass *Class // Std::Elk::AST::NilSafeSubscriptExpressionNode
var NilableTypeNodeClass *Class // Std::Elk::AST::NilableTypeNode
var NoConstantErrorClass *Class
::Std::NoConstantError
Thrown after trying to read a nonexistent constant.
var NoMethodErrorClass *Class
::Std::NoMethodError
Thrown after attempting to call a method that is not available to the value.
var NodeFormatErrorClass *Class // Std::Elk::AST::Node::FormatError
var NotBuiltinErrorClass *Class
::Std::NotBuiltinError
Thrown when the called method is not builtin.
var NotTypeNodeClass *Class // Std::Elk::AST::NotTypeNode
var NumericForExpressionNodeClass *Class // Std::Elk::AST::NumericForExpressionNode
var ObjectClass *Class // ::Std::Object
var ObjectPatternNodeClass *Class // Std::Elk::AST::ObjectPatternNode
var OnceClass *Class // ::Std::Sync::Once
var OpenClosureErrorClass *Class
::Std::OpenClosureError
Thrown when another thread tried to execute an open closure.
var OpenRangeClass *Class // ::Std::OpenRange
var OutOfRangeErrorClass *Class
::Std::OutOfRangeError
Thrown when a numeric value is too large or too small to be used in a particular setting.
var PairClass *Class // ::Std::Pair
var ParameterStatementNodeClass *Class // Std::Elk::AST::ParameterStatementNode
var PathClass *Class // ::Std::FS::Path
var PathErrorClass *Class
::Std::FS::Path::Error
Thrown when an error is encountered when working with paths.
var PatternExpressionNodeClass *Class // Std::Elk::AST::PatternExpressionNode
var PatternNotMatchedErrorClass *Class
::Std::PatternNotMatchedError
Thrown when a pattern was not matched in destructuring etc
var PatternStatementNodeClass *Class // Std::Elk::AST::PatternStatementNode
var PositionClass *Class // Std::String::Position
var PostfixExpressionNodeClass *Class // Std::Elk::AST::PostfixExpressionNode
var PrimitiveValueErrorClass *Class
::Std::PrimitiveValueError
Thrown when trying to access or set instance variables on a primitive object that cannot have instance variables.
var PrivateConstantNodeClass *Class // Std::Elk::AST::PrivateConstantNode
var PrivateConstantNodeFormatErrorClass *Class // Std::Elk::AST::PrivateConstantNode::FormatError
var PrivateIdentifierNodeClass *Class // Std::Elk::AST::PrivateIdentifierNode
var PrivateIdentifierNodeFormatErrorClass *Class // Std::Elk::AST::PrivateIdentifierNode::FormatError
var ProgramNodeClass *Class // Std::Elk::AST::ProgramNode
var PromiseClass *Class // ::Std::Promise
var PublicConstantAsNodeClass *Class // Std::Elk::AST::PublicConstantAsNode
var PublicConstantNodeClass *Class // Std::Elk::AST::PublicConstantNode
var PublicIdentifierNodeClass *Class // Std::Elk::AST::PublicIdentifierNode
var PublicInstanceVariableNodeClass *Class // Std::Elk::AST::PublicInstanceVariableNode
var QuoteExpressionNodeClass *Class // Std::Elk::AST::QuoteExpressionNode
var ROMutexClass *Class // ::Std::Sync::ROMutex
var RWMutexClass *Class // ::Std::Sync::RWMutex
var RWMutexUnlockedErrorClass *Class // ::Std::Sync::RWMutex::UnlockedError
var RangeLiteralNodeClass *Class // Std::Elk::AST::RangeLiteralNode
var RawCharLiteralNodeClass *Class // Std::Elk::AST::RawCharLiteralNode
var RawStringLiteralNodeClass *Class // Std::Elk::AST::RawStringLiteralNode
var ReceiverlessMacroCallNodeClass *Class // Std::Elk::AST::ReceiverlessMacroCallNode
var ReceiverlessMethodCallNodeClass *Class // Std::Elk::AST::ReceiverlessMethodCallNode
var RecordPatternNodeClass *Class // Std::Elk::AST::RecordPatternNode
var RedefinedConstantErrorClass *Class
::Std::RedefinedConstantError
Thrown after trying to redefine a constant.
var RegexClass *Class // ::Std::Regex
var RegexCompileErrorClass *Class
::Std::RegexCompileError
Thrown when a Regex could not be compiled.
var RegexInterpolationNodeClass *Class // Std::Elk::AST::RegexInterpolationNode
var RegexLiteralContentSectionNodeClass *Class // Std::Elk::AST::RegexLiteralContentSection
var RestPatternNodeClass *Class // Std::Elk::AST::RestPatternNode
var ResultClass *Class // ::Std::Result
var ReturnExpressionNodeClass *Class // Std::Elk::AST::ReturnExpressionNode
var RightOpenRangeClass *Class // ::Std::RightOpenRange
var RightOpenRangeIteratorClass *Class
::Std::RightOpenRange::Iterator
RightOpenRange iterator class.
var ScopedMacroCallNodeClass *Class // Std::Elk::AST::ScopedMacroCallNode
var SealedClassErrorClass *Class
::Std::SealedClassError
Thrown when trying to inherit from a sealed class.
var SelfLiteralNodeClass *Class // Std::Elk::AST::SelfLiteralNode
var SetPatternNodeClass *Class // Std::Elk::AST::SetPatternNode
var SetterDeclarationNodeClass *Class // Std::Elk::AST::SetterDeclarationNode
var SignatureParameterNodeClass *Class // Std::Elk::AST::SignatureParameterNode
var SimpleSymbolLiteralNodeClass *Class // Std::Elk::AST::SimpleSymbolLiteralNode
var SingletonBlockExpressionNodeClass *Class // Std::Elk::AST::SingletonBlockExpressionNode
var SingletonTypeNodeClass *Class // Std::Elk::AST::SingletonTypeNode
var SpanClass *Class // Std::String::Span
var SplatExpressionNodeClass *Class // Std::Elk::AST::SplatExpressionNode
var StackTraceClass *Class // ::Std::StackTrace
var StackTraceIteratorClass *Class // ::Std::StackTrace::Iterator
var StringByteIteratorClass *Class // ::Std::String::ByteIterator
var StringCharIteratorClass *Class // ::Std::String::CharIterator
var StringClass *Class // ::Std::String
var StringGraphemeIteratorClass *Class // ::Std::String::GraphemeIterator
var StringInspectInterpolationNodeClass *Class // Std::Elk::AST::StringInspectInterpolationNode
var StringInterpolationNodeClass *Class // Std::Elk::AST::StringInterpolationNode
var StringLiteralContentSectionNodeClass *Class // Std::Elk::AST::StringLiteralContentSectionNode
var StructDeclarationNodeClass *Class // Std::Elk::AST::StructDeclarationNode
var SubscriptExpressionNodeClass *Class // Std::Elk::AST::SubscriptExpressionNode
var SwitchExpressionNodeClass *Class // Std::Elk::AST::SwitchExpressionNode
var SymbolArrayListLiteralNodeClass *Class // Std::Elk::AST::SymbolArrayListLiteralNode
var SymbolArrayTupleLiteralNodeClass *Class // Std::Elk::AST::SymbolArrayTupleLiteralNode
var SymbolClass *Class // ::Std::Symbol
var SymbolHashSetLiteralNodeClass *Class // Std::Elk::AST::SymbolHashSetLiteralNode
var SymbolKeyValueExpressionNodeClass *Class // Std::Elk::AST::SymbolKeyValueExpressionNode
var SymbolKeyValuePatternNodeClass *Class // Std::Elk::AST::SymbolKeyValuePatternNode
var SymbolMapClass *Class // ::Std::SymbolMap
var SyncDiagnosticListClass *Class // ::Std::Sync::DiagnosticList
var SyncDiagnosticListIteratorClass *Class // ::Std::Sync::DiagnosticList::Iterator
var ThreadClass *Class // ::Std::Thread
var ThreadPoolClass *Class // ::Std::ThreadPool
var ThrowExpressionNodeClass *Class // Std::Elk::AST::ThrowExpressionNode
var TimeClass *Class // ::Std::Time
var TimeSpanClass *Class // ::Std::Time::Span
var TimezoneClass *Class // ::Std::Timezone
var TrueClass *Class // ::Std::True
var TrueLiteralNodeClass *Class // Std::Elk::AST::TrueLiteralNode
var TryExpressionNodeClass *Class // Std::Elk::AST::TryExpressionNode
var TuplePatternNodeClass *Class // Std::Elk::AST::TuplePatternNode
var TypeDefinitionNodeClass *Class // Std::Elk::AST::TypeDefinitionNode
var TypeErrorClass *Class
::Std::TypeError
Thrown when an argument given to a method has an incorrect type.
var TypeExpressionNodeClass *Class // Std::Elk::AST::TypeExpressionNode
var TypeStatementNodeClass *Class // Std::Elk::AST::TypeStatementNode
var TypeofExpressionNodeClass *Class // Std::Elk::AST::TypeofExpressionNode
var UInt16Class *Class // ::Std::UInt16
var UInt16LiteralNodeClass *Class // Std::Elk::AST::UInt16LiteralNode
var UInt16LiteralNodeFormatErrorClass *Class // Std::Elk::AST::UInt16LiteralNode::FormatError
var UInt32Class *Class // ::Std::UInt32
var UInt32LiteralNodeClass *Class // Std::Elk::AST::UInt32LiteralNode
var UInt32LiteralNodeFormatErrorClass *Class // Std::Elk::AST::UInt32LiteralNode::FormatError
var UInt64Class *Class // ::Std::UInt64
var UInt64LiteralNodeClass *Class // Std::Elk::AST::UInt64LiteralNode
var UInt64LiteralNodeFormatErrorClass *Class // Std::Elk::AST::UInt64LiteralNode::FormatError
var UInt8Class *Class // ::Std::UInt8
var UInt8LiteralNodeClass *Class // Std::Elk::AST::UInt8LiteralNode
var UInt8LiteralNodeFormatErrorClass *Class // Std::Elk::AST::UInt8LiteralNode::FormatError
var UIntClass *Class // ::Std::UInt
var UIntLiteralNodeClass *Class // Std::Elk::AST::UIntLiteralNode
var UIntLiteralNodeFormatErrorClass *Class // Std::Elk::AST::UIntLiteralNode::FormatError
var UnaryExpressionNodeClass *Class // Std::Elk::AST::UnaryExpressionNode
var UnaryTypeNodeClass *Class // Std::Elk::AST::UnaryTypeNode
var UndefinedClass *Class
var UndefinedLiteralNodeClass *Class // Std::Elk::AST::UndefinedLiteralNode
var UnexpectedNilErrorClass *Class
::Std::UnexpectedNilError
Thrown when a `nil` value is encountered in a `must` expression.
var UnhygienicNodeClass *Class // Std::Elk::AST::UnhygienicNode
var UninterpolatedRegexLiteralNodeClass *Class // Std::Elk::AST::UninterpolatedRegexLiteralNode
var UnionTypeNodeClass *Class // Std::Elk::AST::UnionTypeNode
var UnlessExpressionNodeClass *Class // Std::Elk::AST::UnlessExpressionNode
var UnquoteNodeClass *Class // Std::Elk::AST::UnquoteNode
var UntilExpressionNodeClass *Class // Std::Elk::AST::UntilExpressionNode
var UsingAllEntryNodeClass *Class // Std::Elk::AST::UsingAllEntryNode
var UsingEntryWithSubentriesNodeClass *Class // Std::Elk::AST::UsingEntryWithSubentriesNode
var UsingExpressionNodeClass *Class // Std::Elk::AST::UsingExpressionNode
var UsingSubentryAsNodeClass *Class // Std::Elk::AST::UsingSubentryAsNode
var ValueClass *Class // ::Std::Value
var ValueDeclarationNodeClass *Class // Std::Elk::AST::ValueDeclarationNode
var ValuePatternDeclarationNodeClass *Class // Std::Elk::AST::ValuePatternDeclarationNode
var VariableDeclarationNodeClass *Class // Std::Elk::AST::VariableDeclarationNode
var VariablePatternDeclarationNodeClass *Class // Std::Elk::AST::VariablePatternDeclarationNode
var VariantTypeParameterNodeClass *Class // Std::Elk::AST::VariantTypeParameterNode
var VoidTypeNodeClass *Class // Std::Elk::AST::VoidTypeNode
var WaitGroupClass *Class // ::Std::Sync::WaitGroup
var WeakClass *Class // ::Std::Weak
var WhileExpressionNodeClass *Class // Std::Elk::AST::WhileExpressionNode
var WordArrayListLiteralNodeClass *Class // Std::Elk::AST::WordArrayListLiteralNode
var WordArrayTupleLiteralNodeClass *Class // Std::Elk::AST::WordArrayTupleLiteralNode
var WordHashSetLiteralNodeClass *Class // Std::Elk::AST::WordHashSetLiteralNode
var YieldExpressionNodeClass *Class // Std::Elk::AST::YieldExpressionNode
var ZeroDivisionErrorClass *Class
::Std::ZeroDivisionError
Thrown when an integer is divided by zero.
func NewSingletonClass ¶
func (*Class) CreateInstance ¶
Create a new instance of the class without initialising it.
func (*Class) DirectClass ¶
func (*Class) IncludeMixin ¶
Include the passed in mixin in this class.
func (*Class) InspectInheritance ¶
func (*Class) InspectParents ¶
func (*Class) InstanceVariables ¶
func (c *Class) InstanceVariables() *InstanceVariables
func (*Class) IsMixinProxy ¶
func (*Class) IsSingleton ¶
func (*Class) SetDirectClass ¶
func (*Class) SetMixinProxy ¶
func (c *Class) SetMixinProxy()
func (*Class) SetSingleton ¶
func (c *Class) SetSingleton()
func (*Class) SetSingletonName ¶
func (*Class) SetSuperclass ¶
func (*Class) SingletonClass ¶
type ClassOption ¶
type ClassOption = func(*Class)
Class constructor option function
func ClassWithConstants ¶
func ClassWithConstants(constants SymbolMap) ClassOption
func ClassWithConstructor ¶
func ClassWithConstructor(constructor ConstructorFunc) ClassOption
func ClassWithDefinedIvars ¶
func ClassWithDefinedIvars(names []Symbol) ClassOption
func ClassWithIvarIndices ¶
func ClassWithIvarIndices(ivarIndices IvarIndices) ClassOption
func ClassWithMetaClass ¶
func ClassWithMetaClass(metaClass *Class) ClassOption
func ClassWithMethods ¶
func ClassWithMethods(methods MethodMap) ClassOption
func ClassWithMixin ¶
func ClassWithMixin() ClassOption
func ClassWithMixinProxy ¶
func ClassWithMixinProxy() ClassOption
func ClassWithName ¶
func ClassWithName(name string) ClassOption
func ClassWithSingleton ¶
func ClassWithSingleton() ClassOption
func ClassWithSuperclass ¶
func ClassWithSuperclass(parent *Class) ClassOption
type ClosedRange ¶
Represents a closed range eg. `5...2`
func NewClosedRange ¶
func NewClosedRange(start, end Value) *ClosedRange
Create a new closed range class.
func (*ClosedRange) Class ¶
func (*ClosedRange) Class() *Class
func (*ClosedRange) Copy ¶
func (r *ClosedRange) Copy() Reference
func (*ClosedRange) DirectClass ¶
func (*ClosedRange) DirectClass() *Class
func (*ClosedRange) Error ¶
func (r *ClosedRange) Error() string
func (*ClosedRange) Inspect ¶
func (r *ClosedRange) Inspect() string
func (*ClosedRange) InstanceVariables ¶
func (r *ClosedRange) InstanceVariables() *InstanceVariables
func (*ClosedRange) SingletonClass ¶
func (*ClosedRange) SingletonClass() *Class
type ClosedRangeIterator ¶
type ClosedRangeIterator struct {
Range *ClosedRange
CurrentElement Value
}
func NewClosedRangeIterator ¶
func NewClosedRangeIterator(r *ClosedRange) *ClosedRangeIterator
func NewClosedRangeIteratorWithCurrentElement ¶
func NewClosedRangeIteratorWithCurrentElement(r *ClosedRange, currentElement Value) *ClosedRangeIterator
func (*ClosedRangeIterator) Class ¶
func (*ClosedRangeIterator) Class() *Class
func (*ClosedRangeIterator) Copy ¶
func (r *ClosedRangeIterator) Copy() Reference
func (*ClosedRangeIterator) DirectClass ¶
func (*ClosedRangeIterator) DirectClass() *Class
func (*ClosedRangeIterator) Error ¶
func (r *ClosedRangeIterator) Error() string
func (*ClosedRangeIterator) Inspect ¶
func (r *ClosedRangeIterator) Inspect() string
func (*ClosedRangeIterator) InstanceVariables ¶
func (*ClosedRangeIterator) InstanceVariables() *InstanceVariables
func (*ClosedRangeIterator) Reset ¶
func (r *ClosedRangeIterator) Reset()
func (*ClosedRangeIterator) SingletonClass ¶
func (*ClosedRangeIterator) SingletonClass() *Class
type ConstantContainer ¶
Struct for embedding, contains fields shared by Module, Mixin, Class, Struct
func (*ConstantContainer) AddConstant ¶
func (m *ConstantContainer) AddConstant(name Symbol, val Value)
Set the constant with the specified name to the given value.
func (*ConstantContainer) AddConstantString ¶
func (m *ConstantContainer) AddConstantString(name string, val Value)
Set the constant with the specified name to the given value.
func (*ConstantContainer) PrintableName ¶
func (m *ConstantContainer) PrintableName() string
Return a human readable name.
type ConstructorFunc ¶
Function that creates a new instance.
type Date ¶
type Date struct {
// contains filtered or unexported fields
}
Represents a calendar date (year, month, day). It is an inline value on both 32bit and 64bit systems. The year range is from `-4_194_304` to `4_194_303`
func MakeDateNormalize ¶
func (Date) AbbreviatedMonthName ¶
func (Date) AbbreviatedWeekdayName ¶
func (Date) AddDateSpan ¶
func (Date) AddDateTimeSpan ¶
func (d Date) AddDateTimeSpan(val *DateTimeSpan) *DateTime
func (Date) AddTimeSpan ¶
func (Date) DiffDateTime ¶
func (d Date) DiffDateTime(val *DateTime) *DateTimeSpan
Calculates the difference between this date and a datetime values. Returns a span.
func (Date) DirectClass ¶
func (Date) ISOYearDay ¶
func (Date) ISOYearLastTwo ¶
func (Date) InstanceVariables ¶
func (Date) InstanceVariables() *InstanceVariables
func (Date) IsSaturday ¶
func (Date) IsThursday ¶
func (Date) IsWednesday ¶
func (Date) MustFormat ¶
func (Date) SingletonClass ¶
func (Date) SubtractDateSpan ¶
Subtracts the given date span from the date.
func (Date) SubtractDateTimeSpan ¶
func (d Date) SubtractDateTimeSpan(val *DateTimeSpan) *DateTime
Subtracts the given datetime span from the date.
func (Date) SubtractTimeSpan ¶
Subtracts the given time span from the date.
func (Date) ToDateSpan ¶
func (Date) ToDateTime ¶
func (Date) ToDateTimeSpan ¶
func (d Date) ToDateTimeSpan() *DateTimeSpan
func (Date) ToDateTimeValue ¶
func (Date) WeekFromMonday ¶
The week number of the current year as a decimal number, range 00 to 53, starting with the first Monday as the first day of week 01.
func (Date) WeekFromSunday ¶
The week number of the current year as a decimal number, range 00 to 53, starting with the first Sunday as the first day of week 01.
func (Date) WeekdayFromMonday ¶
Specifies the day of the week (Monday = 1, ...).
func (Date) WeekdayFromSunday ¶
Specifies the day of the week (Sunday = 0, ...).
func (Date) WeekdayName ¶
func (Date) YearLastTwo ¶
type DateSpan ¶
type DateSpan struct {
// contains filtered or unexported fields
}
Represents the difference between two dates as a 32 bit number of months and 32 bit number of days. Can store up to 2 billion days and 2 billion months (178 million years).
func MakeDateSpan ¶
func (DateSpan) AddDateSpan ¶
func (DateSpan) AddDateTimeSpan ¶
func (d DateSpan) AddDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
func (DateSpan) AddTimeSpan ¶
func (d DateSpan) AddTimeSpan(other TimeSpan) *DateTimeSpan
func (DateSpan) DirectClass ¶
func (DateSpan) DivideBigFloat ¶
func (d DateSpan) DivideBigFloat(other *BigFloat) *DateTimeSpan
func (DateSpan) DivideBigInt ¶
func (d DateSpan) DivideBigInt(other *BigInt) *DateTimeSpan
func (DateSpan) DivideFloat ¶
func (d DateSpan) DivideFloat(other Float) *DateTimeSpan
func (DateSpan) DivideInt ¶
func (d DateSpan) DivideInt(other Value) *DateTimeSpan
func (DateSpan) DivideSmallInt ¶
func (d DateSpan) DivideSmallInt(other SmallInt) *DateTimeSpan
func (DateSpan) GreaterThan ¶
Check whether d is greater than other and return an error if something went wrong.
func (DateSpan) GreaterThanEqual ¶
Check whether d is greater than or equal to other and return an error if something went wrong.
func (DateSpan) GreaterThanEqualVal ¶
func (DateSpan) InDaysBigFloat ¶
func (DateSpan) InMicroseconds ¶
func (DateSpan) InMilliseconds ¶
func (DateSpan) InNanoseconds ¶
func (DateSpan) InstanceVariables ¶
func (DateSpan) InstanceVariables() *InstanceVariables
func (DateSpan) LessThan ¶
Check whether d is less than other and return an error if something went wrong.
func (DateSpan) LessThanEqual ¶
Check whether d is less than or equal to other and return an error if something went wrong.
func (DateSpan) MultiplyBigFloat ¶
func (d DateSpan) MultiplyBigFloat(other *BigFloat) *DateTimeSpan
func (DateSpan) MultiplyBigInt ¶
func (DateSpan) MultiplyFloat ¶
func (d DateSpan) MultiplyFloat(other Float) *DateTimeSpan
func (DateSpan) MultiplyInt ¶
func (DateSpan) MultiplySmallInt ¶
func (DateSpan) SingletonClass ¶
func (DateSpan) SubtractDateSpan ¶
func (DateSpan) SubtractDateTimeSpan ¶
func (d DateSpan) SubtractDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
func (DateSpan) SubtractTimeSpan ¶
func (d DateSpan) SubtractTimeSpan(other TimeSpan) *DateTimeSpan
func (DateSpan) ToDateTimeSpan ¶
func (d DateSpan) ToDateTimeSpan() *DateTimeSpan
func (DateSpan) TotalHours ¶
func (DateSpan) TotalMicroseconds ¶
func (DateSpan) TotalMilliseconds ¶
func (DateSpan) TotalMinutes ¶
func (DateSpan) TotalMonths ¶
func (DateSpan) TotalNanoseconds ¶
func (DateSpan) TotalSeconds ¶
func (DateSpan) TotalWeeks ¶
func (DateSpan) TotalYears ¶
type DateTime ¶
Elk's DateTime value
func DateTimeNow ¶
func DateTimeNow() *DateTime
func MakeDateTime ¶
func MakeDateTime(year, month, day, hour, min, sec, millisec, microsec, nsec int, zone *Timezone) DateTime
Create a new DateTime value.
func MakeZeroDateTime ¶
func MakeZeroDateTime() DateTime
func NewDateTime ¶
func NewDateTime(year, month, day, hour, min, sec, millisec, microsec, nsec int, zone *Timezone) *DateTime
Create a new DateTime object.
func ToElkDateTime ¶
func ToElkDateTimeValue ¶
func (DateTime) AbbreviatedMonthName ¶
func (DateTime) AbbreviatedWeekdayName ¶
func (*DateTime) AddDateSpan ¶
func (*DateTime) AddDateTimeSpan ¶
func (t *DateTime) AddDateTimeSpan(val *DateTimeSpan) *DateTime
func (*DateTime) AddTimeSpan ¶
func (DateTime) AttosecondsInSecond ¶
func (*DateTime) DiffDate ¶
func (t *DateTime) DiffDate(val Date) *DateTimeSpan
Calculates the difference between two datetime objects. Returns a span.
func (*DateTime) DiffDateTime ¶
func (t *DateTime) DiffDateTime(val *DateTime) *DateTimeSpan
Calculates the difference between two datetime objects. Returns a span.
func (DateTime) DirectClass ¶
func (*DateTime) Equal ¶
Check whether t is equal to other and return an error if something went wrong.
func (DateTime) FemtosecondsInSecond ¶
func (*DateTime) GreaterThan ¶
Check whether t is greater than other and return an error if something went wrong.
func (*DateTime) GreaterThanEqual ¶
Check whether t is greater than or equal to other and return an error if something went wrong.
func (*DateTime) GreaterThanEqualVal ¶
func (DateTime) ISOYearLastTwo ¶
func (DateTime) InstanceVariables ¶
func (t DateTime) InstanceVariables() *InstanceVariables
func (DateTime) IsSaturday ¶
func (DateTime) IsThursday ¶
func (DateTime) IsWednesday ¶
func (*DateTime) LessThan ¶
Check whether t is less than other and return an error if something went wrong.
func (*DateTime) LessThanEqual ¶
Check whether t is less than or equal to other and return an error if something went wrong.
func (DateTime) MeridiemLowercase ¶
func (DateTime) Microsecond ¶
func (DateTime) MicrosecondsInSecond ¶
func (DateTime) Millisecond ¶
func (DateTime) MustFormat ¶
func (DateTime) Nanosecond ¶
func (DateTime) NanosecondsInSecond ¶
func (DateTime) PicosecondsInSecond ¶
func (DateTime) SingletonClass ¶
func (*DateTime) StrictEqual ¶
func (*DateTime) SubtractDateSpan ¶
func (*DateTime) SubtractDateTimeSpan ¶
func (t *DateTime) SubtractDateTimeSpan(val *DateTimeSpan) *DateTime
func (*DateTime) SubtractTimeSpan ¶
func (DateTime) ToDateTimeSpan ¶
func (t DateTime) ToDateTimeSpan() *DateTimeSpan
func (DateTime) UnixAttoseconds ¶
func (DateTime) UnixFemtoseconds ¶
func (DateTime) UnixMicroseconds ¶
func (DateTime) UnixMilliseconds ¶
func (DateTime) UnixNanoseconds ¶
func (DateTime) UnixPicoseconds ¶
func (DateTime) UnixSeconds ¶
func (DateTime) UnixYoctoseconds ¶
func (DateTime) UnixZeptoseconds ¶
func (DateTime) WeekFromMonday ¶
The week number of the current year as a decimal number, range 00 to 53, starting with the first Monday as the first day of week 01.
func (DateTime) WeekFromSunday ¶
The week number of the current year as a decimal number, range 00 to 53, starting with the first Sunday as the first day of week 01.
func (DateTime) WeekdayFromMonday ¶
Specifies the day of the week (Monday = 1, ...).
func (DateTime) WeekdayFromSunday ¶
Specifies the day of the week (Sunday = 0, ...).
func (DateTime) WeekdayName ¶
func (DateTime) YearLastTwo ¶
func (DateTime) YoctosecondsInSecond ¶
func (DateTime) ZeptosecondsInSecond ¶
func (DateTime) ZoneAbbreviatedName ¶
func (DateTime) ZoneOffset ¶
func (DateTime) ZoneOffsetHourMinutes ¶
func (DateTime) ZoneOffsetHours ¶
func (DateTime) ZoneOffsetSeconds ¶
type DateTimeSpan ¶
Represents the difference between two datetimes. It is made up of a `Date::Span` and a `Time::Span`
func NewDateTimeSpan ¶
func NewDateTimeSpan(datespan DateSpan, timespan TimeSpan) *DateTimeSpan
func (*DateTimeSpan) AddDateSpan ¶
func (d *DateTimeSpan) AddDateSpan(other DateSpan) *DateTimeSpan
func (*DateTimeSpan) AddDateTimeSpan ¶
func (d *DateTimeSpan) AddDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
func (*DateTimeSpan) AddMutDateTimeSpan ¶
func (d *DateTimeSpan) AddMutDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
func (*DateTimeSpan) AddMutTimeSpan ¶
func (d *DateTimeSpan) AddMutTimeSpan(other TimeSpan) *DateTimeSpan
func (*DateTimeSpan) AddTimeSpan ¶
func (d *DateTimeSpan) AddTimeSpan(other TimeSpan) *DateTimeSpan
func (*DateTimeSpan) Class ¶
func (*DateTimeSpan) Class() *Class
func (*DateTimeSpan) Cmp ¶
func (x *DateTimeSpan) Cmp(y *DateTimeSpan) int
func (*DateTimeSpan) CompareVal ¶
func (d *DateTimeSpan) CompareVal(other Value) (Value, Value)
func (*DateTimeSpan) Copy ¶
func (d *DateTimeSpan) Copy() Reference
func (*DateTimeSpan) Days ¶
func (d *DateTimeSpan) Days() int
func (*DateTimeSpan) DirectClass ¶
func (*DateTimeSpan) DirectClass() *Class
func (*DateTimeSpan) DivideBigFloat ¶
func (d *DateTimeSpan) DivideBigFloat(other *BigFloat) *DateTimeSpan
func (*DateTimeSpan) DivideBigInt ¶
func (d *DateTimeSpan) DivideBigInt(other *BigInt) *DateTimeSpan
func (*DateTimeSpan) DivideFloat ¶
func (d *DateTimeSpan) DivideFloat(other Float) *DateTimeSpan
func (*DateTimeSpan) DivideInt ¶
func (d *DateTimeSpan) DivideInt(other Value) *DateTimeSpan
func (*DateTimeSpan) DivideSmallInt ¶
func (d *DateTimeSpan) DivideSmallInt(other SmallInt) *DateTimeSpan
func (*DateTimeSpan) Dup ¶
func (d *DateTimeSpan) Dup() *DateTimeSpan
func (*DateTimeSpan) Equal ¶
func (d *DateTimeSpan) Equal(other Value) bool
func (*DateTimeSpan) Error ¶
func (d *DateTimeSpan) Error() string
func (*DateTimeSpan) GreaterThan ¶
func (d *DateTimeSpan) GreaterThan(other Value) (result bool, err Value)
Check whether d is greater than other and return an error if something went wrong.
func (*DateTimeSpan) GreaterThanEqual ¶
func (d *DateTimeSpan) GreaterThanEqual(other Value) (result bool, err Value)
Check whether d is greater than or equal to other and return an error if something went wrong.
func (*DateTimeSpan) GreaterThanEqualVal ¶
func (d *DateTimeSpan) GreaterThanEqualVal(other Value) (Value, Value)
func (*DateTimeSpan) GreaterThanVal ¶
func (d *DateTimeSpan) GreaterThanVal(other Value) (Value, Value)
func (*DateTimeSpan) Hours ¶
func (d *DateTimeSpan) Hours() int
func (*DateTimeSpan) InDays ¶
func (d *DateTimeSpan) InDays() Float
func (*DateTimeSpan) InHours ¶
func (d *DateTimeSpan) InHours() Float
func (*DateTimeSpan) InMicroseconds ¶
func (d *DateTimeSpan) InMicroseconds() Float
func (*DateTimeSpan) InMilliseconds ¶
func (d *DateTimeSpan) InMilliseconds() Float
func (*DateTimeSpan) InMinutes ¶
func (d *DateTimeSpan) InMinutes() Float
func (*DateTimeSpan) InMonths ¶
func (d *DateTimeSpan) InMonths() Float
func (*DateTimeSpan) InNanoseconds ¶
func (d *DateTimeSpan) InNanoseconds() Float
func (*DateTimeSpan) InSeconds ¶
func (d *DateTimeSpan) InSeconds() Float
func (*DateTimeSpan) InWeeks ¶
func (d *DateTimeSpan) InWeeks() Float
func (*DateTimeSpan) InYears ¶
func (d *DateTimeSpan) InYears() Float
func (*DateTimeSpan) Inspect ¶
func (d *DateTimeSpan) Inspect() string
func (*DateTimeSpan) InstanceVariables ¶
func (*DateTimeSpan) InstanceVariables() *InstanceVariables
func (*DateTimeSpan) IsZero ¶
func (d *DateTimeSpan) IsZero() bool
func (*DateTimeSpan) LessThan ¶
func (d *DateTimeSpan) LessThan(other Value) (result bool, err Value)
Check whether d is less than other and return an error if something went wrong.
func (*DateTimeSpan) LessThanEqual ¶
func (d *DateTimeSpan) LessThanEqual(other Value) (result bool, err Value)
Check whether d is less than or equal to other and return an error if something went wrong.
func (*DateTimeSpan) LessThanVal ¶
func (d *DateTimeSpan) LessThanVal(other Value) (Value, Value)
func (*DateTimeSpan) Microseconds ¶
func (d *DateTimeSpan) Microseconds() int
func (*DateTimeSpan) Milliseconds ¶
func (d *DateTimeSpan) Milliseconds() int
func (*DateTimeSpan) Minutes ¶
func (d *DateTimeSpan) Minutes() int
func (*DateTimeSpan) Months ¶
func (d *DateTimeSpan) Months() int
func (*DateTimeSpan) MultiplyBigFloat ¶
func (d *DateTimeSpan) MultiplyBigFloat(other *BigFloat) *DateTimeSpan
func (*DateTimeSpan) MultiplyBigInt ¶
func (d *DateTimeSpan) MultiplyBigInt(other *BigInt) *DateTimeSpan
func (*DateTimeSpan) MultiplyFloat ¶
func (d *DateTimeSpan) MultiplyFloat(other Float) *DateTimeSpan
func (*DateTimeSpan) MultiplyInt ¶
func (d *DateTimeSpan) MultiplyInt(other Value) *DateTimeSpan
func (*DateTimeSpan) MultiplySmallInt ¶
func (d *DateTimeSpan) MultiplySmallInt(other SmallInt) *DateTimeSpan
func (*DateTimeSpan) Nanoseconds ¶
func (d *DateTimeSpan) Nanoseconds() int
func (*DateTimeSpan) Negate ¶
func (d *DateTimeSpan) Negate() *DateTimeSpan
func (*DateTimeSpan) Normalise ¶
func (d *DateTimeSpan) Normalise()
func (*DateTimeSpan) Seconds ¶
func (d *DateTimeSpan) Seconds() int
func (*DateTimeSpan) SingletonClass ¶
func (*DateTimeSpan) SingletonClass() *Class
func (*DateTimeSpan) String ¶
func (d *DateTimeSpan) String() string
func (*DateTimeSpan) SubtractDateSpan ¶
func (d *DateTimeSpan) SubtractDateSpan(other DateSpan) *DateTimeSpan
func (*DateTimeSpan) SubtractDateTimeSpan ¶
func (d *DateTimeSpan) SubtractDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
func (*DateTimeSpan) SubtractTimeSpan ¶
func (d *DateTimeSpan) SubtractTimeSpan(other TimeSpan) *DateTimeSpan
func (*DateTimeSpan) ToDateTime ¶
func (d *DateTimeSpan) ToDateTime() *DateTime
func (*DateTimeSpan) ToDateTimeWithZone ¶
func (d *DateTimeSpan) ToDateTimeWithZone(zone *Timezone) *DateTime
func (*DateTimeSpan) ToString ¶
func (d *DateTimeSpan) ToString() String
func (*DateTimeSpan) TotalDays ¶
func (d *DateTimeSpan) TotalDays() Value
func (*DateTimeSpan) TotalHours ¶
func (d *DateTimeSpan) TotalHours() Value
func (*DateTimeSpan) TotalMicroseconds ¶
func (d *DateTimeSpan) TotalMicroseconds() Value
func (*DateTimeSpan) TotalMilliseconds ¶
func (d *DateTimeSpan) TotalMilliseconds() Value
func (*DateTimeSpan) TotalMinutes ¶
func (d *DateTimeSpan) TotalMinutes() Value
func (*DateTimeSpan) TotalMonths ¶
func (d *DateTimeSpan) TotalMonths() Value
func (*DateTimeSpan) TotalNanoseconds ¶
func (d *DateTimeSpan) TotalNanoseconds() Value
func (*DateTimeSpan) TotalSeconds ¶
func (d *DateTimeSpan) TotalSeconds() Value
func (*DateTimeSpan) TotalWeeks ¶
func (d *DateTimeSpan) TotalWeeks() Value
func (*DateTimeSpan) TotalYears ¶
func (d *DateTimeSpan) TotalYears() Value
func (*DateTimeSpan) Years ¶
func (d *DateTimeSpan) Years() int
type Diagnostic ¶
type Diagnostic diagnostic.Diagnostic
func (*Diagnostic) Class ¶
func (*Diagnostic) Class() *Class
func (*Diagnostic) Copy ¶
func (d *Diagnostic) Copy() Reference
func (*Diagnostic) DirectClass ¶
func (*Diagnostic) DirectClass() *Class
func (*Diagnostic) Error ¶
func (d *Diagnostic) Error() string
func (*Diagnostic) Inspect ¶
func (d *Diagnostic) Inspect() string
func (*Diagnostic) InstanceVariables ¶
func (*Diagnostic) InstanceVariables() *InstanceVariables
func (*Diagnostic) SingletonClass ¶
func (*Diagnostic) SingletonClass() *Class
type DiagnosticList ¶
type DiagnosticList diagnostic.DiagnosticList
func (*DiagnosticList) Append ¶
func (dl *DiagnosticList) Append(elements ...*Diagnostic)
Add new elements.
func (*DiagnosticList) At ¶
func (dl *DiagnosticList) At(i int) *Diagnostic
Get an element under the given index without bounds checking
func (*DiagnosticList) Capacity ¶
func (dl *DiagnosticList) Capacity() int
func (*DiagnosticList) Class ¶
func (*DiagnosticList) Class() *Class
func (*DiagnosticList) Concat ¶
func (l *DiagnosticList) Concat(other Value) (*ArrayList, Value)
Concatenate another value with this list, creating a new list, and return the result. If the operation is illegal an error will be returned.
func (*DiagnosticList) Copy ¶
func (d *DiagnosticList) Copy() Reference
func (*DiagnosticList) DirectClass ¶
func (*DiagnosticList) DirectClass() *Class
func (*DiagnosticList) Error ¶
func (d *DiagnosticList) Error() string
func (*DiagnosticList) Get ¶
func (dl *DiagnosticList) Get(index int) (Value, Value)
Get an element under the given index.
func (*DiagnosticList) Grow ¶
func (dl *DiagnosticList) Grow(newSlots int)
Expand the array list to have empty slots for new elements.
func (*DiagnosticList) Inspect ¶
func (d *DiagnosticList) Inspect() string
func (*DiagnosticList) InstanceVariables ¶
func (*DiagnosticList) InstanceVariables() *InstanceVariables
func (*DiagnosticList) LeftCapacity ¶
func (l *DiagnosticList) LeftCapacity() int
func (*DiagnosticList) Length ¶
func (dl *DiagnosticList) Length() int
func (*DiagnosticList) Repeat ¶
func (l *DiagnosticList) Repeat(other Value) (*DiagnosticList, Value)
Repeat the content of this list n times and return a new list containing the result. If the operation is illegal an error will be returned.
func (*DiagnosticList) Set ¶
func (l *DiagnosticList) Set(index int, val *Diagnostic) Value
Set an element under the given index.
func (*DiagnosticList) SetAt ¶
func (l *DiagnosticList) SetAt(index int, val *Diagnostic)
Set an element under the given index without bounds checking.
func (*DiagnosticList) SingletonClass ¶
func (*DiagnosticList) SingletonClass() *Class
func (*DiagnosticList) Subscript ¶
func (dl *DiagnosticList) Subscript(key Value) (Value, Value)
Get an element under the given index.
func (*DiagnosticList) SubscriptSet ¶
func (dl *DiagnosticList) SubscriptSet(key Value, val *Diagnostic) Value
Set an element under the given index.
type DiagnosticListIterator ¶
type DiagnosticListIterator struct {
DiagnosticList *DiagnosticList
Index int
}
func NewDiagnosticListIterator ¶
func NewDiagnosticListIterator(list *DiagnosticList) *DiagnosticListIterator
func NewDiagnosticListIteratorWithIndex ¶
func NewDiagnosticListIteratorWithIndex(list *DiagnosticList, index int) *DiagnosticListIterator
func (*DiagnosticListIterator) Class ¶
func (*DiagnosticListIterator) Class() *Class
func (*DiagnosticListIterator) Copy ¶
func (l *DiagnosticListIterator) Copy() Reference
func (*DiagnosticListIterator) DirectClass ¶
func (*DiagnosticListIterator) DirectClass() *Class
func (*DiagnosticListIterator) Error ¶
func (l *DiagnosticListIterator) Error() string
func (*DiagnosticListIterator) Inspect ¶
func (l *DiagnosticListIterator) Inspect() string
func (*DiagnosticListIterator) InstanceVariables ¶
func (*DiagnosticListIterator) InstanceVariables() *InstanceVariables
func (*DiagnosticListIterator) Next ¶
func (l *DiagnosticListIterator) Next() (Value, Value)
func (*DiagnosticListIterator) Reset ¶
func (l *DiagnosticListIterator) Reset()
func (*DiagnosticListIterator) SingletonClass ¶
func (*DiagnosticListIterator) SingletonClass() *Class
type EndlessClosedRange ¶
type EndlessClosedRange struct {
Start Value // start value
}
Represents an endless closed range eg. `5...`
func NewEndlessClosedRange ¶
func NewEndlessClosedRange(start Value) *EndlessClosedRange
Create a new endless closed range class.
func (*EndlessClosedRange) Class ¶
func (*EndlessClosedRange) Class() *Class
func (*EndlessClosedRange) Copy ¶
func (r *EndlessClosedRange) Copy() Reference
func (*EndlessClosedRange) DirectClass ¶
func (*EndlessClosedRange) DirectClass() *Class
func (*EndlessClosedRange) Error ¶
func (r *EndlessClosedRange) Error() string
func (*EndlessClosedRange) Inspect ¶
func (r *EndlessClosedRange) Inspect() string
func (*EndlessClosedRange) InstanceVariables ¶
func (r *EndlessClosedRange) InstanceVariables() *InstanceVariables
func (*EndlessClosedRange) SingletonClass ¶
func (*EndlessClosedRange) SingletonClass() *Class
type EndlessClosedRangeIterator ¶
type EndlessClosedRangeIterator struct {
Range *EndlessClosedRange
CurrentElement Value
}
func NewEndlessClosedRangeIterator ¶
func NewEndlessClosedRangeIterator(r *EndlessClosedRange) *EndlessClosedRangeIterator
func NewEndlessClosedRangeIteratorWithCurrentElement ¶
func NewEndlessClosedRangeIteratorWithCurrentElement(r *EndlessClosedRange, currentElement Value) *EndlessClosedRangeIterator
func (*EndlessClosedRangeIterator) Class ¶
func (*EndlessClosedRangeIterator) Class() *Class
func (*EndlessClosedRangeIterator) Copy ¶
func (r *EndlessClosedRangeIterator) Copy() Reference
func (*EndlessClosedRangeIterator) DirectClass ¶
func (*EndlessClosedRangeIterator) DirectClass() *Class
func (*EndlessClosedRangeIterator) Error ¶
func (r *EndlessClosedRangeIterator) Error() string
func (*EndlessClosedRangeIterator) Inspect ¶
func (r *EndlessClosedRangeIterator) Inspect() string
func (*EndlessClosedRangeIterator) InstanceVariables ¶
func (*EndlessClosedRangeIterator) InstanceVariables() *InstanceVariables
func (*EndlessClosedRangeIterator) Reset ¶
func (r *EndlessClosedRangeIterator) Reset()
func (*EndlessClosedRangeIterator) SingletonClass ¶
func (*EndlessClosedRangeIterator) SingletonClass() *Class
type EndlessOpenRange ¶
type EndlessOpenRange struct {
Start Value // start value
}
Represents an endless open range eg. `5<..`
func NewEndlessOpenRange ¶
func NewEndlessOpenRange(start Value) *EndlessOpenRange
Create a new endless open range class.
func (*EndlessOpenRange) Class ¶
func (*EndlessOpenRange) Class() *Class
func (*EndlessOpenRange) Copy ¶
func (r *EndlessOpenRange) Copy() Reference
func (*EndlessOpenRange) DirectClass ¶
func (*EndlessOpenRange) DirectClass() *Class
func (*EndlessOpenRange) Error ¶
func (r *EndlessOpenRange) Error() string
func (*EndlessOpenRange) Inspect ¶
func (r *EndlessOpenRange) Inspect() string
func (*EndlessOpenRange) InstanceVariables ¶
func (r *EndlessOpenRange) InstanceVariables() *InstanceVariables
func (*EndlessOpenRange) SingletonClass ¶
func (*EndlessOpenRange) SingletonClass() *Class
type EndlessOpenRangeIterator ¶
type EndlessOpenRangeIterator struct {
Range *EndlessOpenRange
CurrentElement Value
}
func NewEndlessOpenRangeIterator ¶
func NewEndlessOpenRangeIterator(r *EndlessOpenRange) *EndlessOpenRangeIterator
func NewEndlessOpenRangeIteratorWithCurrentElement ¶
func NewEndlessOpenRangeIteratorWithCurrentElement(r *EndlessOpenRange, currentElement Value) *EndlessOpenRangeIterator
func (*EndlessOpenRangeIterator) Class ¶
func (*EndlessOpenRangeIterator) Class() *Class
func (*EndlessOpenRangeIterator) Copy ¶
func (r *EndlessOpenRangeIterator) Copy() Reference
func (*EndlessOpenRangeIterator) DirectClass ¶
func (*EndlessOpenRangeIterator) DirectClass() *Class
func (*EndlessOpenRangeIterator) Error ¶
func (r *EndlessOpenRangeIterator) Error() string
func (*EndlessOpenRangeIterator) Inspect ¶
func (r *EndlessOpenRangeIterator) Inspect() string
func (*EndlessOpenRangeIterator) InstanceVariables ¶
func (*EndlessOpenRangeIterator) InstanceVariables() *InstanceVariables
func (*EndlessOpenRangeIterator) Reset ¶
func (r *EndlessOpenRangeIterator) Reset()
func (*EndlessOpenRangeIterator) SingletonClass ¶
func (*EndlessOpenRangeIterator) SingletonClass() *Class
type FalseType ¶
type FalseType struct{}
func (FalseType) DirectClass ¶
func (FalseType) InstanceVariables ¶
func (FalseType) InstanceVariables() *InstanceVariables
func (FalseType) SingletonClass ¶
type Float ¶
type Float float64
Elk's Float value
func (Float) Centuries ¶
func (f Float) Centuries() *DateTimeSpan
func (Float) Cmp ¶
Cmp compares x and y and returns:
-1 if x < y 0 if x == y +1 if x > y
Panics if x or y are NaN.
func (Float) CompareVal ¶
Returns 1 if i is greater than other Returns 0 if both are equal. Returns -1 if i is less than other. Returns nil if the comparison was impossible (NaN)
func (Float) Days ¶
func (f Float) Days() *DateTimeSpan
func (Float) DirectClass ¶
func (Float) EqualVal ¶
Check whether f is equal to other and return an error if something went wrong.
func (Float) ExponentiateVal ¶
ExponentiateVal by another value and return an error if something went wrong.
func (Float) GreaterThan ¶
Check whether f is greater than other and return an error if something went wrong.
func (Float) GreaterThanEqual ¶
Check whether f is greater than or equal to other and return an error if something went wrong.
func (Float) GreaterThanEqualVal ¶
Check whether f is greater than or equal to other and return an error if something went wrong.
func (Float) GreaterThanVal ¶
Check whether f is greater than other and return an error if something went wrong.
func (Float) InstanceVariables ¶
func (f Float) InstanceVariables() *InstanceVariables
func (Float) IsInf ¶
IsInf reports whether f is an infinity, according to sign. If sign > 0, IsInf reports whether f is positive infinity. If sign < 0, IsInf reports whether f is negative infinity. If sign == 0, IsInf reports whether f is either infinity.
func (Float) LaxEqualVal ¶
Check whether f is equal to other
func (Float) LessThan ¶
Check whether f is less than other and return an error if something went wrong.
func (Float) LessThanEqual ¶
Check whether f is less than or equal to other and return an error if something went wrong.
func (Float) LessThanEqualVal ¶
Check whether f is less than or equal to other and return an error if something went wrong.
func (Float) LessThanVal ¶
Check whether f is less than other and return an error if something went wrong.
func (Float) Microseconds ¶
func (Float) Millenia ¶
func (f Float) Millenia() *DateTimeSpan
func (Float) Milliseconds ¶
func (Float) ModuloVal ¶
Perform modulo by another numeric value and return an error if something went wrong.
func (Float) Months ¶
func (f Float) Months() *DateTimeSpan
func (Float) MultiplyVal ¶
Add another value and return an error if something went wrong.
func (Float) Nanoseconds ¶
func (Float) SingletonClass ¶
func (Float) StrictEqualVal ¶
Check whether f is strictly equal to other and return an error if something went wrong.
func (Float) SubtractVal ¶
SubtractVal another value and return an error if something went wrong.
func (Float) Weeks ¶
func (f Float) Weeks() *DateTimeSpan
func (Float) Years ¶
func (f Float) Years() *DateTimeSpan
type Float32 ¶
type Float32 float32
Elk's Float32 value
func (Float32) DirectClass ¶
func (Float32) ExponentiateVal ¶
ExponentiateVal by the right value.
func (Float32) GreaterThanEqualVal ¶
func (Float32) InstanceVariables ¶
func (f Float32) InstanceVariables() *InstanceVariables
func (Float32) IsInf ¶
IsInf reports whether f is an infinity, according to sign. If sign > 0, IsInf reports whether f is positive infinity. If sign < 0, IsInf reports whether f is negative infinity. If sign == 0, IsInf reports whether f is either infinity.
func (Float32) SingletonClass ¶
func (Float32) StrictEqualVal ¶
type Float64 ¶
type Float64 float64
Elk's Float64 value
func (Float64) DirectClass ¶
func (Float64) ExponentiateVal ¶
ExponentiateVal by the right value.
func (Float64) GreaterThanEqualVal ¶
func (Float64) InstanceVariables ¶
func (f Float64) InstanceVariables() *InstanceVariables
func (Float64) IsInf ¶
IsInf reports whether f is an infinity, according to sign. If sign > 0, IsInf reports whether f is positive infinity. If sign < 0, IsInf reports whether f is negative infinity. If sign == 0, IsInf reports whether f is either infinity.
func (Float64) SingletonClass ¶
func (Float64) StrictEqualVal ¶
type Function ¶
type Function interface {
Reference
// The number of parameters in total
ParameterCount() int
// The number of optional parameters with default values
OptionalParameterCount() int
}
Elk function object
type GlobalObjectType ¶
type GlobalObjectType struct{}
func (GlobalObjectType) Class ¶
func (GlobalObjectType) Class() *Class
func (GlobalObjectType) Copy ¶
func (g GlobalObjectType) Copy() Reference
func (GlobalObjectType) DirectClass ¶
func (GlobalObjectType) DirectClass() *Class
func (GlobalObjectType) Error ¶
func (g GlobalObjectType) Error() string
func (GlobalObjectType) Inspect ¶
func (GlobalObjectType) Inspect() string
func (GlobalObjectType) InstanceVariables ¶
func (GlobalObjectType) InstanceVariables() *InstanceVariables
func (GlobalObjectType) SingletonClass ¶
func (GlobalObjectType) SingletonClass() *Class
type HashMap ¶
func NewHashMap ¶
func (*HashMap) DirectClass ¶
func (*HashMap) InstanceVariables ¶
func (*HashMap) InstanceVariables() *InstanceVariables
func (*HashMap) LeftCapacity ¶
func (*HashMap) SingletonClass ¶
type HashMapIterator ¶
func NewHashMapIterator ¶
func NewHashMapIterator(hmap *HashMap) *HashMapIterator
func NewHashMapIteratorWithIndex ¶
func NewHashMapIteratorWithIndex(hmap *HashMap, index int) *HashMapIterator
func (*HashMapIterator) Class ¶
func (*HashMapIterator) Class() *Class
func (*HashMapIterator) Copy ¶
func (h *HashMapIterator) Copy() Reference
func (*HashMapIterator) DirectClass ¶
func (*HashMapIterator) DirectClass() *Class
func (*HashMapIterator) Error ¶
func (h *HashMapIterator) Error() string
func (*HashMapIterator) Inspect ¶
func (h *HashMapIterator) Inspect() string
func (*HashMapIterator) InstanceVariables ¶
func (*HashMapIterator) InstanceVariables() *InstanceVariables
func (*HashMapIterator) Next ¶
func (h *HashMapIterator) Next() (Value, Value)
func (*HashMapIterator) Reset ¶
func (h *HashMapIterator) Reset()
func (*HashMapIterator) SingletonClass ¶
func (*HashMapIterator) SingletonClass() *Class
type HashRecord ¶
type HashRecord HashMap
func NewHashRecord ¶
func NewHashRecord(capacity int) *HashRecord
func (*HashRecord) Class ¶
func (*HashRecord) Class() *Class
func (*HashRecord) Copy ¶
func (h *HashRecord) Copy() Reference
func (*HashRecord) DirectClass ¶
func (*HashRecord) DirectClass() *Class
func (*HashRecord) Error ¶
func (h *HashRecord) Error() string
func (*HashRecord) Inspect ¶
func (h *HashRecord) Inspect() string
func (*HashRecord) InstanceVariables ¶
func (*HashRecord) InstanceVariables() *InstanceVariables
func (*HashRecord) Length ¶
func (h *HashRecord) Length() int
func (*HashRecord) SingletonClass ¶
func (*HashRecord) SingletonClass() *Class
type HashRecordIterator ¶
type HashRecordIterator struct {
HashRecord *HashRecord
Index int
}
func NewHashRecordIterator ¶
func NewHashRecordIterator(hrec *HashRecord) *HashRecordIterator
func NewHashRecordIteratorWithIndex ¶
func NewHashRecordIteratorWithIndex(hrec *HashRecord, index int) *HashRecordIterator
func (*HashRecordIterator) Class ¶
func (*HashRecordIterator) Class() *Class
func (*HashRecordIterator) Copy ¶
func (h *HashRecordIterator) Copy() Reference
func (*HashRecordIterator) DirectClass ¶
func (*HashRecordIterator) DirectClass() *Class
func (*HashRecordIterator) Error ¶
func (h *HashRecordIterator) Error() string
func (*HashRecordIterator) Inspect ¶
func (h *HashRecordIterator) Inspect() string
func (*HashRecordIterator) InstanceVariables ¶
func (*HashRecordIterator) InstanceVariables() *InstanceVariables
func (*HashRecordIterator) Next ¶
func (h *HashRecordIterator) Next() (Value, Value)
func (*HashRecordIterator) Reset ¶
func (h *HashRecordIterator) Reset()
func (*HashRecordIterator) SingletonClass ¶
func (*HashRecordIterator) SingletonClass() *Class
type HashSet ¶
func NewHashSet ¶
func (*HashSet) DirectClass ¶
func (*HashSet) InstanceVariables ¶
func (*HashSet) InstanceVariables() *InstanceVariables
func (*HashSet) LeftCapacity ¶
func (*HashSet) SingletonClass ¶
type HashSetIterator ¶
func NewHashSetIterator ¶
func NewHashSetIterator(set *HashSet) *HashSetIterator
func NewHashSetIteratorWithIndex ¶
func NewHashSetIteratorWithIndex(set *HashSet, index int) *HashSetIterator
func (*HashSetIterator) Class ¶
func (*HashSetIterator) Class() *Class
func (*HashSetIterator) Copy ¶
func (h *HashSetIterator) Copy() Reference
func (*HashSetIterator) DirectClass ¶
func (*HashSetIterator) DirectClass() *Class
func (*HashSetIterator) Error ¶
func (h *HashSetIterator) Error() string
func (*HashSetIterator) Inspect ¶
func (h *HashSetIterator) Inspect() string
func (*HashSetIterator) InstanceVariables ¶
func (*HashSetIterator) InstanceVariables() *InstanceVariables
func (*HashSetIterator) Next ¶
func (h *HashSetIterator) Next() (Value, Value)
func (*HashSetIterator) Reset ¶
func (h *HashSetIterator) Reset()
func (*HashSetIterator) SingletonClass ¶
func (*HashSetIterator) SingletonClass() *Class
type ImmutableBox ¶
type ImmutableBox Value
Box wraps another value, it's a read only pointer to another `Value`.
func NewImmutableBox ¶
func NewImmutableBox(v Value) *ImmutableBox
func (*ImmutableBox) Class ¶
func (*ImmutableBox) Class() *Class
func (*ImmutableBox) Copy ¶
func (b *ImmutableBox) Copy() Reference
func (*ImmutableBox) DirectClass ¶
func (*ImmutableBox) DirectClass() *Class
func (*ImmutableBox) Error ¶
func (b *ImmutableBox) Error() string
func (*ImmutableBox) Inspect ¶
func (b *ImmutableBox) Inspect() string
func (*ImmutableBox) InstanceVariables ¶
func (*ImmutableBox) InstanceVariables() *InstanceVariables
func (*ImmutableBox) Next ¶
func (b *ImmutableBox) Next(step int) *ImmutableBox
Return the box of the next value in memory
func (*ImmutableBox) Prev ¶
func (b *ImmutableBox) Prev(step int) *ImmutableBox
Return the box of the previous value in memory
func (*ImmutableBox) SingletonClass ¶
func (*ImmutableBox) SingletonClass() *Class
func (*ImmutableBox) ToBox ¶
func (b *ImmutableBox) ToBox() *Box
type Inspectable ¶
type Inspectable interface {
Inspect() string
}
type InstanceVariables ¶
type InstanceVariables []Value
A slice containing instance variables of an Elk value
func (*InstanceVariables) BoxOf ¶
func (i *InstanceVariables) BoxOf(index int) *Box
func (*InstanceVariables) ExpandUpToIndex ¶
func (i *InstanceVariables) ExpandUpToIndex(index int)
func (InstanceVariables) Get ¶
func (i InstanceVariables) Get(index int) Value
func (InstanceVariables) Length ¶
func (i InstanceVariables) Length() int
func (*InstanceVariables) Set ¶
func (i *InstanceVariables) Set(index int, val Value)
type Int16 ¶
type Int16 int16
Elk's Int16 value
func MustParseInt16 ¶
func (Int16) BitwiseAnd ¶
Perform a bitwise AND.
func (Int16) BitwiseAndNot ¶
Perform a bitwise AND NOT.
func (Int16) BitwiseXor ¶
Perform a bitwise XOR.
func (Int16) DirectClass ¶
func (Int16) InstanceVariables ¶
func (i Int16) InstanceVariables() *InstanceVariables
func (Int16) SingletonClass ¶
func (Int16) StrictEqualVal ¶
type Int32 ¶
type Int32 int32
Elk's Int32 value
func MustParseInt32 ¶
func (Int32) BitwiseAnd ¶
Perform a bitwise AND.
func (Int32) BitwiseAndNot ¶
Perform a bitwise AND NOT.
func (Int32) BitwiseXor ¶
Perform a bitwise XOR.
func (Int32) DirectClass ¶
func (Int32) InstanceVariables ¶
func (i Int32) InstanceVariables() *InstanceVariables
func (Int32) SingletonClass ¶
func (Int32) StrictEqualVal ¶
type Int64 ¶
type Int64 int64
Elk's Int64 value
func MustParseInt64 ¶
func (Int64) BitwiseAnd ¶
Perform a bitwise AND.
func (Int64) BitwiseAndNot ¶
Perform a bitwise AND NOT.
func (Int64) BitwiseXor ¶
Perform a bitwise XOR.
func (Int64) DirectClass ¶
func (Int64) InstanceVariables ¶
func (i Int64) InstanceVariables() *InstanceVariables
func (Int64) SingletonClass ¶
func (Int64) StrictEqualVal ¶
type Int8 ¶
type Int8 int8
Elk's Int8 value
func MustParseInt8 ¶
func (Int8) BitwiseAndNot ¶
Perform a bitwise AND NOT.
func (Int8) DirectClass ¶
func (Int8) InstanceVariables ¶
func (i Int8) InstanceVariables() *InstanceVariables
func (Int8) SingletonClass ¶
func (Int8) StrictEqualVal ¶
type Interface ¶
type Interface struct {
ConstantContainer
// contains filtered or unexported fields
}
Represents an Elk interface.
var CollectionInterface *Interface
::Std::Collection
var ColorizerInterface *Interface // ::Std::Colorizer
var Float32ConvertibleInterface *Interface // ::Std::Float32::Convertible
var Float64ConvertibleInterface *Interface // ::Std::Float64::Convertible
var ImmutableCollectionInterface *Interface
::Std::ImmutableCollection
var IterableInterface *Interface
::Std::Iterable
var IteratorInterface *Interface
::Std::Iterator
var PrimitiveIterableInterface *Interface
::Std::PrimitiveIterable
func NewInterfaceWithOptions ¶
func NewInterfaceWithOptions(opts ...InterfaceOption) *Interface
Create a new class.
func (*Interface) DirectClass ¶
func (*Interface) InstanceVariables ¶
func (i *Interface) InstanceVariables() *InstanceVariables
func (*Interface) SingletonClass ¶
type InterfaceOption ¶
type InterfaceOption = func(*Interface)
Interface constructor option function
func InterfaceWithName ¶
func InterfaceWithName(name string) InterfaceOption
type IvarIndices ¶
Maps instance variable names to their indices
func (*IvarIndices) Class ¶
func (*IvarIndices) Class() *Class
func (*IvarIndices) Copy ¶
func (n *IvarIndices) Copy() Reference
func (*IvarIndices) DirectClass ¶
func (*IvarIndices) DirectClass() *Class
func (*IvarIndices) Error ¶
func (n *IvarIndices) Error() string
func (IvarIndices) GetIndex ¶
func (n IvarIndices) GetIndex(name Symbol) int
func (IvarIndices) GetIndexOk ¶
func (n IvarIndices) GetIndexOk(name Symbol) (int, bool)
func (IvarIndices) GetName ¶
func (n IvarIndices) GetName(index int) Symbol
func (*IvarIndices) Inspect ¶
func (in *IvarIndices) Inspect() string
func (*IvarIndices) InstanceVariables ¶
func (*IvarIndices) InstanceVariables() *InstanceVariables
func (*IvarIndices) Length ¶
func (in *IvarIndices) Length() int
func (IvarIndices) SetIndex ¶
func (n IvarIndices) SetIndex(name Symbol, i int)
func (*IvarIndices) SingletonClass ¶
func (*IvarIndices) SingletonClass() *Class
func (IvarIndices) ToGoSource ¶
func (n IvarIndices) ToGoSource() string
type LeftOpenRange ¶
Represents a left open range eg. `5<..2`
func NewLeftOpenRange ¶
func NewLeftOpenRange(start, end Value) *LeftOpenRange
Create a new left open range class.
func (*LeftOpenRange) Class ¶
func (*LeftOpenRange) Class() *Class
func (*LeftOpenRange) Copy ¶
func (r *LeftOpenRange) Copy() Reference
func (*LeftOpenRange) DirectClass ¶
func (*LeftOpenRange) DirectClass() *Class
func (*LeftOpenRange) Error ¶
func (r *LeftOpenRange) Error() string
func (*LeftOpenRange) Inspect ¶
func (r *LeftOpenRange) Inspect() string
func (*LeftOpenRange) InstanceVariables ¶
func (r *LeftOpenRange) InstanceVariables() *InstanceVariables
func (*LeftOpenRange) SingletonClass ¶
func (*LeftOpenRange) SingletonClass() *Class
type LeftOpenRangeIterator ¶
type LeftOpenRangeIterator struct {
Range *LeftOpenRange
CurrentElement Value
}
func NewLeftOpenRangeIterator ¶
func NewLeftOpenRangeIterator(r *LeftOpenRange) *LeftOpenRangeIterator
func NewLeftOpenRangeIteratorWithCurrentElement ¶
func NewLeftOpenRangeIteratorWithCurrentElement(r *LeftOpenRange, currentElement Value) *LeftOpenRangeIterator
func (*LeftOpenRangeIterator) Class ¶
func (*LeftOpenRangeIterator) Class() *Class
func (*LeftOpenRangeIterator) Copy ¶
func (r *LeftOpenRangeIterator) Copy() Reference
func (*LeftOpenRangeIterator) DirectClass ¶
func (*LeftOpenRangeIterator) DirectClass() *Class
func (*LeftOpenRangeIterator) Error ¶
func (r *LeftOpenRangeIterator) Error() string
func (*LeftOpenRangeIterator) Inspect ¶
func (r *LeftOpenRangeIterator) Inspect() string
func (*LeftOpenRangeIterator) InstanceVariables ¶
func (*LeftOpenRangeIterator) InstanceVariables() *InstanceVariables
func (*LeftOpenRangeIterator) Reset ¶
func (r *LeftOpenRangeIterator) Reset()
func (*LeftOpenRangeIterator) SingletonClass ¶
func (*LeftOpenRangeIterator) SingletonClass() *Class
type Location ¶
func (*Location) DirectClass ¶
func (*Location) InstanceVariables ¶
func (*Location) InstanceVariables() *InstanceVariables
func (*Location) SingletonClass ¶
type MethodContainer ¶
func (*MethodContainer) AttachMethod ¶
func (m *MethodContainer) AttachMethod(name Symbol, method Method)
Attaches the given method under the given name.
func (*MethodContainer) DefineAlias ¶
func (m *MethodContainer) DefineAlias(newMethodName, oldMethodName Symbol)
Define an alternative name for an existing method.
func (*MethodContainer) DefineAliasString ¶
func (m *MethodContainer) DefineAliasString(newMethodName, oldMethodName string)
Define an alternative name for an existing method.
func (*MethodContainer) LookupMethod ¶
func (m *MethodContainer) LookupMethod(name Symbol) Method
Search for a method with the given name in this container and its ancestors.
func (*MethodContainer) Superclass ¶
func (m *MethodContainer) Superclass() *Class
Get the superclass (skipping any mixin proxies)
type Mixin ¶
type Mixin = Class
Represents an Elk Mixin.
var CollectionBaseMixin *Mixin
::Std::Collection::Base
var ComparableMixin *Mixin // ::Std::Comparable
var ComplexConstantNodeMixin *Mixin // Std::Elk::AST::ComplexConstantNode
var ConstantNodeMixin *Mixin // Std::Elk::AST::ConstantNode
var ExpressionNodeMixin *Mixin // Std::Elk::AST::ExpressionNode
var IdentifierNodeMixin *Mixin // Std::Elk::AST::IdentifierNode
var ImmutableCollectionBaseMixin *Mixin
::Std::ImmutableCollection::Base
var InstanceVariableNodeMixin *Mixin // Std::Elk::AST::InstanceVariableNode
var IntCollectionContentNodeMixin *Mixin // Std::Elk::AST::IntCollectionContentNode
var IterableBase *Mixin
::Std::Iterable::Base
var IterableFiniteBase *Mixin
::Std::Iterable::FiniteBase
var IteratorBaseMixin *Mixin
::Std::Iterator::Base
var ListMixin *Mixin // ::Std::List
var LiteralPatternNodeMixin *Mixin // Std::Elk::AST::LiteralPatternNode
var MapMixin *Mixin // ::Std::Map
var NamedArgumentNodeMixin *Mixin // Std::Elk::AST::NamedArgumentNode
var NodeMixin *Mixin // Std::Elk::AST::Node
var ParameterNodeMixin *Mixin // Std::Elk::AST::ParameterNode
var PatternNodeMixin *Mixin // Std::Elk::AST::PatternNode
var RangeMixin *Mixin // ::Std::Range
var RecordMixin *Mixin // ::Std::Record
var RegexLiteralContentNodeMixin *Mixin // Std::Elk::AST::RegexLiteralContentNode
var RegexLiteralNodeMixin *Mixin // Std::Elk::AST::RegexLiteralNode
var SetMixin *Mixin // ::Std::Set
var SimpleStringLiteralNodeMixin *Mixin // Std::Elk::AST::SimpleStringLiteralNode
var StatementNodeMixin *Mixin // Std::Elk::AST::StatementNode
var StringLiteralContentNodeMixin *Mixin // Std::Elk::AST::StringLiteralContentNode
var StringLiteralNodeMixin *Mixin // Std::Elk::AST::StringLiteralNode
var StructBodyStatementNodeMixin *Mixin // Std::Elk::AST::StructBodyStatementNode
var SymbolCollectionContentNodeMixin *Mixin // Std::Elk::AST::SymbolCollectionContentNode
var SymbolLiteralNodeMixin *Mixin // Std::Elk::AST::SymbolLiteralNode
var TupleMixin *Mixin // ::Std::Tuple
var TypeNodeMixin *Mixin // Std::Elk::AST::TypeNode
var TypeParameterNodeMixin *Mixin // Std::Elk::AST::TypeParameterNode
var UsingEntryNodeMixin *Mixin // Std::Elk::AST::UsingEntryNode
var UsingSubentryNodeMixin *Mixin // Std::Elk::AST::UsingSubentryNode
var WordCollectionContentNodeMixin *Mixin // Std::Elk::AST::WordCollectionContentNode
func (*Mixin) CreateProxyClass ¶
Create a proxy class that has a pointer to the method map of this mixin.
Returns two values, the head and tail proxy classes. This is because of the fact that it's possible to include one mixin in another, so there is an entire inheritance chain.
type MixinOption ¶
type MixinOption = func(*Class)
Mixin constructor option function
func MixinWithClass ¶
func MixinWithClass(class *Class) MixinOption
func MixinWithConstants ¶
func MixinWithConstants(constants SymbolMap) MixinOption
func MixinWithMethods ¶
func MixinWithMethods(methods MethodMap) MixinOption
func MixinWithName ¶
func MixinWithName(name string) MixinOption
func MixinWithParent ¶
func MixinWithParent(parent *Class) MixinOption
type Module ¶
type Module struct {
ConstantContainer
// contains filtered or unexported fields
}
Represents an Elk Module.
var DebugModule *Module // ::Std::Debug
var ElkASTModule *Module // Std::Elk::AST
var ElkModule *Module // Std::Elk
var FSModule *Module // ::Std::FS
var KernelModule *Module // ::Std::Kernel
var RootModule *Module // ::Root
var RuntimeModule *Module // ::Std::Runtime
var StdModule *Module // ::Std
var SyncModule *Module // ::Std::Sync
func NewModuleWithOptions ¶
func NewModuleWithOptions(opts ...ModuleOption) *Module
Create a new module.
func (*Module) DirectClass ¶
func (*Module) InstanceVariables ¶
func (m *Module) InstanceVariables() *InstanceVariables
func (*Module) SetDirectClass ¶
func (*Module) SingletonClass ¶
type ModuleOption ¶
type ModuleOption func(*Module)
Module constructor option function.
func ModuleWithClass ¶
func ModuleWithClass(class *Class) ModuleOption
func ModuleWithConstants ¶
func ModuleWithConstants(constants SymbolMap) ModuleOption
func ModuleWithName ¶
func ModuleWithName(name string) ModuleOption
func ModuleWithSingletonClass ¶
func ModuleWithSingletonClass() ModuleOption
type Mutex ¶
Wraps a Go mutex.
func (*Mutex) DirectClass ¶
func (*Mutex) InstanceVariables ¶
func (*Mutex) InstanceVariables() *InstanceVariables
func (*Mutex) SingletonClass ¶
type Native ¶
type Native struct {
Value any
}
Wraps a native Go value in an Elk value
func (*Native) DirectClass ¶
func (*Native) InstanceVariables ¶
func (*Native) InstanceVariables() *InstanceVariables
func (*Native) SingletonClass ¶
type NativeIterator ¶
Represents an iterator defined in Go
type NilType ¶
type NilType struct{}
func (NilType) DirectClass ¶
func (NilType) InstanceVariables ¶
func (NilType) InstanceVariables() *InstanceVariables
func (NilType) SingletonClass ¶
func (NilType) ToBigFloat ¶
func (NilType) ToSmallInt ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
var NotBuiltinError *Object
func NewArgumentTypeError ¶
Create a new error that signals that the type of the given argument is wrong.
func NewBigFloatPrecisionError ¶
Create a new error that signals that the big float precision is out of range (negative or too large).
func NewBitshiftOperandError ¶
Create a new error which signals that the given operand is not suitable for bit shifting
func NewCantAccessInstanceVariablesOnPrimitiveError ¶
Create a new error that signals that accessing instance variables of primitive values is impossible.
func NewCantSetInstanceVariablesOnPrimitiveError ¶
Create a new error that signals that setting instance variables of primitive values is impossible.
func NewCapacityTypeError ¶
Create a new error which signals that the value can't be used as capacity.
func NewCoerceError ¶
Create a new error which signals that a value of one type cannot be coerced into the other type.
func NewDuplicatedArgumentError ¶
Create a new error that signals that an argument is duplicated
func NewIncompatibleTemporalFormatError ¶
Create a new error for incompatible temporal object format, date, datetime or time.
func NewIndexOutOfRangeError ¶
Create a new error that signals that the given index is out of range.
func NewInvalidSuperclassError ¶
Create a new error that signals that the given superclass is not a valid class object.
func NewIsNotClassError ¶
Create a new error that signals that the given value is not a class, even though it should be.
func NewIsNotClassOrMixinError ¶
Create a new error that signals that the given value is not a class or mixin, even though it should be.
func NewIsNotMixinError ¶
Create a new error that signals that the given value is not a mixin, even though it should be.
func NewModifierMismatchError ¶
Create a new error that signals that the given class should have different modifiers.
func NewNegativeCapacityError ¶
Create a new error that signals that the given capacity should not be negative.
func NewNegativeIndicesInCollectionLiteralsError ¶
Create a new error that signals that negative indices cannot be used in collection literals.
func NewNoMethodError ¶
Create a new Std::NoMethodError.
func NewOpenClosureError ¶
Create a new error that signals that the given index is out of range.
func NewRedefinedConstantError ¶
Create a new Std::RedefinedConstantError
func NewRequiredArgumentMissingError ¶
Create a new error that signals that a required argument was not given.
func NewSingletonError ¶
Create a new error that signals that the given object cannot have a singleton class.
func NewSuperclassMismatchError ¶
Create a new error that signals that the given superclass doesn't match the original one.
func NewTooLargeCapacityError ¶
Create a new error that signals that the given capacity is too large.
func NewUnexpectedNilError ¶
func NewUnexpectedNilError() *Object
Create a new error which signals that a `nil` value has been encountered in a `must` expression
func NewUnknownArgumentsError ¶
Create a new error that signals that some given arguments are not defined in the method.
func NewWrongArgumentCountError ¶
Create a new error that signals that the number of given arguments is wrong.
func NewWrongArgumentCountRangeError ¶
Create a new error that signals that the number of given arguments is not within the accepted range.
func NewWrongArgumentCountRestError ¶
Create a new error that signals that the number of given arguments is not within the accepted range. For methods with rest parameters.
func NewWrongPositionalArgumentCountError ¶
Create a new error that signals that the number of given arguments is not within the accepted range. For methods with rest parameters.
func NewZeroDivisionError ¶
func NewZeroDivisionError() *Object
Create a new error which signals that a the program tried to divide by zero.
func (*Object) DirectClass ¶
func (*Object) InstanceVariables ¶
func (o *Object) InstanceVariables() *InstanceVariables
func (*Object) SetMessageString ¶
Set the error message.
func (*Object) SingletonClass ¶
type ObjectOption ¶
type ObjectOption = func(*Object)
Class constructor option function
func ObjectWithClass ¶
func ObjectWithClass(class *Class) ObjectOption
func ObjectWithInstanceVariables ¶
func ObjectWithInstanceVariables(ivars []Value) ObjectOption
func ObjectWithInstanceVariablesByName ¶
func ObjectWithInstanceVariablesByName(ivars SymbolMap) ObjectOption
type Once ¶
Wraps a Go Once.
func (*Once) DirectClass ¶
func (*Once) InstanceVariables ¶
func (*Once) InstanceVariables() *InstanceVariables
func (*Once) SingletonClass ¶
type OpenRange ¶
Represents an open range eg. `5<.<2`
func (*OpenRange) DirectClass ¶
func (*OpenRange) InstanceVariables ¶
func (r *OpenRange) InstanceVariables() *InstanceVariables
func (*OpenRange) SingletonClass ¶
type OpenRangeIterator ¶
func NewOpenRangeIterator ¶
func NewOpenRangeIterator(r *OpenRange) *OpenRangeIterator
func NewOpenRangeIteratorWithCurrentElement ¶
func NewOpenRangeIteratorWithCurrentElement(r *OpenRange, currentElement Value) *OpenRangeIterator
func (*OpenRangeIterator) Class ¶
func (*OpenRangeIterator) Class() *Class
func (*OpenRangeIterator) Copy ¶
func (r *OpenRangeIterator) Copy() Reference
func (*OpenRangeIterator) DirectClass ¶
func (*OpenRangeIterator) DirectClass() *Class
func (*OpenRangeIterator) Error ¶
func (r *OpenRangeIterator) Error() string
func (*OpenRangeIterator) Inspect ¶
func (r *OpenRangeIterator) Inspect() string
func (*OpenRangeIterator) InstanceVariables ¶
func (*OpenRangeIterator) InstanceVariables() *InstanceVariables
func (*OpenRangeIterator) Reset ¶
func (r *OpenRangeIterator) Reset()
func (*OpenRangeIterator) SingletonClass ¶
func (*OpenRangeIterator) SingletonClass() *Class
type Pair ¶
func (*Pair) DirectClass ¶
func (*Pair) InstanceVariables ¶
func (*Pair) InstanceVariables() *InstanceVariables
func (*Pair) SingletonClass ¶
func (*Pair) SubscriptSet ¶
Set an element under the given index.
type PairIterator ¶
func NewPairIterator ¶
func NewPairIterator(pair *Pair) *PairIterator
func NewPairIteratorWithIndex ¶
func NewPairIteratorWithIndex(pair *Pair, index int) *PairIterator
func (*PairIterator) Class ¶
func (*PairIterator) Class() *Class
func (*PairIterator) Copy ¶
func (l *PairIterator) Copy() Reference
func (*PairIterator) DirectClass ¶
func (*PairIterator) DirectClass() *Class
func (*PairIterator) Error ¶
func (l *PairIterator) Error() string
func (*PairIterator) Inspect ¶
func (l *PairIterator) Inspect() string
func (*PairIterator) InstanceVariables ¶
func (*PairIterator) InstanceVariables() *InstanceVariables
func (*PairIterator) Next ¶
func (l *PairIterator) Next() (Value, Value)
func (*PairIterator) SingletonClass ¶
func (*PairIterator) SingletonClass() *Class
type Path ¶
type Path struct {
Value string
}
func NewPathFromSlash ¶
func (*Path) BackslashString ¶
func (*Path) Dir ¶
Returns a new path based on `self` omitting the last element. Typically this would result in the path to the parent directory.
func (*Path) DirectClass ¶
func (*Path) Extension ¶
Returns the extension of the file. The extension is the suffix beginning at the final dot in the final element of path; it is empty if there is no dot.
"index" => ""; "index.js" => ".js"; "index.html.erb" => ".erb";
func (*Path) InstanceVariables ¶
func (*Path) InstanceVariables() *InstanceVariables
func (*Path) IsLocal ¶
Reports whether the path is local. It is a primitive lexical check it does not take into account symbolic links etc
func (*Path) MatchesGlob ¶
Checks whether the path matches the given glob pattern.
func (*Path) Normalize ¶
Creates a new path based on `self` that is the shortest possible version of it based on lexical analysis.
func (*Path) SingletonClass ¶
func (*Path) SlashString ¶
func (*Path) Split ¶
Split the path into individual elements separated by the OS separator (`/` or `\`)
func (*Path) ToAbsolute ¶
Returns the absolute version of this path. If the path is not absolute it will be joined with the current working directory to turn it into an absolute path.
func (*Path) ToRelative ¶
Creates a new path based on `target` that is relative to `self`.
func (*Path) VolumeName ¶
VolumeName returns leading volume name. Given "C:\foo\bar" it returns "C:" on Windows. Given "\\host\share\foo" it returns "\\host\share". On other platforms it returns "".
type Position ¶
func (*Position) DirectClass ¶
func (*Position) InstanceVariables ¶
func (*Position) InstanceVariables() *InstanceVariables
func (*Position) SimpleInspect ¶
func (*Position) SingletonClass ¶
type ROMutex ¶
type ROMutex struct {
RWMutex *RWMutex
}
Wraps a RWMutex.
func NewROMutex ¶
func (*ROMutex) DirectClass ¶
func (*ROMutex) InstanceVariables ¶
func (*ROMutex) InstanceVariables() *InstanceVariables
func (*ROMutex) SingletonClass ¶
type RWMutex ¶
Wraps a Go RWMutex.
func NewRWMutex ¶
func NewRWMutex() *RWMutex
func (*RWMutex) DirectClass ¶
func (*RWMutex) InstanceVariables ¶
func (*RWMutex) InstanceVariables() *InstanceVariables
func (*RWMutex) ReadUnlock ¶
func (*RWMutex) SingletonClass ¶
type Reference ¶
type Reference interface {
Class() *Class // Return the class of the value
DirectClass() *Class // Return the direct class of this value that will be searched for methods first
SingletonClass() *Class // Return the singleton class of this value that holds methods unique to this object
InstanceVariables() *InstanceVariables // Returns a pointer to the slice of instance vars of this value, nil if value doesn't support instance vars
Copy() Reference // Creates a shallow copy of the reference. If the value is immutable, no copying should be done, the same value should be returned.
Inspect() string // Returns the string representation of the value
Error() string // Implements the error interface
}
Elk Reference Value
type Regex ¶
Elk's compiled regex
func (*Regex) DirectClass ¶
func (*Regex) InstanceVariables ¶
func (r *Regex) InstanceVariables() *InstanceVariables
func (*Regex) LaxEqualVal ¶
Check whether r is equal to other
func (*Regex) MatchesString ¶
Check whether the regex matches the given string
func (*Regex) SingletonClass ¶
func (*Regex) ToStringWithFlags ¶
func (*Regex) WriteSourceTo ¶
func (r *Regex) WriteSourceTo(w io.StringWriter)
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (*Result) DirectClass ¶
func (*Result) InstanceVariables ¶
func (*Result) InstanceVariables() *InstanceVariables
func (*Result) SingletonClass ¶
type RightOpenRange ¶
Represents a right open range eg. `5..<2`
func NewRightOpenRange ¶
func NewRightOpenRange(start, end Value) *RightOpenRange
Create a new right open range class.
func (*RightOpenRange) Class ¶
func (*RightOpenRange) Class() *Class
func (*RightOpenRange) Copy ¶
func (r *RightOpenRange) Copy() Reference
func (*RightOpenRange) DirectClass ¶
func (*RightOpenRange) DirectClass() *Class
func (*RightOpenRange) Error ¶
func (r *RightOpenRange) Error() string
func (*RightOpenRange) Inspect ¶
func (r *RightOpenRange) Inspect() string
func (*RightOpenRange) InstanceVariables ¶
func (r *RightOpenRange) InstanceVariables() *InstanceVariables
func (*RightOpenRange) SingletonClass ¶
func (*RightOpenRange) SingletonClass() *Class
type RightOpenRangeIterator ¶
type RightOpenRangeIterator struct {
Range *RightOpenRange
CurrentElement Value
}
func NewRightOpenRangeIterator ¶
func NewRightOpenRangeIterator(r *RightOpenRange) *RightOpenRangeIterator
func NewRightOpenRangeIteratorWithCurrentElement ¶
func NewRightOpenRangeIteratorWithCurrentElement(r *RightOpenRange, currentElement Value) *RightOpenRangeIterator
func (*RightOpenRangeIterator) Class ¶
func (*RightOpenRangeIterator) Class() *Class
func (*RightOpenRangeIterator) Copy ¶
func (r *RightOpenRangeIterator) Copy() Reference
func (*RightOpenRangeIterator) DirectClass ¶
func (*RightOpenRangeIterator) DirectClass() *Class
func (*RightOpenRangeIterator) Error ¶
func (r *RightOpenRangeIterator) Error() string
func (*RightOpenRangeIterator) Inspect ¶
func (r *RightOpenRangeIterator) Inspect() string
func (*RightOpenRangeIterator) InstanceVariables ¶
func (*RightOpenRangeIterator) InstanceVariables() *InstanceVariables
func (*RightOpenRangeIterator) Reset ¶
func (r *RightOpenRangeIterator) Reset()
func (*RightOpenRangeIterator) SingletonClass ¶
func (*RightOpenRangeIterator) SingletonClass() *Class
type SimpleInt ¶
type SimpleInt interface {
SmallInt | Int64 | Int32 | Int16 | Int8 | UInt | UInt64 | UInt32 | UInt16 | UInt8
}
All simple Elk integer types (without BigInt)
type SmallInt ¶
type SmallInt int
Elk's SmallInt value
func (SmallInt) AddBigFloat ¶
func (SmallInt) AddOverflow ¶
Add two small ints and check for overflow/underflow.
func (SmallInt) AddSmallInt ¶
func (SmallInt) BitwiseAndNotVal ¶
Perform a bitwise AND NOT with another integer value and return an error if something went wrong.
func (SmallInt) BitwiseAndVal ¶
Perform a bitwise AND with another integer value and return an error if something went wrong.
func (SmallInt) BitwiseOrVal ¶
Perform a bitwise OR with another integer value and return an error if something went wrong.
func (SmallInt) BitwiseXorVal ¶
Perform a bitwise XOR with another integer value and return an error if something went wrong.
func (SmallInt) CompareVal ¶
Returns 1 if i is greater than other Returns 0 if both are equal. Returns -1 if i is less than other. Returns nil if the comparison was impossible (NaN)
func (SmallInt) DirectClass ¶
func (SmallInt) DivideBigFloat ¶
func (SmallInt) DivideFloat ¶
func (SmallInt) DivideOverflow ¶
Divide two small ints and check for overflow/underflow.
func (SmallInt) ExponentiateBigFloat ¶
func (SmallInt) ExponentiateBigInt ¶
func (SmallInt) ExponentiateFloat ¶
func (SmallInt) ExponentiateSmallInt ¶
func (SmallInt) ExponentiateVal ¶
ExponentiateVal by another value and return an error if something went wrong.
func (SmallInt) GreaterThan ¶
Check whether i is greater than other and return an error if something went wrong.
func (SmallInt) GreaterThanEqual ¶
Check whether i is greater than or equal to other and return an error if something went wrong.
func (SmallInt) GreaterThanEqualVal ¶
Check whether i is greater than or equal to other and return an error if something went wrong.
func (SmallInt) GreaterThanVal ¶
Check whether i is greater than other and return an error if something went wrong.
func (SmallInt) InstanceVariables ¶
func (i SmallInt) InstanceVariables() *InstanceVariables
func (SmallInt) LaxEqualVal ¶
Check whether i is equal to other (with coercion)
func (SmallInt) LeftBitshiftVal ¶
Bitshift to the left by another integer value and return an error if something went wrong.
func (SmallInt) LessThan ¶
Check whether i is less than other and return an error if something went wrong.
func (SmallInt) LessThanEqual ¶
Check whether i is less than or equal to other and return an error if something went wrong.
func (SmallInt) LessThanEqualVal ¶
Check whether i is less than or equal to other and return an error if something went wrong.
func (SmallInt) LessThanVal ¶
Check whether i is less than other and return an error if something went wrong.
func (SmallInt) Microseconds ¶
func (SmallInt) Milliseconds ¶
func (SmallInt) ModuloVal ¶
Perform modulo by another numeric value and return an error if something went wrong.
func (SmallInt) MultiplyBigFloat ¶
func (SmallInt) MultiplyBigInt ¶
func (SmallInt) MultiplyFloat ¶
func (SmallInt) MultiplyOverflow ¶
Multiply two small ints and check for overflow/underflow.
func (SmallInt) MultiplySmallInt ¶
func (SmallInt) MultiplyVal ¶
MultiplyVal another value and return an error if something went wrong.
func (SmallInt) Nanoseconds ¶
func (SmallInt) RightBitshiftVal ¶
Bitshift to the right by another integer value and return an error if something went wrong.
func (SmallInt) SingletonClass ¶
func (SmallInt) StrictEqualBool ¶
Check whether i is strictly equal to other
func (SmallInt) StrictEqualVal ¶
Check whether i is strictly equal to other
func (SmallInt) SubtractBigFloat ¶
func (SmallInt) SubtractBigInt ¶
func (SmallInt) SubtractFloat ¶
func (SmallInt) SubtractOverflow ¶
Subtract two small ints and check for overflow/underflow.
func (SmallInt) SubtractSmallInt ¶
func (SmallInt) SubtractVal ¶
Add another value and return an error if something went wrong.
type SmallIntIterator ¶
func NewSmallIntIterator ¶
func NewSmallIntIterator(i SmallInt) *SmallIntIterator
func NewSmallIntIteratorWithCounter ¶
func NewSmallIntIteratorWithCounter(i SmallInt, index SmallInt) *SmallIntIterator
func (*SmallIntIterator) Class ¶
func (*SmallIntIterator) Class() *Class
func (*SmallIntIterator) Copy ¶
func (l *SmallIntIterator) Copy() Reference
func (*SmallIntIterator) DirectClass ¶
func (*SmallIntIterator) DirectClass() *Class
func (*SmallIntIterator) Error ¶
func (l *SmallIntIterator) Error() string
func (*SmallIntIterator) Inspect ¶
func (l *SmallIntIterator) Inspect() string
func (*SmallIntIterator) InstanceVariables ¶
func (*SmallIntIterator) InstanceVariables() *InstanceVariables
func (*SmallIntIterator) Next ¶
func (l *SmallIntIterator) Next() (Value, Value)
func (*SmallIntIterator) Reset ¶
func (l *SmallIntIterator) Reset()
func (*SmallIntIterator) SingletonClass ¶
func (*SmallIntIterator) SingletonClass() *Class
type Span ¶
func (*Span) DirectClass ¶
func (*Span) EndPosition ¶
func (*Span) InstanceVariables ¶
func (*Span) InstanceVariables() *InstanceVariables
func (*Span) SingletonClass ¶
func (*Span) StartPosition ¶
type StackTrace ¶
type StackTrace []CallFrame
func (*StackTrace) Class ¶
func (*StackTrace) Class() *Class
func (*StackTrace) Copy ¶
func (s *StackTrace) Copy() Reference
func (*StackTrace) DirectClass ¶
func (*StackTrace) DirectClass() *Class
func (*StackTrace) Error ¶
func (s *StackTrace) Error() string
func (*StackTrace) Inspect ¶
func (s *StackTrace) Inspect() string
func (*StackTrace) InstanceVariables ¶
func (*StackTrace) InstanceVariables() *InstanceVariables
func (*StackTrace) Length ¶
func (s *StackTrace) Length() int
func (*StackTrace) SingletonClass ¶
func (*StackTrace) SingletonClass() *Class
func (*StackTrace) String ¶
func (s *StackTrace) String() string
type StackTraceIterator ¶
type StackTraceIterator struct {
StackTrace *StackTrace
Index int
}
func NewStackTraceIterator ¶
func NewStackTraceIterator(stackTrace *StackTrace) *StackTraceIterator
func NewStackTraceIteratorWithIndex ¶
func NewStackTraceIteratorWithIndex(stackTrace *StackTrace, index int) *StackTraceIterator
func (*StackTraceIterator) Class ¶
func (*StackTraceIterator) Class() *Class
func (*StackTraceIterator) Copy ¶
func (s *StackTraceIterator) Copy() Reference
func (*StackTraceIterator) DirectClass ¶
func (*StackTraceIterator) DirectClass() *Class
func (*StackTraceIterator) Error ¶
func (s *StackTraceIterator) Error() string
func (*StackTraceIterator) Inspect ¶
func (s *StackTraceIterator) Inspect() string
func (*StackTraceIterator) InstanceVariables ¶
func (*StackTraceIterator) InstanceVariables() *InstanceVariables
func (*StackTraceIterator) Next ¶
func (s *StackTraceIterator) Next() (Value, Value)
func (*StackTraceIterator) Reset ¶
func (s *StackTraceIterator) Reset()
func (*StackTraceIterator) SingletonClass ¶
func (*StackTraceIterator) SingletonClass() *Class
type StrictFloat ¶
Strict floats are sized and cannot be automatically coerced to other types.
type StrictNumeric ¶
type StrictNumeric interface {
Float64 | Float32 | Int64 | Int32 | Int16 | Int8 | UInt | UInt64 | UInt32 | UInt16 | UInt8
}
Strict numerics are sized and cannot be automatically coerced to other types.
type StrictSignedInt ¶
Strict signed integers are sized and cannot be automatically coerced to other types.
type StrictUnsignedInt ¶
Strict unsigned integers are sized and cannot be automatically coerced to other types.
type String ¶
type String string
Elk's String value
func (String) CompareVal ¶
Returns 1 if i is greater than other Returns 0 if both are equal. Returns -1 if i is less than other. Returns nil if the comparison was impossible (NaN)
func (String) Concat ¶
Concatenate another value with this string and return the result. If the operation is illegal an error will be returned.
func (String) DirectClass ¶
func (String) GraphemeAt ¶
Get the grapheme under the given index.
func (String) GraphemeAtInt ¶
Get the grapheme under the given index.
func (String) GraphemeCount ¶
Returns the number of grapheme clusters present in the string.
func (String) GreaterThan ¶
Check whether s is greater than other and return an error if something went wrong.
func (String) GreaterThanEqual ¶
Check whether s is greater than or equal to other and return an error if something went wrong.
func (String) GreaterThanEqualVal ¶
Check whether s is greater than or equal to other and return an error if something went wrong.
func (String) GreaterThanVal ¶
Check whether s is greater than other and return an error if something went wrong.
func (String) InstanceVariables ¶
func (s String) InstanceVariables() *InstanceVariables
func (String) LaxEqualBool ¶
Check whether s is equal to other
func (String) LaxEqualVal ¶
Check whether s is equal to other
func (String) LessThan ¶
Check whether s is less than other and return an error if something went wrong.
func (String) LessThanEqual ¶
Check whether s is less than or equal to other and return an error if something went wrong.
func (String) LessThanEqualVal ¶
Check whether s is less than or equal to other and return an error if something went wrong.
func (String) LessThanVal ¶
Check whether s is less than other and return an error if something went wrong.
func (String) RemoveSuffix ¶
Return a copy of the string without the given suffix.
func (String) Repeat ¶
Repeat the content of this string n times and return a new string containing the result. If the operation is illegal an error will be returned.
func (String) ReverseChars ¶
Reverse the string while preserving the UTF-8 chars.
func (String) ReverseGraphemes ¶
Reverse the string while preserving the grapheme clusters.
func (String) SingletonClass ¶
func (String) StrictEqualVal ¶
Check whether s is strictly equal to other
type StringByteIterator ¶
func NewStringByteIterator ¶
func NewStringByteIterator(str String) *StringByteIterator
func NewStringByteIteratorWithByteOffset ¶
func NewStringByteIteratorWithByteOffset(str String, offset int) *StringByteIterator
func (*StringByteIterator) Class ¶
func (*StringByteIterator) Class() *Class
func (*StringByteIterator) Copy ¶
func (s *StringByteIterator) Copy() Reference
func (*StringByteIterator) DirectClass ¶
func (*StringByteIterator) DirectClass() *Class
func (*StringByteIterator) Error ¶
func (s *StringByteIterator) Error() string
func (*StringByteIterator) Inspect ¶
func (s *StringByteIterator) Inspect() string
func (*StringByteIterator) InstanceVariables ¶
func (*StringByteIterator) InstanceVariables() *InstanceVariables
func (*StringByteIterator) Next ¶
func (s *StringByteIterator) Next() (Value, Value)
func (*StringByteIterator) Reset ¶
func (s *StringByteIterator) Reset()
func (*StringByteIterator) SingletonClass ¶
func (*StringByteIterator) SingletonClass() *Class
type StringCharIterator ¶
func NewStringCharIterator ¶
func NewStringCharIterator(str String) *StringCharIterator
func NewStringCharIteratorWithByteOffset ¶
func NewStringCharIteratorWithByteOffset(str String, offset int) *StringCharIterator
func (*StringCharIterator) Class ¶
func (*StringCharIterator) Class() *Class
func (*StringCharIterator) Copy ¶
func (s *StringCharIterator) Copy() Reference
func (*StringCharIterator) DirectClass ¶
func (*StringCharIterator) DirectClass() *Class
func (*StringCharIterator) Error ¶
func (s *StringCharIterator) Error() string
func (*StringCharIterator) Inspect ¶
func (s *StringCharIterator) Inspect() string
func (*StringCharIterator) InstanceVariables ¶
func (*StringCharIterator) InstanceVariables() *InstanceVariables
func (*StringCharIterator) Next ¶
func (s *StringCharIterator) Next() (Value, Value)
func (*StringCharIterator) Reset ¶
func (s *StringCharIterator) Reset()
func (*StringCharIterator) SingletonClass ¶
func (*StringCharIterator) SingletonClass() *Class
type StringGraphemeIterator ¶
func NewStringGraphemeIterator ¶
func NewStringGraphemeIterator(str String) *StringGraphemeIterator
func NewStringGraphemeIteratorWithRestAndState ¶
func NewStringGraphemeIteratorWithRestAndState(str String, rest string, state int) *StringGraphemeIterator
func (*StringGraphemeIterator) Class ¶
func (*StringGraphemeIterator) Class() *Class
func (*StringGraphemeIterator) Copy ¶
func (s *StringGraphemeIterator) Copy() Reference
func (*StringGraphemeIterator) DirectClass ¶
func (*StringGraphemeIterator) DirectClass() *Class
func (*StringGraphemeIterator) Error ¶
func (s *StringGraphemeIterator) Error() string
func (*StringGraphemeIterator) Inspect ¶
func (s *StringGraphemeIterator) Inspect() string
func (*StringGraphemeIterator) InstanceVariables ¶
func (*StringGraphemeIterator) InstanceVariables() *InstanceVariables
func (*StringGraphemeIterator) Next ¶
func (s *StringGraphemeIterator) Next() (Value, Value)
func (*StringGraphemeIterator) Reset ¶
func (s *StringGraphemeIterator) Reset()
func (*StringGraphemeIterator) SingletonClass ¶
func (*StringGraphemeIterator) SingletonClass() *Class
type Symbol ¶
type Symbol int
Numerical ID of a particular symbol.
func (Symbol) DirectClass ¶
func (Symbol) InspectContent ¶
func (Symbol) InstanceVariables ¶
func (s Symbol) InstanceVariables() *InstanceVariables
func (Symbol) LaxEqualVal ¶
Check whether s is equal to other
func (Symbol) SingletonClass ¶
func (Symbol) StrictEqualVal ¶
Check whether s is equal to other
type SymbolMap ¶
Simple map with symbol keys.
func (SymbolMap) DeleteString ¶
func (SymbolMap) DirectClass ¶
func (SymbolMap) InstanceVariables ¶
func (s SymbolMap) InstanceVariables() *InstanceVariables
func (SymbolMap) SingletonClass ¶
type SymbolTableOption ¶
type SymbolTableOption func(*SymbolTableStruct)
func SymbolTableWithIdTable ¶
func SymbolTableWithIdTable(idTable []string) SymbolTableOption
func SymbolTableWithNameTable ¶
func SymbolTableWithNameTable(nameTable map[string]Symbol) SymbolTableOption
type SymbolTableStruct ¶
type SymbolTableStruct struct {
// contains filtered or unexported fields
}
Data structure that holds Elk Symbols.
var SymbolTable *SymbolTableStruct = NewSymbolTable()
The global Symbol Table of the Elk interpreter.
func NewSymbolTable ¶
func NewSymbolTable(opts ...SymbolTableOption) *SymbolTableStruct
func (*SymbolTableStruct) Add ¶
func (s *SymbolTableStruct) Add(name string) Symbol
Add a new symbol with the specified name. This function is idempotent, if the Symbol already exists nothing happens and a pointer to it gets returned. This function is thread-safe.
func (*SymbolTableStruct) Exists ¶
func (s *SymbolTableStruct) Exists(name string) bool
Check if a symbol with the given name exists. This function is thread-safe.
func (*SymbolTableStruct) ExistsId ¶
func (s *SymbolTableStruct) ExistsId(symbol Symbol) bool
Check if a given symbol exists.
type SyncDiagnosticList ¶
type SyncDiagnosticList diagnostic.SyncDiagnosticList
func (*SyncDiagnosticList) Append ¶
func (dl *SyncDiagnosticList) Append(elements ...*Diagnostic)
Add new elements.
func (*SyncDiagnosticList) At ¶
func (dl *SyncDiagnosticList) At(i int) *Diagnostic
Get an element under the given index without bounds checking
func (*SyncDiagnosticList) Capacity ¶
func (dl *SyncDiagnosticList) Capacity() int
func (*SyncDiagnosticList) Class ¶
func (*SyncDiagnosticList) Class() *Class
func (*SyncDiagnosticList) Concat ¶
func (l *SyncDiagnosticList) Concat(other Value) (*ArrayList, Value)
Concatenate another value with this list, creating a new list, and return the result. If the operation is illegal an error will be returned.
func (*SyncDiagnosticList) Copy ¶
func (d *SyncDiagnosticList) Copy() Reference
func (*SyncDiagnosticList) DirectClass ¶
func (*SyncDiagnosticList) DirectClass() *Class
func (*SyncDiagnosticList) Error ¶
func (d *SyncDiagnosticList) Error() string
func (*SyncDiagnosticList) Get ¶
func (dl *SyncDiagnosticList) Get(index int) (Value, Value)
Get an element under the given index.
func (*SyncDiagnosticList) Grow ¶
func (dl *SyncDiagnosticList) Grow(newSlots int)
Expand the array list to have empty slots for new elements.
func (*SyncDiagnosticList) Inspect ¶
func (d *SyncDiagnosticList) Inspect() string
func (*SyncDiagnosticList) InstanceVariables ¶
func (*SyncDiagnosticList) InstanceVariables() *InstanceVariables
func (*SyncDiagnosticList) LeftCapacity ¶
func (l *SyncDiagnosticList) LeftCapacity() int
func (*SyncDiagnosticList) Length ¶
func (dl *SyncDiagnosticList) Length() int
func (*SyncDiagnosticList) Repeat ¶
func (l *SyncDiagnosticList) Repeat(other Value) (*SyncDiagnosticList, Value)
Repeat the content of this list n times and return a new list containing the result. If the operation is illegal an error will be returned.
func (*SyncDiagnosticList) Set ¶
func (l *SyncDiagnosticList) Set(index int, val *Diagnostic) Value
Set an element under the given index.
func (*SyncDiagnosticList) SetAt ¶
func (l *SyncDiagnosticList) SetAt(index int, val *Diagnostic)
Set an element under the given index without bounds checking.
func (*SyncDiagnosticList) SingletonClass ¶
func (*SyncDiagnosticList) SingletonClass() *Class
func (*SyncDiagnosticList) Subscript ¶
func (dl *SyncDiagnosticList) Subscript(key Value) (Value, Value)
Get an element under the given index.
func (*SyncDiagnosticList) SubscriptSet ¶
func (dl *SyncDiagnosticList) SubscriptSet(key Value, val *Diagnostic) Value
Set an element under the given index.
type SyncDiagnosticListIterator ¶
type SyncDiagnosticListIterator struct {
SyncDiagnosticList *SyncDiagnosticList
Index int
}
func NewSyncDiagnosticListIterator ¶
func NewSyncDiagnosticListIterator(list *SyncDiagnosticList) *SyncDiagnosticListIterator
func NewSyncDiagnosticListIteratorWithIndex ¶
func NewSyncDiagnosticListIteratorWithIndex(list *SyncDiagnosticList, index int) *SyncDiagnosticListIterator
func (*SyncDiagnosticListIterator) Class ¶
func (*SyncDiagnosticListIterator) Class() *Class
func (*SyncDiagnosticListIterator) Copy ¶
func (l *SyncDiagnosticListIterator) Copy() Reference
func (*SyncDiagnosticListIterator) DirectClass ¶
func (*SyncDiagnosticListIterator) DirectClass() *Class
func (*SyncDiagnosticListIterator) Error ¶
func (l *SyncDiagnosticListIterator) Error() string
func (*SyncDiagnosticListIterator) Inspect ¶
func (l *SyncDiagnosticListIterator) Inspect() string
func (*SyncDiagnosticListIterator) InstanceVariables ¶
func (*SyncDiagnosticListIterator) InstanceVariables() *InstanceVariables
func (*SyncDiagnosticListIterator) Next ¶
func (l *SyncDiagnosticListIterator) Next() (Value, Value)
func (*SyncDiagnosticListIterator) Reset ¶
func (l *SyncDiagnosticListIterator) Reset()
func (*SyncDiagnosticListIterator) SingletonClass ¶
func (*SyncDiagnosticListIterator) SingletonClass() *Class
type Time ¶
type Time struct {
// contains filtered or unexported fields
}
Represents a time of day: hour, minute, second, nanosecond.
func (Time) AttosecondsInSecond ¶
func (Time) DirectClass ¶
func (Time) FemtosecondsInSecond ¶
func (Time) GreaterThan ¶
func (Time) GreaterThanEqual ¶
func (Time) InstanceVariables ¶
func (Time) InstanceVariables() *InstanceVariables
func (Time) LessThanEqual ¶
func (Time) MeridiemLowercase ¶
func (Time) Microsecond ¶
func (Time) MicrosecondsInSecond ¶
func (Time) Millisecond ¶
func (Time) MillisecondsInSecond ¶
func (Time) MustFormat ¶
func (Time) Nanosecond ¶
func (Time) NanosecondsInSecond ¶
func (Time) PicosecondsInSecond ¶
func (Time) SingletonClass ¶
func (Time) SubtractTimeSpan ¶
Subtracts the given duration from the time. Returns a new time structure.
func (Time) ToDateTime ¶
func (Time) ToDateTimeValue ¶
func (Time) ToTimeSpan ¶
func (Time) YoctosecondsInSecond ¶
func (Time) ZeptosecondsInSecond ¶
type TimeSpan ¶
Represents the elapsed time between two Times as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. Wraps Go's time.Duration.
func DurationSince ¶
func DurationUntil ¶
func MakeTimeSpan ¶
Create a new Time Span value.
func (TimeSpan) AddDateSpan ¶
func (t TimeSpan) AddDateSpan(other DateSpan) *DateTimeSpan
func (TimeSpan) AddDateTimeSpan ¶
func (t TimeSpan) AddDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
func (TimeSpan) AddTimeSpan ¶
func (TimeSpan) DirectClass ¶
func (TimeSpan) DivideBigFloat ¶
func (TimeSpan) GreaterThan ¶
func (TimeSpan) GreaterThanEqual ¶
func (TimeSpan) InMicroseconds ¶
func (TimeSpan) InMilliseconds ¶
func (TimeSpan) InNanoseconds ¶
func (TimeSpan) InstanceVariables ¶
func (TimeSpan) InstanceVariables() *InstanceVariables
func (TimeSpan) LessThanEqual ¶
func (TimeSpan) Microseconds ¶
func (TimeSpan) Milliseconds ¶
func (TimeSpan) MultiplyBigFloat ¶
func (TimeSpan) MultiplyBigInt ¶
func (TimeSpan) MultiplyFloat ¶
func (TimeSpan) MultiplyInt ¶
func (TimeSpan) MultiplySmallInt ¶
func (TimeSpan) Nanoseconds ¶
func (TimeSpan) SingletonClass ¶
func (TimeSpan) SubtractDateSpan ¶
func (t TimeSpan) SubtractDateSpan(other DateSpan) *DateTimeSpan
func (TimeSpan) SubtractDateTimeSpan ¶
func (t TimeSpan) SubtractDateTimeSpan(other *DateTimeSpan) *DateTimeSpan
func (TimeSpan) SubtractTimeSpan ¶
func (TimeSpan) ToDateTimeSpan ¶
func (t TimeSpan) ToDateTimeSpan() *DateTimeSpan
func (TimeSpan) TotalHours ¶
func (TimeSpan) TotalMicroseconds ¶
func (TimeSpan) TotalMilliseconds ¶
func (TimeSpan) TotalMinutes ¶
func (TimeSpan) TotalMonths ¶
func (TimeSpan) TotalNanoseconds ¶
func (TimeSpan) TotalSeconds ¶
func (TimeSpan) TotalWeeks ¶
func (TimeSpan) TotalYears ¶
type Timezone ¶
Elk's Timezone value
func MustLoadTimezone ¶
func NewFixedTimezone ¶
func NewTimezoneFromOffset ¶
Create a new timezone based on a fixed offset.
func (*Timezone) DirectClass ¶
func (*Timezone) InstanceVariables ¶
func (t *Timezone) InstanceVariables() *InstanceVariables
func (*Timezone) SingletonClass ¶
func (*Timezone) StandardOffset ¶
func (*Timezone) ToGoLocation ¶
type TrueType ¶
type TrueType struct{}
func (TrueType) DirectClass ¶
func (TrueType) InstanceVariables ¶
func (TrueType) InstanceVariables() *InstanceVariables
func (TrueType) SingletonClass ¶
type UInt ¶
type UInt uint64
func (UInt) BitwiseAndNot ¶
Perform a bitwise AND NOT.
func (UInt) DirectClass ¶
func (UInt) InstanceVariables ¶
func (i UInt) InstanceVariables() *InstanceVariables
func (UInt) SingletonClass ¶
func (UInt) StrictEqualVal ¶
type UInt16 ¶
type UInt16 uint16
Elk's UInt16 value
func MustParseUInt16 ¶
func (UInt16) BitwiseAnd ¶
Perform a bitwise AND.
func (UInt16) BitwiseAndNot ¶
Perform a bitwise AND NOT.
func (UInt16) BitwiseXor ¶
Perform a bitwise XOR.
func (UInt16) DirectClass ¶
func (UInt16) InstanceVariables ¶
func (i UInt16) InstanceVariables() *InstanceVariables
func (UInt16) SingletonClass ¶
func (UInt16) StrictEqualVal ¶
type UInt32 ¶
type UInt32 uint32
Elk's UInt32 value
func MustParseUInt32 ¶
func (UInt32) BitwiseAnd ¶
Perform a bitwise AND.
func (UInt32) BitwiseAndNot ¶
Perform a bitwise AND NOT.
func (UInt32) BitwiseXor ¶
Perform a bitwise XOR.
func (UInt32) DirectClass ¶
func (UInt32) InstanceVariables ¶
func (i UInt32) InstanceVariables() *InstanceVariables
func (UInt32) SingletonClass ¶
func (UInt32) StrictEqualVal ¶
type UInt64 ¶
type UInt64 uint64
Elk's UInt64 value
func MustParseUInt64 ¶
func (UInt64) BitwiseAnd ¶
Perform a bitwise AND.
func (UInt64) BitwiseAndNot ¶
Perform a bitwise AND NOT.
func (UInt64) BitwiseXor ¶
Perform a bitwise XOR.
func (UInt64) DirectClass ¶
func (UInt64) InstanceVariables ¶
func (i UInt64) InstanceVariables() *InstanceVariables
func (UInt64) SingletonClass ¶
func (UInt64) StrictEqualVal ¶
type UInt8 ¶
type UInt8 uint8
Elk's UInt8 value
func MustParseUInt8 ¶
func (UInt8) BitwiseAnd ¶
Perform a bitwise AND.
func (UInt8) BitwiseAndNot ¶
Perform a bitwise AND NOT.
func (UInt8) BitwiseXor ¶
Perform a bitwise XOR.
func (UInt8) DirectClass ¶
func (UInt8) InstanceVariables ¶
func (i UInt8) InstanceVariables() *InstanceVariables
func (UInt8) SingletonClass ¶
func (UInt8) StrictEqualVal ¶
type UndefinedType ¶
type UndefinedType struct{}
Elk's internal undefined value. Serves as a sentinel value that indicates that no "real" value is present.
It is the zero value of `Value` and maps to Go's `nil`
func (UndefinedType) Class ¶
func (UndefinedType) Class() *Class
func (UndefinedType) DirectClass ¶
func (UndefinedType) DirectClass() *Class
func (UndefinedType) Error ¶
func (u UndefinedType) Error() string
func (UndefinedType) Inspect ¶
func (UndefinedType) Inspect() string
func (UndefinedType) InstanceVariables ¶
func (UndefinedType) InstanceVariables() *InstanceVariables
func (UndefinedType) SingletonClass ¶
func (UndefinedType) SingletonClass() *Class
func (UndefinedType) ToValue ¶
func (u UndefinedType) ToValue() Value
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
`undefined` is the zero value of `Value`, it maps directly to Go `nil`
func AddVal ¶
AddVal two values. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func ArrayListConstructor ¶
func ArrayTupleConstructor ¶
func BitwiseAndNotVal ¶
Execute a bitwise AND NOT &^. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func BitwiseAndVal ¶
Execute a bitwise AND &. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func BitwiseNotVal ¶
Perform bitwise not on a value When successful returns result. When there are no builtin negation functions for the given type returns nil.
func BitwiseOrVal ¶
Execute a bitwise OR |. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func BitwiseXorVal ¶
Execute a bitwise XOR ^. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func BoxConstructor ¶
func ClassConstructor ¶
Used by the VM, create a new class.
func CompareVal ¶
CompareVal two values. Returns 1 if left is greater than right. Returns 0 if both are equal. Returns -1 if left is less than right.
When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func DecrementVal ¶
DecrementVal a value When successful returns result. When there are no builtin negation functions for the given type returns nil.
func DiagnosticConstructor ¶
Creates a new Diagnostic.
func DiagnosticListConstructor ¶
Creates a new DiagnosticList.
func DivideVal ¶
DivideVal two values When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func EqualVal ¶
Check whether left is equal to right. When successful returns (result). When there are no builtin addition functions for the given type returns (undefined).
func ExponentiateVal ¶
ExponentiateVal two values When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func GetConstant ¶
func GetFromSlice ¶
Get an element under the given index.
func GetInstanceVariableByName ¶
Get an object's instance variable with the given name
func GreaterThan ¶
func GreaterThanEqual ¶
func GreaterThanEqualVal ¶
Check whether left is greater than or equal to right. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func GreaterThanVal ¶
Check whether left is greater than right. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func HashMapConstructor ¶
func HashRecordConstructor ¶
func ImmutableBoxConstructor ¶
func IncrementVal ¶
IncrementVal a value When successful returns result. When there are no builtin negation functions for the given type returns nil.
func InterfaceConstructor ¶
Used by the VM, create a new interface value.
func LaxEqualVal ¶
Check whether left is equal to right. When successful returns (result). When there are no builtin addition functions for the given type returns (nil).
func LaxNotEqualVal ¶
Check whether left is not equal to right. When successful returns (result). When there are no builtin addition functions for the given type returns (nil).
func LeftBitshiftVal ¶
Execute a left bit shift <<. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func LessThanEqual ¶
func LessThanEqualVal ¶
Check whether left is less than or equal to right. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin functions for the given type returns (undefined, undefined).
func LessThanVal ¶
Check whether left is less than right. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func LogicalLeftBitshiftVal ¶
Execute a logical left bit shift <<<. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func LogicalRightBitshiftVal ¶
Execute a logical right bit shift >>>. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func MakeSentinelValue ¶
func MakeSentinelValue() Value
func MixinConstructor ¶
Used by the VM, create a new mixin.
func ModuleConstructor ¶
Used by the VM, create a new module value.
func ModuloVal ¶
Perform modulo on two values When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func MultiplyVal ¶
MultiplyVal two values When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func MustParseInt ¶
func MutexConstructor ¶
func NegateVal ¶
NegateVal a value When successful returns result. When there are no builtin negation functions for the given type returns nil.
func NormalizeArrayIndex ¶
func NotEqualVal ¶
Check whether left is not equal to right. When successful returns (result). When there are no builtin addition functions for the given type returns (nil).
func OnceConstructor ¶
func ROMutexConstructor ¶
func RWMutexConstructor ¶
func RightBitshiftVal ¶
Execute a right bit shift >>. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func SetInSlice ¶
Set an element under the given index.
func SetInstanceVariableByName ¶
Set an object's instance variable with the given name to the given value
func StrictEqualVal ¶
Check whether left is strictly equal to right. When successful returns (result). When there are no builtin addition functions for the given type returns (nil).
func StrictFloatLaxEqual ¶
func StrictFloatLaxEqual[T StrictFloat](left T, right Value) Value
Check whether the left float is equal to right.
func StrictIntLeftBitshift ¶
Bitshift a strict int to the left.
func StrictIntLogicalLeftBitshift ¶
func StrictIntLogicalLeftBitshift[T StrictInt](left T, right Value, shiftFunc logicalShiftFunc[T]) (T, Value)
Bitshift a strict int to the left.
func StrictIntLogicalRightBitshift ¶
func StrictIntLogicalRightBitshift[T StrictInt](left T, right Value, shiftFunc logicalShiftFunc[T]) (T, Value)
Logically bitshift a strict int to the right.
func StrictIntRightBitshift ¶
Bitshift a strict int to the right.
func StrictNotEqualVal ¶
Check whether left is strictly not equal to right. When successful returns (result). When there are no builtin addition functions for the given type returns (nil).
func StrictParseInt ¶
Parses a signed strict integer from a string using Elk syntax.
func StrictParseIntWithErr ¶
Parses a signed strict integer from a string using Elk syntax.
func StrictParseUint ¶
Parses an unsigned strict integer from a string using Elk syntax.
func StrictParseUintWithErr ¶
Parses an unsigned strict integer from a string using Elk syntax.
func StrictSignedIntLaxEqual ¶
func StrictSignedIntLaxEqual[T StrictSignedInt](left T, right Value) Value
Check whether the left signed integer is equal to right.
func StrictUnsignedIntLaxEqual ¶
func StrictUnsignedIntLaxEqual[T StrictUnsignedInt](left T, right Value) Value
Check whether the left unsigned integer is equal to right.
func SubscriptSet ¶
Set an element under the given key. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func SubscriptVal ¶
Get an element by key. When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func SubtractVal ¶
SubtractVal two values When successful returns (result, undefined). When an error occurred returns (undefined, error). When there are no builtin addition functions for the given type returns (undefined, undefined).
func SyncDiagnosticListConstructor ¶
Creates a new SyncDiagnosticList.
func UnaryPlusVal ¶
Perform unary plus on a value When successful returns result. When there are no builtin negation functions for the given type returns nil.
func UndefinedConstructor ¶
func WaitGroupConstructor ¶
func (Value) AsDateSpan ¶
func (Value) AsDateSpanOk ¶
func (Value) AsInlineDateSpan ¶
func (Value) AsInlineFloat64 ¶
func (Value) AsInlineInt64 ¶
func (Value) AsInlineSymbol ¶
func (Value) AsInlineTime ¶
func (Value) AsInlineTimeSpan ¶
func (Value) AsInlineUInt64 ¶
func (Value) AsNativeInt64 ¶
func (Value) AsReference ¶
func (Value) AsSmallInt ¶
func (Value) AsTimeSpan ¶
func (Value) AsTimeSpanOk ¶
func (Value) AsUndefined ¶
func (v Value) AsUndefined() UndefinedType
func (Value) DirectClass ¶
func (Value) InstanceVariables ¶
func (v Value) InstanceVariables() *InstanceVariables
func (Value) IsInlineDateSpan ¶
func (Value) IsInlineFloat64 ¶
func (Value) IsInlineInt64 ¶
func (Value) IsInlineSymbol ¶
func (Value) IsInlineTime ¶
func (Value) IsInlineTimeSpan ¶
func (Value) IsInlineUInt64 ¶
func (Value) IsInlineValue ¶
func (Value) IsNotUndefined ¶
func (Value) IsReference ¶
func (Value) IsSmallInt ¶
func (Value) IsUndefined ¶
func (Value) MustBigInt ¶
func (Value) MustDateSpan ¶
func (Value) MustFloat32 ¶
func (Value) MustFloat64 ¶
func (Value) MustInlineDateSpan ¶
func (Value) MustInlineFloat64 ¶
func (Value) MustInlineInt64 ¶
func (Value) MustInlineSymbol ¶
func (Value) MustInlineTime ¶
func (Value) MustInlineTimeSpan ¶
func (Value) MustInlineUInt64 ¶
func (Value) MustReference ¶
func (Value) MustSmallInt ¶
func (Value) MustTimeSpan ¶
func (Value) MustUInt16 ¶
func (Value) MustUInt32 ¶
func (Value) MustUInt64 ¶
func (Value) MustUndefined ¶
func (v Value) MustUndefined() UndefinedType
func (Value) SafeAsReference ¶
Returns `nil` when the value is not a reference
func (Value) SingletonClass ¶
type WaitGroup ¶
func (*WaitGroup) DirectClass ¶
func (*WaitGroup) InstanceVariables ¶
func (w *WaitGroup) InstanceVariables() *InstanceVariables
func (*WaitGroup) SingletonClass ¶
type Weak ¶
func (Weak) DirectClass ¶
func (Weak) InstanceVariables ¶
func (Weak) InstanceVariables() *InstanceVariables
func (Weak) SingletonClass ¶
func (Weak) ToBoxValue ¶
func (Weak) ToImmutableBox ¶
func (w Weak) ToImmutableBox() *ImmutableBox
Convert to an immutable box (a strong pointer)
func (Weak) ToImmutableBoxValue ¶
Source Files
¶
- Ivar_Indices.go
- array_list.go
- array_tuple.go
- ast.go
- beginless_closed_range.go
- beginless_open_range.go
- big_float.go
- big_int.go
- bool.go
- box.go
- call_frame.go
- call_site_info.go
- channel.go
- char.go
- class.go
- closed_range.go
- closure.go
- collection.go
- colorizer.go
- comparable.go
- constant_container.go
- date.go
- date_span.go
- date_span_64sys.go
- datetime.go
- datetime_span.go
- debug.go
- diagnostic.go
- diagnostic_list.go
- duration.go
- elk.go
- elk_lexer.go
- elk_parser.go
- endless_closed_range.go
- endless_open_range.go
- error.go
- false.go
- float.go
- float32.go
- float64.go
- float64_64sys.go
- float_64sys.go
- fs.go
- function.go
- generator.go
- global_object.go
- hash_map.go
- hash_record.go
- hash_set.go
- immutable_box.go
- immutable_collection.go
- init.go
- instance_variables.go
- int.go
- int16.go
- int32.go
- int64.go
- int64_64sys.go
- int8.go
- interface.go
- iterable.go
- iterator.go
- kernel.go
- left_open_range.go
- list.go
- local_box.go
- location.go
- lockable.go
- map.go
- method.go
- method_container.go
- method_map.go
- mixin.go
- module.go
- mutex.go
- native.go
- nil.go
- object.go
- once.go
- open_range.go
- pair.go
- path.go
- position.go
- promise.go
- range.go
- record.go
- regex.go
- result.go
- right_open_range.go
- romutex.go
- runtime.go
- rwmutex.go
- set.go
- small_int.go
- span.go
- stack_trace.go
- strict_numeric.go
- string.go
- symbol.go
- symbol_map.go
- symbol_table.go
- sync.go
- sync_diagnostic_list.go
- thread.go
- thread_pool.go
- time.go
- time_64sys.go
- time_span.go
- time_span_64sys.go
- timezone.go
- token.go
- true.go
- tuple.go
- uint.go
- uint16.go
- uint32.go
- uint64.go
- uint64_64sys.go
- uint8.go
- uint_64sys.go
- undefined.go
- value.go
- wait_group.go
- weak.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package durationscanner implements a tokenizer/lexer that analyses Elk duration strings.
|
Package durationscanner implements a tokenizer/lexer that analyses Elk duration strings. |
|
Package timescanner implements a tokenizer/lexer that analyses Elk time format strings.
|
Package timescanner implements a tokenizer/lexer that analyses Elk time format strings. |