View difference between Paste ID: GUkKhV2M and QxGV2wcJ
SHOW: | | - or go back to the newest paste.
1
(struct moar (x) #:transparent #:mutable)
2
(define regrarity (list 0 1 2 3 4))
3
(define none (list 0))
4
(define testarity (list 0 2 3 4 5))
5
6
(define cmds (hash "oVarStats" (list 0 1 2) ; This is the only command list requiring the list of possible arities. If any value x and above can be used, then you may use (moar x).
7-
                   "tVarStats" (list 0 2 3) ; rand uses a separate call named, of course, "rand".
7+
                   "tVarStats" (list 0 2 3) ; 
8
                   "tSampFTest" (moar 0)
9
                   "tSampTInt" (moar 0)
10
                   "tSampTTest" (moar 0)
11
                   "Archive" (list 1) ; If they take arguments, then such functions will search for a space before the first argument, and commas before the rest.
12
                   "AUTOAnswer" none
13
                   "AxesOff" none ; Note: some commands have different names to please the lexer
14
                   "AxesOn" none
15
                   "apbi" none
16
                   "Boxplot" none
17
                   "CLASSIC" none
18
                   "ClearEntries" none
19
                   "ClockOff" none
20
                   "ClockOn" none
21
                   "ClrAllLists" none
22
                   "ClrDraw" none
23
                   "ClrHome" none
24
                   "ClrList" (moar 1)
25
                   "ClrTable" none
26
                   "Connected" none
27
                   "CoordOff" none
28
                   "CoordOn" none
29
                   "CubicReg" regrarity
30
                   "DECAnswer" none
31
                   "Degree" none
32
                   "DependAsk" none
33
                   "DependAuto" none
34
                   "DiagnosticOff" none
35
                   "DiagnosticOn" none
36
                   "Disp" (moar 0)
37
                   "DrawF" (list 1)
38
                   "DrawInv" (list 1)
39
                   "\\e" (list 1) ; this is the small e
40
                   "Else" none
41
                   "End" none
42
                   "Eng" none
43
                   "ExecLib" none
44
                   "ExpReg" regrarity
45
                   "ExprOff" none
46
                   "ExprOn" none
47
                   "Fix" (list 1)
48
                   "Float" none
49
                   "FnOff" none
50
                   "FnOn" none
51
                   "FRAC Answer" none
52
                   "Full" none
53
                   "Func" none
54
                   "GarbageCollect" none
55
                   "getDate" none
56
                   "getDtFmt" none
57
                   "getKey" none
58
                   "getTime" none
59
                   "getTmFmt" none
60
                   ; Lbl and Goto have their own calls
61
                   "GridOff" none
62
                   "GridOn" none
63
                   "GT" none
64
                   "Histogram" none
65
                   "Horiz" none
66
                   "Horizontal" (list 1)
67
                   "If" (list 1)
68
                   "IndpntAsk" none
69
                   "IndpntAuto" none
70
                   "Input" (list 0 1 2)
71
                   "isClockOn" none
72
                   "LabelOff" none
73
                   "LabelOn" none
74
                   "LinRegABX" none
75
                   "LinRegAXB" none
76
                   "LinRegTInt" testarity
77
                   "LinRegTTest" testarity
78
                   "LnReg" regrarity
79
                   "Logistic" regrarity
80
                   "ManualFit" (list 0 1)
81
                   "MATHPRINT" none
82
                   "Med-Med" regrarity
83
                   "ModBoxPlot" none
84
                   "Normal" none
85
                   "NormProbPlot" none
86
                   "Param" none
87
                   "Pause" (list 0 1)
88
                   "PlotsOff" (moar 0)
89
                   "PlotsOn" (moar 0)
90
                   "Pmt_Bgn" none
91
                   "Pmt_End" none
92
                   "Polar" none
93
                   "PolarGC" none
94
                   ; Both exec and prgm have their own calls
95
                   "Prompt" (moar 1)
96
                   "PowerReg" regrarity
97
                   "QuadReg" regrarity
98
                   "QuartReg" regrarity
99
                   "Radian" none
100
                   "Reti" none
101
                   "Real" none
102
                   "RecallGDB" (list 1)
103
                   "RecallPic" (list 1)
104
                   "RectGC" none
105
                   "Repeat" (list 1)
106
                   "Return" none
107
                   "Scatter" none
108
                   "Sci" none
109
                   "Seq" none
110
                   "Sequential" none
111
                   "SetUpEditor" (moar 0)
112
                   "Simul" none
113
                   "SinReg" regrarity
114
                   "startTmr" none
115
                   "Stop" none
116
                   "StoreGDB" (list 1)
117
                   "StorePic" (list 1)
118
                   "Then" none
119
                   "Time" none
120
                   "TInterval" (moar 0)
121
                   "Trace" none
122
                   "TTest" (moar 0)
123
                   "UnArchive" (list 1)
124
                   "uvAxes" none
125
                   "uwAxes" none
126
                   "Vertical" (list 1)
127
                   "vwAxes" none
128
                   "Web" none
129
                   "While" (list 1)
130
                   "xyLine" none
131
                   "ZBox" none
132
                   "ZDecimal" none
133
                   "ZInteger" none
134
                   "ZInterval" none
135
                   "ZoomIn" none
136
                   "ZoomOut" none
137
                   "ZoomFit" none
138
                   "ZoomRcl" none
139
                   "ZoomStat" none
140
                   "ZoomSto" none
141-
                   ))
141+
142
                   "ZSquare" none
143
                   "ZStandard" none
144
                   ; note: Z-Test has a parenthesis attached
145
                   "ZTrig" none
146
                   ))
