-
Notifications
You must be signed in to change notification settings - Fork 0
/
PROTO-LANG
96 lines (83 loc) · 2.37 KB
/
PROTO-LANG
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# this is an example of the survey description
# language (SDL). The lisp like format seems the cleanest for
# dealing with such a heavily text laden language; plus it's easy
# to parse <8-).
# the following are the basic components
#
# (survey SURVEY_NAME)
# Unique name for the survey, used in reporting,
# and it is displayed when the tool is running
#
# (query QNAME (question ...) (answer ...))
# A query which consists of a question/answer pair
#
# (question QTEXT
# Let's the program now what to ask the user,
#
# (answer ATYPE)
# ATYPE can be one of the following TEXT,SHORT-TEXT,CHOOSE
# boxes, or ATEXT is a newline separated list of choices in the case
# of choose
(survey "EXAMPLE SURVEY")
(query "test" (question "Rank the following items in order
of the most liked to the least liked:")
(answer rank ("apple")("orange")("carrot")("tomato")("celery")))
(query "rank food in order of importance"
(question "Rank the following food items:")
(answer RANK ("lentils")("carrots")("black beans")("split peas")))
(query "have workstation"
(question "Do you have a workstation?")
(answer choose
("Yes")
("No" exclude("hostname","swap space","rank system aspects"))
("Not sure, explain in comments if necessary")
)
)
(query "hostname"
(question "What is your workstation's name?")
(answer short-text)
)
(query "swap space"
(question "How often do you run
out of memory/swap
space?"
)
(answer choose 1 ..
("Never" exclude("big apps"))
("Very rarely" exclude("big apps"))
("Once a week")
("Once a month"))
)
(query "big apps"
(question "Do you run memory intensive apps on your workstation?")
(answer choose
("Yes")
("No")
("Not sure")
)
)
(query "rank system aspects"
(question "Please rank by importance the following system aspects:")
(answer rank
("More workstation memory") ("More workstation temporary space")
("More home directory space") ("Faster workstation performance")
("Faster network performance")))
(query "user type"
(question "What type of user are you?")
(answer choose
("Local, Software Division")
("Remote, Software Division")
("Remote, non Software Division" exclude("printers","noise"))
("Other, please explain in comment section below")
)
)
(query "response quality"
(question "How would you rate our response times?")
(answer choose
("good")
("average")
("poor")
("outstanding")
("unacceptable")
)
)