Content deleted Content added
Rescuing 1 sources and tagging 0 as dead. #IABot (v1.2.7.1) |
Jfsimoneau (talk | contribs) →Example: Use ASCII tilde character as in McCabe's GitHub examples |
||
Line 37:
Gender [[#algebraic|'''::=''']] male | female.
person [[#interface|'''<
age:[] '''=>''' ''integer''.
gender:[] '''=>''' Gender.
Line 63:
{{anchor|algebraic}}The <code>::=</code> rule defines a new [[algebraic data type]], a [[data type]] with only data constructors.
{{anchor|interface}}The <code><
{{anchor|theory}}The <code>$=</code> type rule indicates that there is also a theory label, with the functor <code>person</code>, for a theory that defines the characteristic properties of the <code>person</code> type - implements the <code>person</code> interface - in terms of four given parameters of types string, <code>day</code>, <code>Gender</code>, and <code>string</code>.
|