-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtest.wsd
51 lines (32 loc) · 801 Bytes
/
test.wsd
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
title How the internet works
participant User as u
participant Browser as b
participant Server as s
u->+b: Gimme web!
b->+s: Gimme codez
# is a comment. actually supported by WSD
# the "opt" keyword is like alt, except there's only one.
opt Authentication
s-->-b: Gimme token!
b-->-u: Gimme password!
alt Has password
u->*b: Password
b->s: Hash
deactivate b
else No password
u->+b: Zeh cancel
state over b
This is seriously not cool.
end state
b->+s: Zeh lulz
end
end
s-->-b: HTMLz
b-->-u: Webz
# the following statements are only meant to
# interactively test fontification
destroy destroy
activate activate
deactivate deactivate
note over non-fontified actor
end note