-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharith_class_diagram_yuml.txt
37 lines (33 loc) · 1.35 KB
/
arith_class_diagram_yuml.txt
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
# display using http://yuml.me
[Node]^-[LeftUnaryNode]
[LeftUnaryNode]^-[FactorialNode]
[LeftUnaryNode]^-[PercentNode]
[Node]^-[NumericNode]
[Node]^-[LeadingSignNode]
[Node]^-[BinaryNode]
[BinaryNode]^-[ExponentNode]
[BinaryNode]^-[MultiplyNode]
[BinaryNode]^-[AddNode]
# display using http://yuml.me
# including attributes and operations
[Node|tokens: ParseResults|__init__(tokens);evaluate()]^-[LeftUnaryNode]
[LeftUnaryNode|opn: fn(value)|evaluate()]^-[FactorialNode|opn]
[LeftUnaryNode]^-[PercentNode|opn]
[Node]^-[NumericNode|evaluate()]
[Node]^-[LeadingSignNode|evaluate()]
[Node]^-[BinaryNode]
[BinaryNode|opn_fn_map: dict()|evaluate()]^-[ExponentNode|opn_fn_map|__init__(tokens)]
[BinaryNode]^-[MultiplyNode|opn_fn_map]
[BinaryNode]^-[AddNode|opn_fn_map]
# display using http://yuml.me
# including attributes and operations
# with abstract classes white and concrete classes wheat
[Node|tokens: ParseResults|__init__(tokens);evaluate()]^-[LeftUnaryNode]
[LeftUnaryNode|opn: fn(value)|evaluate()]^-[FactorialNode|opn{bg:wheat}]
[LeftUnaryNode]^-[PercentNode|opn{bg:wheat}]
[Node]^-[NumericNode|evaluate(){bg:wheat}]
[Node]^-[LeadingSignNode|evaluate(){bg:wheat}]
[Node]^-[BinaryNode]
[BinaryNode|opn_fn_map: dict()|evaluate()]^-[ExponentNode|opn_fn_map|__init__(tokens){bg:wheat}]
[BinaryNode]^-[MultiplyNode|opn_fn_map{bg:wheat}]
[BinaryNode]^-[AddNode|opn_fn_map{bg:wheat}]