147
(define cmdps (hash "sqrt" (list 1)
148
                    "cbrt" (list 1)
149
                    ; xrt is an operator
150
                    "oPropZInt" (moar 0)
151
                    "tPropZInt" (moar 0)
152
                    "oPropZTest" (moar 0)
153
                    "tPropZTest" (moar 0)
154
                    "tSampZInt" (moar 0)
155
                    "tSampZTest" (moar 0)
156
                    "abs" (list 1)
157
                    "angle" (list 1)
158
                    "ANOVA" (moar 1)
159
                    "Asm" (list 1)
160
                    "AsmComp" (list 2)
161
                    "augment" (list 2)
162
                    "bal" (list 1 2)
163
                    "binomcdf" (list 2 3)
164
                    "binompdf" (list 2 3)
165
                    "checkTmr" (list 1)
166
                    "chi2cdf" (list 3)
167
                    "chi2pdf" (list 3)
168
                    "chi2Test" (moar 0)
169
                    "chi2GOFTest" (moar 0)
170
                    "Circle" (list 3 4)
171
                    "conj" (list 1)
172
                    "cos" (list 1)
173
                    "arccos" (list 1)
174
                    "cosh" (list 1)
175
                    "arccosh" (list 1)
176
                    "cot" (list 1)
177
                    "arccot" (list 1)
178
                    "coth" (list 1)
179
                    "arccoth" (list 1)
180
                    "csc" (list 1)
181
                    "arccsc" (list 1)
182
                    "csch" (list 1)
183
                    "arccsch" (list 1)
184
                    "cumul" (list 1)
185
                    "dayOfWk" (list 3)
186
                    "dbd" (list 2)
187
                    "det" (list 1)
188
                    "dim" (list 1) ; note: to resize an array, use resize()
189
                    "DSL" (list 2)
190
                    "exp" (list 1)
191
                    "toEff" (list 2)
192
                    "EquToString" (list 2)
193
                    "expr" (list 1)
194
                    "Fcdf" (list 4)
195
                    "Fill" (list 2)
196
                    "fMax" (list 4 5)
197
                    "fMin" (list 4 5)
198
                    "fnInt" (list 4 5)
199
                    "For" (list 3 4)
200
                    "fPart" (list 1)
201
                    "Fpdf" (list 3)
202
                    "gcd" (list 2)
203
                    "geometcdf" (list 2)
204
                    "geometpdf" (list 2)
205
                    "Get" (list 1)
206
                    "GetCalc" (list 1 2)
207
                    "getDtStr" (list 1)
208
                    "getTmStr" (list 1)
209
                    "GraphStyle" (list 2)
210
                    "identity" (list 1)
211
                    "imag" (list 1)
212
                    "inString" (list 2 3)
213
                    "int" (list 1)
214
                    "Sint" (list 2 3)
215
                    "invNorm" (list 1 3)
216
                    "invT" (list 2)
217
                    "iPart" (list 1)
218
                    "irr" (list 2 3)
219
                    "ISG" (list 2)
220
                    "lcm" (list 2)
221
                    "length" (list 1)
222
                    "Line" (list 4 5)
223
                    "dList" (list 1)
224
                    "ListToMatr" (moar 2)
225
                    "ln" (list 1)
226
                    "log" (list 1)
227
                    "logBase" (list 2)
228
                    "MatrToList" (moar 2)
229
                    "max" (list 1 2)
230
                    "mean" (list 1 2)
231
                    "median" (list 1 2)
232
                    "Menu" (list 3 5 7 9 11 13 15)
233
                    "min" (list 1 2)
234
                    "nDeriv" (list 3 4)
235
                    "toNom" (list 2)
236
                    "normalcdf" (list 2 4)
237
                    "normalpdf" (list 1 3)
238
                    "not" (list 1)
239
                    "npv" (list 3 4)
240
                    "OpenLib" (list 1)
241
                    "Output" (list 3)
242
                    "PlotOne" (list 4)
243
                    "PlotTwo" (list 4)
244
                    "PlotThree" (list 4)
245
                    "poissoncdf" (list 2)
246
                    "poissonpdf" (list 2)
247
                    "Sprn" (list 2 3)
248
                    "prod" (list 1 2 3)
249
                    "PtChange" (list 2)
250
                    "PtOff" (list 2 3)
251
                    "PtOn" (list 2 3)
252
                    "PxlChange" (list 2)
253
                    "PxlOff" (list 2)
254
                    "PxlOn" (list 2)
255
                    "pxlTest" (list 2)
256
                    "PToRx" (list 2)
257
                    "PToRy" (list 2)
258
                    "rand" (list 0 1)
259
                    "randBin" (list 2 3)
260
                    "randInt" (list 2 3)
261
                    "randIntNoRep" (list 2)
262
                    "randM" (list 2)
263
                    "randNorm" (list 2 3)
264
                    "real" (list 1)
265
                    "ref" (list 1)
266
                    "remain" (list 2)
267
                    "round" (list 1 2)
268
                    "mRow" (list 3)
269
                    "mRowA" (list 4)
270
                    "RowA" (list 3)
271
                    "rowSwap" (list 3)
272
                    "rref" (list 1)
273
                    "RToPr" (list 2)
274
                    "RToPt" (list 2)
275
                    "resize" (list 2)
276
                    "Select" (list 2)
277
                    "Send" (list 1)
278
                    "seq" (list 4 5)
279
                    "setDate" (list 3)
280
                    "setDtFmt" (list 1)
281
                    "setTime" (list 3)
282
                    "setTmFmt" (list 1)
283
                    "Shade" (list 2 6)
284
                    "ShadeChi2" (list 3)
285
                    "ShadeF" (list 4)
286
                    "ShadeNorm" (list 2 4)
287
                    "Shade_t" (list 3)
288
                    "sec" (list 1)
289
                    "arcsec" (list 1)
290
                    "sech" (list 1)
291
                    "arcsech" (list 1)
292
                    "sin" (list 1)
293
                    "arcsin" (list 1)
294
                    "sinh" (list 1)
295
                    "arcsinh" (list 1)
296
                    "solve" (list 3 4)
297
                    "SortA" (moar 1)
298
                    "SortD" (moar 1)
299
                    "stdDev" (list 1 2)
300
                    ; StrToEqu? Use :=
301
                    "sub" (list 3)
302
                    "sum" (list 1 2 3)
303
                    "Sigma" (list 3)
304
                    "tan" (list 1)
305
                    "arctan" (list 1)
306
                    "tanh" (list 1)
307
                    "arctanh" (list 1)
308
                    "Tangent" (list 2)
309
                    "tcdf" (list 3)
310
                    "tpdf" (list 2)
311
                    "Text" (moar 3)
312
                    "timeCnv" (list 1)
313
                    "tvm_FV" (moar 0)
314
                    "tvm_I%" (moar 0)
315
                    "tvm_N" (moar 0)
316
                    "tvm_Pmt" (moar 0)
317
                    "tvm_PV" (moar 0)
318
                    "variance" (list 1 2)
319
                    "ZTest" (moar 0)
320
                    )) ; with a left parenthesis attached to the beginning
321
(define postfixes (list "!" "%" "degrees" "radians" "^-1" "^2" "^3" "toDec" "toDMS" "toFD" "toFrac" "toPolar" "toNDUND" "toRect"))
322
(define ops (list "+" "-" "*" "/" "^" "xrt" "==" "!=" ":=" "<" ">" "<=" ">=" "&&" "||" "^^" "\\/" "\\u"))
323
(define syms (list "")) ; system variables
324
(define aliases (hash "RclPic" "RecallPic"
325
                      "RclGDB" "RecallGDB"
326
                      "ZStd" "ZStandard"
327
                      "and" "&&"
328
                      "or" "||"
329
                      "xor" "^^"
330
                      )) ; command aliases