-
Notifications
You must be signed in to change notification settings - Fork 127
Description
I load sample01.bas and write garbage in line 8. Error is reported always in line 1. Seem interpreter see all program in one bug line.
Issue when listing program and error report. See output. I try with Linux Mint on I7-8565U PC and my Raspberry Pi 3 runnung PiOS. Same problem. I try to locate where is the bug with end of line.
pi@raspberrypi:~/my_basic/output $ ./my_basic
MY-BASIC Interpreter Shell - 1.2.2
Copyright (C) 2011 - 2025 Tony Wang. All Rights Reserved.
For more information, see https://github.com/paladin-t/my_basic/.
Input HELP and hint enter to view the help information.
]load ../sample/sample01.bas
Done, 7 lines loaded.
]list
1]REM This program is an example of MY-BASIC2]REM For more information, see https://github.com/paladin-t/my_basic/3]4]s$ = "Hello"5]s$ = s$ + " " + "world"6]print s$ + "!"7]]run
Hello world!
]dfkl;j
]run
Hello world!Error:
Ln 1, Col 163
Code 38, Abort Code 3
Message: Assign operator expected.
]