22 extern void com_testsys();
29 {
"let",
com_let,
false,
false,
true,
32 "varname = expr : Assign vector variables." } ,
36 "[[func (args)] stuff] : Define a user-definable function." } ,
37 {
"set",
com_set,
false,
false,
true,
40 "[option] [option = value] ... : Set a variable." } ,
41 {
"alias",
com_alias,
false,
false,
false,
44 "[[word] alias] : Define an alias." } ,
48 "spec name pat ... : Redefine vector and plot types.\n" } ,
49 {
"plot",
com_plot,
false,
false,
true,
52 "expr ... [vs expr] [xl xlo xhi] [yl ylo yhi] : Plot things." },
55 {
"graf",
com_graf,
false,
false,
true,
58 "[options] expr ... : Plot vectors." },
62 ": Display list of option keywords." } ,
63 {
"mplot",
com_mplot,
false,
false,
false,
66 ": plot results from margin analysis." } ,
67 {
"free",
com_free,
false,
false,
true,
70 ": delete current plot, circuit." } ,
71 {
"sced",
com_sced,
false,
true,
true,
74 "[-r/-n][filename] : Graphically edit a spice deck." } ,
78 "[-v] [analysis]: Perform operating range analysis." } ,
79 {
"loop",
com_loop,
false,
true,
true,
82 "[min max stp [min max stp]] [analysis]: run analysis over range." } ,
86 "codeblock [filename] [print] [free]: Name an executable codeblock." } ,
90 "[filename] : Text editor for X windows." } ,
94 "[resource: value] : set resources for X windows." } ,
96 {
"testsys", com_testsys,
false,
false,
false,
99 "testsys [args]: Run the test system interface." } ,
105 ": Display vector status." } ,
109 "[plotname] ... : Throw away all the data in the plot." } ,
110 {
"setplot",
com_splot,
false,
false,
true,
113 "[plotname] : Change the current working plot." } ,
114 {
"setcirc",
com_scirc,
false,
true,
false,
117 "[circuit name] : Change the current circuit." } ,
121 "file plotargs : Send plot to Xgraph-11." } ,
125 "file plotargs : Produce hardcopy plots." } ,
129 "plotargs : Produce ascii plots." } ,
130 {
"write",
com_write,
false,
false,
true,
133 "file expr ... : Write data to a file." } ,
137 "var parm=val ... : Compose a vector." } ,
138 {
"unlet",
com_unlet,
false,
false,
false,
141 "varname ... : Undefine vectors." } ,
142 {
"print",
com_print,
false,
false,
true,
145 "[col] expr ... : Print vector values." } ,
146 {
"load",
com_load,
false,
false,
true,
149 "file ... : Load in data." } ,
150 {
"cross",
com_cross,
false,
false,
true,
153 "vecname number [ vector ... ] : Make a vector in a strange way." } ,
157 "[func ...] : Undefine a user-definable function." } ,
158 {
"op",
com_op,
false,
true,
true,
161 "[.op card args] : Determine the operating point of the circuit." } ,
162 {
"tf",
com_tf,
false,
true,
true,
165 "[.tran card args] : Do a transient analysis." } ,
166 {
"tran",
com_tran,
false,
true,
true,
169 "[.tran card args] : Do a transient analysis." } ,
170 {
"ac",
com_ac,
false,
true,
true,
173 "[.ac card args] : Do an ac analysis." } ,
174 {
"dc",
com_dc,
false,
true,
true,
177 "[.dc card args] : Do a dc analysis." } ,
178 {
"pz",
com_pz,
false,
true,
false,
181 "[.pz card args] : Do a pole / zero analysis." } ,
182 {
"sens",
com_sens,
false,
true,
true,
185 "[.ac card args] : Do a sensitivity analysis." } ,
186 {
"disto",
com_disto,
false,
true,
false,
189 "[.disto card args] : Do an distortion analysis." } ,
193 "[.noise card args] : Do a noise analysis." } ,
197 "[logical] [physical] [deck] : Print the current circuit." } ,
198 {
"edit",
com_edit,
false,
true,
true,
201 "[filename] : Edit a spice deck and then load it in." } ,
202 {
"dump",
com_dump,
false,
true,
false,
205 ": Print a dump of the current circuit." } ,
209 "fund_freq vector ... : Do a fourier analysis of some data." } ,
210 {
"show",
com_show,
false,
true,
false,
213 "devspecs ... : parmspecs ... : Print out device parameters." } ,
214 {
"alter",
com_alter,
false,
true,
false,
217 "devspecs : parmname value : Alter device parameters." } ,
221 ": Continue after a stop." } ,
222 {
"state",
com_state,
false,
true,
false,
225 "(unimplemented) : Print the state of the circuit." },
226 {
"stop",
com_stop,
false,
true,
false,
229 "[stop args] : Set a breakpoint." } ,
230 {
"trace",
com_trce,
false,
true,
false,
233 "[all] [node ...] : Trace a node." } ,
234 {
"save",
com_save,
false,
true,
false,
237 "[all] [node ...] : Save a spice output." } ,
241 "[all] [node ...] : Incrementally plot a node." } ,
242 {
"status",
com_sttus,
false,
true,
false,
245 ": Print the current breakpoints and traces." } ,
249 "[all] [break number ...] : Delete breakpoints and traces." } ,
250 {
"step",
com_step,
false,
true,
false,
253 "[number] : Iterate number times, or one." } ,
254 {
"reset",
com_rset,
false,
true,
true,
257 ": Terminate a simulation after a breakpoint (formerly 'end')." } ,
258 {
"run",
com_run,
false,
true,
true,
261 "[rawfile] : Run the simulation as specified in the input file." } ,
265 "file [outfile] : Run a spice job asynchronously." } ,
266 {
"jobs",
com_jobs,
false,
false,
false,
269 ": Report on asynchronous spice jobs." } ,
273 "[input file] : Run a spice job remotely." } ,
274 {
"bug",
com_bug,
false,
false,
true,
277 ": Report a %s bug." } ,
281 ": Print last non-converging node or device" } ,
282 {
"newhelp",
com_ahelp,
false,
false,
true,
285 "[command name] ... : help." },
286 {
"tutorial",
com_ghelp,
false,
false,
true,
289 "[subject] ... : Hierarchical documentation browser." } ,
293 "[subject] ... : Hierarchical documentation browser." } ,
294 {
"oldhelp",
com_help,
false,
false,
true,
297 "[command name] ... : Print help." } ,
298 {
"quit",
com_quit,
false,
false,
true,
305 "file : Source a %s file." } ,
306 {
"shift",
com_shift,
false,
false,
false,
309 "[var] [number] : Shift argv or the named list var to the left." } ,
310 {
"unset",
com_unset,
false,
false,
false,
313 "varname ... : Unset a variable." } ,
317 "word ... : Undefine an alias." } ,
321 "[-r] [number] : Print command history." } ,
322 {
"echo",
com_echo,
false,
false,
false,
325 "[stuff ...] : Print stuff." } ,
326 {
"shell",
com_shell,
false,
false,
true,
329 "[args] : Fork a shell, or execute the command." } ,
333 "[resource ...] : Print current resource usage." } ,
337 "[directory] : Change working directory." } ,
341 "[number] : Print the version number." } ,
342 {
"diff",
com_diff,
false,
false,
false,
345 "plotname plotname [vec ...] : 'diff' two plots." } ,
349 ": Rebuild the unix command database." } ,
350 {
"cdump",
com_cdump,
false,
false,
false,
353 ": Dump the current control structures." } ,
354 {
"settype",
com_stype,
false,
false,
false,
357 "type vec ... : Change the type of a vector." } ,
361 "varname s1 s2 : Set $varname to strcmp(s1, s2)." } ,
365 " [ vec ... ] : Convert plot into one with linear scale." } ,
367 {
"while",
NULL,
false,
false,
false,
370 "condition : Execute while the condition is true." } ,
371 {
"repeat",
NULL,
false,
false,
false,
374 "[number] : Repeat number times, or forever." } ,
375 {
"dowhile",
NULL,
false,
false,
false,
378 "condition : Execute while the condition is true." } ,
379 {
"foreach",
NULL,
false,
false,
false,
382 "variable value ... : Do once for each value." } ,
383 {
"if",
NULL,
false,
false,
false,
386 "condition : Execute if the condition is true." } ,
387 {
"else",
NULL,
false,
false,
false,
390 ": Goes with if." } ,
391 {
"end",
NULL,
false,
false,
false,
395 {
"break",
NULL,
false,
false,
false,
398 ": Break out of a block." } ,
399 {
"continue",
NULL,
false,
false,
false,
402 ": Continue a loop." } ,
403 {
"label",
NULL,
false,
false,
false,
406 "word : Create someplace to go to." } ,
407 {
"goto",
NULL,
false,
false,
false,
410 "word : Go to a label." } ,
412 { 0,
NULL,
false,
false,
false, { 0, 0, 0, 0 },
E_DEFHMASK, 0,
LOTS,
void com_xeditor(wordlist *wl)