From 2416a8654e3c1a4b74fcc0379dac5294670a1f46 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Tue, 26 Oct 2021 12:35:22 -0700 Subject: 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. --- sys/cmd/rc/exec.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/cmd/rc/exec.h') 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); -- cgit v1.2.1