GOTO MAIN
-REM $INCLUDE: 'readline.in.bas'
+REM $INCLUDE: 'mem.in.bas'
REM $INCLUDE: 'types.in.bas'
+REM $INCLUDE: 'readline.in.bas'
REM $INCLUDE: 'reader.in.bas'
REM $INCLUDE: 'printer.in.bas'
REM PRINT(A) -> R$
MAL_PRINT:
- AZ=A:PR=1:GOSUB PR_STR
+ AZ=A:B=1:GOSUB PR_STR
RETURN
REM REP(A$) -> R$
IF ER<>-2 THEN GOTO REP_DONE
A=R:GOSUB MAL_PRINT
- RT$=R$
REP_DONE:
REM Release memory from EVAL
AY=R:GOSUB RELEASE
- R$=RT$
END SUB
REM MAIN program
REPL_LOOP:
A$="user> ":GOSUB READLINE: REM call input parser
IF EZ=1 THEN GOTO QUIT
+ IF R$="" THEN GOTO REPL_LOOP
A$=R$:CALL REP: REM call REP
GOTO REPL_LOOP
QUIT:
- REM GOSUB PR_MEMORY_SUMMARY
- END
+ REM GOSUB PR_MEMORY_SUMMARY_SMALL
+ #cbm END
+ #qbasic SYSTEM
PRINT_ERROR:
- PRINT "Error: "+ER$
- ER=-2:ER$=""
+ PRINT "Error: "+E$
+ ER=-2:E$=""
RETURN