add )exit & )off
This commit is contained in:
parent
38ec07c34b
commit
26c12e6724
@ -2,6 +2,10 @@
|
||||
|
||||
These are commands usable from a CBQN REPL that, for one reason or another, aren't suited to be system functions.
|
||||
|
||||
## `)exit` / `)off`
|
||||
|
||||
Equivalent to `•Exit 0`
|
||||
|
||||
## `)ex path/to/file`
|
||||
|
||||
Execute the contents of the file as if it were REPL input (but allowing multiline definitions). Not a system function because modifying the list of global variables during execution is not allowed.
|
||||
|
||||
@ -592,6 +592,8 @@ void cbqn_runLine0(char* ln, i64 read) {
|
||||
else printf("Unknown theme\n");
|
||||
return;
|
||||
#endif
|
||||
} else if (isCmd(cmdS, &cmdE, "exit") || isCmd(cmdS, &cmdE, "off")) {
|
||||
bqn_exit(0);
|
||||
} else if (isCmd(cmdS, &cmdE, "vars")) {
|
||||
B r = listVars(gsc);
|
||||
if (q_N(r)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user