REM Step 1 of mal in BBC BASIC LIBRARY "types" LIBRARY "reader" LIBRARY "printer" PROCtypes_init REPEAT REM Catch all errors apart from "Escape". ON ERROR LOCAL PRINT REPORT$:IF ERR = 17 THEN END ELSE PROCgc_restore(sav%) sav% = FNgc_save PRINT "user> "; LINE INPUT "" line$ PRINT FNrep(line$) PROCgc_restore(sav%) UNTIL FALSE END DEF FNREAD(a$) =FNread_str(a$) DEF FNEVAL(a%) =a% DEF FNPRINT(a%) =FNpr_str(a%, TRUE) DEF FNrep(a$) =FNPRINT(FNEVAL(FNREAD(a$))) REM Local Variables: REM indent-tabs-mode: nil REM End: