Debian Codegraph @

tests/languages/plant-uml/time_feature.test

raw
1 @startuml
2 clock clk with period 1
3 binary "enable" as EN
4 concise "dataBus" as db
5
6 @0 as :start
7 @5 as :en_high
8 @10 as :en_low
9 @:en_high-2 as :en_highMinus2
10
11 @:start
12 EN is low
13 db is "0x0000"
14
15 @:en_high
16 EN is high
17
18 @:en_low
19 EN is low
20
21 @:en_highMinus2
22 db is "0xf23a"
23
24 @:en_high+6
25 db is "0x0000"
26 @enduml
27
28 @1:15:00
29 @2000/12/31
30
31 ----------------------------------------------------
32
33 [
34 ["delimiter", "@startuml"],
35
36 ["keyword", "clock"],
37 " clk with period 1\r\n",
38
39 ["keyword", "binary"],
40 ["string", "\"enable\""],
41 ["keyword", "as"],
42 " EN\r\n",
43
44 ["keyword", "concise"],
45 ["string", "\"dataBus\""],
46 ["keyword", "as"],
47 " db\r\n\r\n",
48
49 ["time", "@0"],
50 ["keyword", "as"],
51 ["punctuation", ":"],
52 "start\r\n",
53
54 ["time", "@5"],
55 ["keyword", "as"],
56 ["punctuation", ":"],
57 "en_high\r\n",
58
59 ["time", "@10"],
60 ["keyword", "as"],
61 ["punctuation", ":"],
62 "en_low\r\n",
63
64 ["time", "@:en_high-2"],
65 ["keyword", "as"],
66 ["punctuation", ":"],
67 "en_highMinus2\r\n\r\n",
68
69 ["time", "@:start"],
70
71 "\r\nEN ",
72 ["keyword", "is"],
73 " low\r\ndb ",
74 ["keyword", "is"],
75 ["string", "\"0x0000\""],
76
77 ["time", "@:en_high"],
78 "\r\nEN ", ["keyword", "is"], " high\r\n\r\n",
79
80 ["time", "@:en_low"],
81 "\r\nEN ", ["keyword", "is"], " low\r\n\r\n",
82
83 ["time", "@:en_highMinus2"],
84 "\r\ndb ", ["keyword", "is"], ["string", "\"0xf23a\""],
85
86 ["time", "@:en_high+6"],
87 "\r\ndb ", ["keyword", "is"], ["string", "\"0x0000\""],
88 ["delimiter", "@enduml"],
89
90 ["time", "@1:15:00"],
91 ["time", "@2000/12/31"]
92 ]