Definition Table Specification and Usage
The definition table module embodies the concept of a set of
distinguishable entities, each having some set of properties.
Typical Specification (.pdl file)
Name: Type;
generates the basic query operations:
GetName(DefTableKey key, Type deflt)
void SetName(DefTableKey key, Type add, Type replace)
void ResetName(DefTableKey key, Type val)
Typical Error Situations
- Accessing a property before it has been set:
==> wrong runtime behavior
Typical Solution Pattern:
RULE r_root: ...
root.propset = CONSTITUENTS objects.propset;
RULE r_set: ...
x.propset = SetProp(xyz_key, v1, v2);
RULE r_get: ...
... y.GetProp(y_key, defltval)
<- INCLUDING root.propset;
Back to Typical Eli Errors
|