> Hello everyone, > > I just realized there are no 'continue' and 'next' commands in rc. Is > there any way to e.g. quit the loop when one wants?
there are some workarounds, but in the end i added a break statement to rc. inside rc's machine, i implemented break as jump to the statement after the loop. the target address is backpatched. it wouldn't be hard to add other control flow statements but i didn't provide a mechanism for backpatching more than one address. i couldn't justify more control flow statements at the time and so i didn't generalize. the code is in /n/sources/contrib/quanstro/futharc.c. most of the interesting stuff is in *.y and code.c. beware, this code is out of date right now. - erik