Documentation ¶
Overview ¶
pacakge eph provides helpers for testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aspects ¶
Aspects A set of related object states such that exactly one member of the set is true for a given object at a single time. Generates an implicit kind of 'aspect' where every field of the kind is a boolean property.
type BeginDomain ¶
type Cardinality ¶
type Cardinality interface {
Cardinality()
}
type Directives ¶
Directives
type Kinds ¶
Kinds A new type deriving from another existing type. The new kind has all of the properties of all of its ancestor kinds and it can be used wherever one of its ancestor kinds is needed. ( The reverse isn't true because the new kind can have its own unique properties not available to its ancestors. )
type ManyMany ¶
type ManyMany struct { Kinds string `if:"label=_,type=text"` OtherKinds string `if:"label=to_kinds,type=text"` }
ManyMany
func (*ManyMany) Cardinality ¶
func (*ManyMany) Cardinality()
type ManyOne ¶
type ManyOne struct { Kinds string `if:"label=_,type=text"` OtherKind string `if:"label=to_kind,type=text"` }
ManyOne
func (*ManyOne) Cardinality ¶
func (*ManyOne) Cardinality()
type OneMany ¶
type OneMany struct { Kind string `if:"label=_,type=text"` OtherKinds string `if:"label=to_kinds,type=text"` }
OneMany
func (*OneMany) Cardinality ¶
func (*OneMany) Cardinality()
type OneOne ¶
type OneOne struct { Kind string `if:"label=_,type=text"` OtherKind string `if:"label=to_kind,type=text"` }
OneOne
func (*OneOne) Cardinality ¶
func (*OneOne) Cardinality()
type Params ¶
type Params struct { Affinity affine.Affinity `if:"label=have"` Name string `if:"label=called,type=text"` Class string `if:"label=of,optional,type=text"` Initially rt.Assignment `if:"label=initially,optional"` }
Params 'Affinity' designates the storage type of a given parameter while 'class' is used to indicate an interpretation of that parameter, for example a reference to a kind. Pattern locals can have an initial value, other uses of parameter cannot.
func AspectParam ¶
ensure fields which reference aspects use the necessary formatting
func (Params) GetFieldInfo ¶
type Patterns ¶
Patterns Patterns provide author reusable code. The parameters define values provided by the caller. Locals provide scratch values for use during pattern processing. The result allows the pattern to return a value to the caller of pattern. While multiple pattern commands can be used to define a pattern, the set of arguments and the return can only be specified once.
type Plurals ¶
Plurals Rules for transforming plural text to singular text and back again. Used by the assembler to help interpret author definitions, and at runtime to help the parser interpret user input.
type Values ¶
type Values struct { Noun string Field string Path []string Value literal.LiteralValue }
Values Give a noun a specific value at startup. Initialization is somewhat simplistic: 1. Initial values are not scoped to domains, triggers must be used to change values when domains begin and end. 2. The values inside of records can be set using a 'path' to find them, however individual values within lists cannot be set. Note: when using a path, the path addresses the noun first, the named field - referring to the inner most record - last.