Documentation ¶
Index ¶
- Variables
- type FunctionSubstitutionRecord
- type RecordField
- type Value
- func Choose(setVal Value, pred func(value Value) bool) Value
- func CrossProduct(vs ...Value) Value
- func FunctionSubstitution(source Value, substitutions []FunctionSubstitutionRecord) Value
- func MakeBool(v bool) Value
- func MakeFunction(setVals []Value, body func([]Value) Value) Value
- func MakeFunctionSet(from, to Value) Value
- func MakeNumber(num int32) Value
- func MakeRecord(pairs []RecordField) Value
- func MakeRecordFromMap(m *immutable.Map[Value, Value]) Value
- func MakeRecordSet(pairs []RecordField) Value
- func MakeSet(members ...Value) Value
- func MakeSetFromMap(m *immutable.Map[Value, bool]) Value
- func MakeString(value string) Value
- func MakeTuple(members ...Value) Value
- func MakeTupleFromList(list *immutable.List[Value]) Value
- func ModuleAppend(lhs, rhs Value) Value
- func ModuleAssert(cond, msg Value) Value
- func ModuleAsteriskSymbol(lhs, rhs Value) Value
- func ModuleBackslashSymbol(lhs, rhs Value) Value
- func ModuleCardinality(v Value) Value
- func ModuleColonGreaterThanSymbol(lhs, rhs Value) Value
- func ModuleDivSymbol(lhs, rhs Value) Value
- func ModuleDomainSymbol(v Value) Value
- func ModuleDotDotSymbol(lhs, rhs Value) Value
- func ModuleDoubleAtSignSymbol(lhs, rhs Value) Value
- func ModuleEqualsSymbol(lhs, rhs Value) Value
- func ModuleEquivSymbol(lhs, rhs Value) Value
- func ModuleGreaterThanOrEqualSymbol(lhs, rhs Value) Value
- func ModuleGreaterThanSymbol(lhs, rhs Value) Value
- func ModuleHead(v Value) Value
- func ModuleInSymbol(lhs, rhs Value) Value
- func ModuleIntersectSymbol(lhs, rhs Value) Value
- func ModuleIsFiniteSet(v Value) Value
- func ModuleLen(v Value) Value
- func ModuleLessThanOrEqualSymbol(lhs, rhs Value) Value
- func ModuleLessThanSymbol(lhs, rhs Value) Value
- func ModuleLogicalNotSymbol(v Value) Value
- func ModuleMinusSymbol(lhs, rhs Value) Value
- func ModuleNegationSymbol(v Value) Value
- func ModuleNotEqualsSymbol(lhs, rhs Value) Value
- func ModuleNotInSymbol(lhs, rhs Value) Value
- func ModuleOSymbol(lhs, rhs Value) Value
- func ModulePercentSymbol(lhs, rhs Value) Value
- func ModulePlusSymbol(lhs, rhs Value) Value
- func ModulePrefixSubsetSymbol(v Value) Value
- func ModulePrefixUnionSymbol(v Value) Value
- func ModuleSelectSeq(a, b Value) Value
- func ModuleSeq(v Value) Value
- func ModuleSubSeq(v, m, n Value) Value
- func ModuleSubsetOrEqualSymbol(lhs, rhs Value) Value
- func ModuleSuperscriptSymbol(lhs, rhs Value) Value
- func ModuleTail(v Value) Value
- func ModuleToString(value Value) Value
- func ModuleUnionSymbol(lhs, rhs Value) Value
- func QuantifiedExistential(setVals []Value, pred func([]Value) bool) Value
- func QuantifiedUniversal(setVals []Value, pred func([]Value) bool) Value
- func SetComprehension(setVals []Value, body func([]Value) Value) Value
- func SetRefinement(setVal Value, pred func(Value) bool) Value
- func (v Value) ApplyFunction(argument Value) Value
- func (v Value) AsBool() bool
- func (v Value) AsFunction() *immutable.Map[Value, Value]
- func (v Value) AsNumber() int32
- func (v Value) AsSet() *immutable.Map[Value, bool]
- func (v Value) AsString() string
- func (v Value) AsTuple() *immutable.List[Value]
- func (v Value) Equal(other Value) bool
- func (v *Value) GobDecode(input []byte) error
- func (v *Value) GobEncode() ([]byte, error)
- func (v Value) Hash() uint32
- func (v Value) IsBool() bool
- func (v Value) IsFunction() bool
- func (v Value) IsNumber() bool
- func (v Value) IsSet() bool
- func (v Value) IsString() bool
- func (v Value) IsTuple() bool
- func (v Value) PCalPrint()
- func (v Value) SelectElement(idx uint) Value
- func (v Value) String() string
- type ValueHasher
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTLAType = errors.New("TLA+ type error")
View Source
var ModuleBOOLEAN = MakeSet(ModuleTRUE, ModuleFALSE)
View Source
var ModuleFALSE = Value{valueBool(false)}
View Source
var ModuleTRUE = Value{valueBool(true)}
View Source
var ModuleZero = MakeNumber(0)
View Source
var ModuledefaultInitValue = Value{}
Functions ¶
This section is empty.
Types ¶
type RecordField ¶
type RecordField struct {
Key, Value Value
}
func (RecordField) Hash ¶
func (field RecordField) Hash() uint32
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func CrossProduct ¶
func FunctionSubstitution ¶
func FunctionSubstitution(source Value, substitutions []FunctionSubstitutionRecord) Value
func MakeFunctionSet ¶
func MakeNumber ¶
func MakeRecord ¶
func MakeRecord(pairs []RecordField) Value
func MakeRecordSet ¶
func MakeRecordSet(pairs []RecordField) Value
func MakeString ¶
func ModuleAppend ¶
func ModuleAssert ¶
func ModuleAsteriskSymbol ¶
func ModuleBackslashSymbol ¶
func ModuleCardinality ¶
func ModuleDivSymbol ¶
func ModuleDomainSymbol ¶
func ModuleDotDotSymbol ¶
func ModuleEqualsSymbol ¶
func ModuleEquivSymbol ¶
func ModuleGreaterThanSymbol ¶
func ModuleHead ¶
func ModuleInSymbol ¶
func ModuleIntersectSymbol ¶
func ModuleIsFiniteSet ¶
func ModuleLessThanSymbol ¶
func ModuleLogicalNotSymbol ¶
func ModuleMinusSymbol ¶
func ModuleNegationSymbol ¶
func ModuleNotEqualsSymbol ¶
func ModuleNotInSymbol ¶
func ModuleOSymbol ¶
func ModulePercentSymbol ¶
func ModulePlusSymbol ¶
func ModulePrefixUnionSymbol ¶
func ModuleSubSeq ¶
func ModuleSuperscriptSymbol ¶
func ModuleTail ¶
func ModuleToString ¶
func ModuleUnionSymbol ¶
func QuantifiedExistential ¶
func (Value) ApplyFunction ¶
func (Value) IsFunction ¶
func (Value) SelectElement ¶
type ValueHasher ¶
type ValueHasher struct{}
func (ValueHasher) Equal ¶
func (ValueHasher) Equal(a, b Value) bool
func (ValueHasher) Hash ¶
func (ValueHasher) Hash(key Value) uint32
Click to show internal directories.
Click to hide internal directories.