-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsyntax_tester.dlg
234 lines (190 loc) · 2.91 KB
/
syntax_tester.dlg
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
*! syntax_tester version 1.0
/* ready to go */
// when updating, go straight to the Commands section of the dialog programming
VERSION 7
VERSION 8
VERSION 8.1
VERSION 8.0
VERSION 8.2
VERSION 9
VERSION 9.0
VERSION 9.00
VERSION 9.1
VERSION 9.2
VERSION 10
VERSION 10.0
VERSION 10.1
VERSION 11
VERSION 11.0
VERSION 11.1
VERSION 12
VERSION 12.1
VERSION 13
VERSION 13.1
VERSION 14
VERSION 14.0
VERSION 14.1
VERSION 14.2
VERSION 15
VERSION 15.0
VERSION 15.1
VERSION 15.2
VERSION 16.0
VERSION 16.1
VERSION 16.2
VERSION 17
VERSION 17.0
VERSION 17.1
VERSION 25.0
VERSION 47
INCLUDE fuggy
DEFINE
POSITION
LIST
BEGIN
END
DIALOG
CHECKBOX
RADIO
SPINNER
EDIT
VARLIST
VARNAME
FILE
LISTBOX
COMBOBOX
BUTTON
TEXT
TEXTBOX // new in Stata 10
GROUPBOX
FRAME
COLOR
EXP
HLINK // new in Stata 11
TREEVIEW // new in Stata 14
OK
SUBMIT
CANCEL
COPY
HELP
RESET
MODAL
SYNCHRONOUS_ONLY
SCRIPT
BEGIN
.
action
gaction
script
view
program /* uh oh, this could present some problems */
END
PROGRAM
BEGIN
if you==nuts {
display "stand up and scream!"
}
// here are functions in the -if- section for the dialogs
/* these are class methods, so they really are attached only by a.b.whatever */
// boolean functions coming in flow control section
d1.isdefault()
d1.isenabled()
d1.isnumlist()
d1.isvisible()
d1.isvalidname()
d1.isvarname()
d1.iseq()
d1.isneq()
d1.isgt()
d1.isge()
d1.islt()
d1.isle()
d1.isNumlistEQ() // new in Stata 13
d1.isNumlistLT() // new in Stata 13
d1.isNumlistLE() // new in Stata 13
d1.isNumlistGT() // new in Stata 13
d1.isNumlistGE() // new in Stata 13
d1.isNumlistInRange() // new in Stata 13
d1.startswith()
fooey.endswith()
blooey.contains()
fug.iseqignorecase()
call .
call action
call gaction
call script "foo"
call view
call program "bar"
close
exit
require "hubba"
stopbox stop
stopbox note
stopbox rusure
/* some commands */
by
bysort
put
varlist
ifexp
inrange
weight
beginoptions
option
optionarg
endoptions
allowxi
xi
clear
stata
stata hidden
stata hidden immediate
stata hidden queue
clear
clear curstring
clear cmdstring
clear optstring
END
// Section 5.6 (Stata 17): Special Scripts
// (Just specially named programs, so no highlighting
SCRIPT PREINIT_SCRIPT
// etc
// Section 6 - member properties
// existed since forever, but first in ado-mode with Stata 17
// for strings
p.setvalue
p.setstring
p.append
p.tokenize
p.tokenizeOnStr
p.tokenizeOnChars
p.expandNumlist
p.storeDialogClassName
p.storeClsArrayToQuotedStr
// for doubles
p.setvalue
p.increment
p.increment
p.decrement
p.add
p.subtract
p.multiply
p.divide
p.storeClsArraySize
// for boolean
p.settrue
p.setfalse
p.storeClsObjectExists
// Child dialog methods
create CHILD
c.settitle
c.setExitString
c.OKAction
c.setSubmitAction
c.setExitAction
c.create
c.callthru
PROGRAM
BEGIN
create CHILD // should
END