doc-src/Tutorial/Datatype/mutnested
author wenzelm
Sat, 06 May 2000 00:46:13 +0200
changeset 8820 a1297de19ec7
parent 5851 15ce4c1c8313
child 9255 2ceb11a2e190
permissions -rw-r--r--
fixed clash with new 'abs' const;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5851
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     1
datatype expr = Var string | Lam string expr | App expr expr
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     2
              | Data data
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     3
and      data = Bool bool | Num nat
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     4
              | Closure string expr "(string * data)list"