diff options
author | Nicholas Noll <nnoll523@gmail.com> | 2021-10-26 12:35:22 -0700 |
---|---|---|
committer | Nicholas Noll <nnoll523@gmail.com> | 2021-10-26 12:35:22 -0700 |
commit | 2416a8654e3c1a4b74fcc0379dac5294670a1f46 (patch) | |
tree | eb63703a92b035752674b9ab97a310fe58b2862a /sys/cmd/rc/exec.h | |
parent | 47e1e78da8eba4d755179d61a16f2c7920d2da39 (diff) |
feat(rc): keywords now recognized. for and while loop
Prototypes for loops sketched. This required recognizing keywords and
returning from yylex. Debugging/testing will be required.
Diffstat (limited to 'sys/cmd/rc/exec.h')
-rw-r--r-- | sys/cmd/rc/exec.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/cmd/rc/exec.h b/sys/cmd/rc/exec.h index 635eb1d..a3a6ae9 100644 --- a/sys/cmd/rc/exec.h +++ b/sys/cmd/rc/exec.h @@ -8,12 +8,14 @@ */ void Xmark(void); // Xmark marks stack location for word -void Xtrue(void); // Xtrue{...} execute {} if true -void Xfalse(void); // Xfalse{...} execute {} if false -void Xdollar(void); // Xdollar(name) get value of name void Xindex(void); // Xindex void Xlocal(void); // Xlocal(name,val) create local variable, assign value void Xunlocal(void); // Xunlocal delete local variable +void Xdollar(void); // Xdollar(name) get value of name +void Xtrue(void); // Xtrue{...} execute {} if true +void Xfalse(void); // Xfalse{...} execute {} if false +void Xgoto(void); // Xgoto[addr] goto address +void Xfor(void); // Xfor(var, list){... Xreturn} void Xreadcmd(void); // void Xassign(void); void Xbang(void); |