-
Notifications
You must be signed in to change notification settings - Fork 0
/
GeneralTypes.fs
52 lines (44 loc) · 1011 Bytes
/
GeneralTypes.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
module GeneralTypes
exception ChoiceParseException of string
exception ChoiceOverwriteException
type Choice = string Option * string
type Kind = KnotNode | ChoiceNode | GatherNode
type Node = {
Name: string Option;
Children: Node list;
Label: string Option;
Condition: string Option;
Position: int Option;
Divert: string Option;
Display: string Option;
Terminating: bool;
Sticky: bool;
Kind: Kind
}
type KnotNode = {
Name: string;
Disp: string Option;
Position: int Option;
Divert: string Option
}
type ChoiceNode = {
Name: string Option;
Disp: string Option;
Label: string Option;
Divert: string Option;
Depth: int;
Condition: string Option;
Position: int Option;
Sticky: bool;
}
type GatherNode = {
Depth: int;
Name: string Option;
Disp: string Option;
Position: int Option;
Divert: string Option
}
type Widget =
| Knot of KnotNode
| Gather of GatherNode
| Choice of ChoiceNode