doc-src/Tutorial/Datatype/abdata
author wenzelm
Sat, 01 Jul 2000 19:49:20 +0200
changeset 9226 cbe6144f0f15
parent 5851 15ce4c1c8313
permissions -rw-r--r--
tuned;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5851
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     1
datatype
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     2
    'a aexp = IF ('a bexp) ('a aexp) ('a aexp)
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     3
            | Sum ('a aexp) ('a aexp)
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     4
            | Diff ('a aexp) ('a aexp)
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     5
            | Var 'a
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     6
            | Num nat
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     7
and 'a bexp = Less ('a aexp) ('a aexp)
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     8
            | And ('a bexp) ('a bexp)
15ce4c1c8313 New section on advanced datatypes.
nipkow
parents:
diff changeset
     9
            | Neg ('a bexp)