3 REM $INCLUDE: 'readline.in.bas'
4 REM $INCLUDE: 'types.in.bas'
5 REM $INCLUDE: 'reader.in.bas'
6 REM $INCLUDE: 'printer.in.bas'
8 REM $INCLUDE: 'debug.in.bas'
15 REM EVAL(A%, E%) -> R%
22 AZ
%=A
%: PR
%=1: GOSUB PR_STR
28 IF ER
%<>0 THEN GOTO REP_DONE
31 IF ER
%<>0 THEN GOTO REP_DONE
33 A
%=R
%: GOSUB MAL_PRINT
37 REM Release memory from EVAL
46 ZT
%=ZI
%: REM top of memory after base repl_env
49 A
$="user> ": GOSUB READLINE: REM call input parser
50 IF EOF=1 THEN GOTO QUIT
52 A$=R$: GOSUB REP: REM call REP
54 IF ER%<>0 THEN GOSUB PRINT_ERROR: GOTO REPL_LOOP
59 REM P1%=ZT%: P2%=-1: GOSUB PR_MEMORY
60 GOSUB PR_MEMORY_SUMMARY