diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-10-15 16:18:02 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-10-15 16:18:02 -0700 |
commit | bf03074e346b004659196b6c17eee04dbffd3ac2 (patch) | |
tree | 7200db30f1ef7e3661091552932eb304bd4ce9c6 /sys/cmd/rc/exec.h | |
parent | 566d54fe549286895fdef8aa9f385686405dd290 (diff) |
feat(rc): working prototype of input->compile->print loop
Diffstat (limited to 'sys/cmd/rc/exec.h')
-rw-r--r-- | sys/cmd/rc/exec.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sys/cmd/rc/exec.h b/sys/cmd/rc/exec.h new file mode 100644 index 0000000..ef826fb --- /dev/null +++ b/sys/cmd/rc/exec.h @@ -0,0 +1,33 @@ +#pragma once + +/* + * opcode routines + * Arguments on stack (...) + * Arguments in line [...] + * Code in line with jump around {...} + */ + +void Xasync(void); +void Xconcatenate(void); +void Xdollar(void); +void Xexit(void); +void Xfunc(void); +void Xfor(void); +void Xglob(void); +void Xjump(void); +void Xmark(void); +void Xmatch(void); +void Xpipe(void); +void Xread(void); +void Xreturn(void); +void Xlocal(void); +void Xreadcmd(void); +void Xunlocal(void); +void Xassign(void); +void Xbasic(void); // Xbasic(args) run command and wait for result +void Xerror(char*); +void Xword(void); + +/* builtin commands */ +void xdot(void); +void xboot(int argc, char *argv[]); |