You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Appendix A - Examples 169<br />
frame feline is a mammal , carnivore<br />
default legs are 4 and<br />
default speed is 'very fast' and<br />
default tail is { long and furry } .<br />
frame rodent is a mammal , herbivore<br />
default habitat is sewer and<br />
default status is pest and<br />
default tail is { short and thin } .<br />
frame human is a mammal<br />
default brain is large and<br />
default legs are 2 and<br />
default skills are { tool_making } .<br />
frame cat is a feline<br />
default size is medium .<br />
frame tiger is a feline<br />
default habitat is jungle and<br />
default meal is human and<br />
default state is predator and<br />
default size is large .<br />
frame squirrel is a rodent<br />
default size is small and<br />
default tail is { long and bushy } .<br />
Unlike most other rodents, whose tails are generally short and thin, the<br />
tail of a squirrel is long and bushy.<br />
frame manx is a cat ;<br />
do not inherit tail .<br />
Unlike other cats, a manx does not have a tail. This is represented by not<br />
inheriting the tail attribute.<br />
instance sammy is a cat ;<br />
habitat is my_house ;<br />
inherit meal from herbivore .<br />
The instance called sammy illustrates the technique of overriding the frame<br />
hierarchy for a particular attribute. sammy will inherit its meal type from<br />
herbivore.<br />
instance sylvester is a cat ;<br />
habitat is my_house ;<br />
meal is tweety_pie ;<br />
skin is shaggy .<br />
instance shere_khan is a tiger ;<br />
meal is mowgli .<br />
instance mowgli is a human ;<br />
skills are { fire_making } .<br />
<strong>flex</strong> toolkit