Re:Coding a new BASIC interpreter in 2025 to replace a slow one
by egypturnash on Tuesday September 30, 2025 @09:43PM
(#45433456)
This is some beautifully horrible spaghetti, well done. It's like I'm eleven years old and barely understand what's going on in the computer again.
I just fired up VICE and my virtual c64 happily ran both of those, if throwing an "out of memory" error after about five runs through the first one counts as "happily".
I think you do. Apart from common sense, nothing forbids one from writing stuff like
I think many basics also allowed changing that goto 100 to goto 200 and adding Yes, things would likely end badly, but the basic interpreter would not be smart enough to reject such programs. Its editor didn’t even guarantee that a for statement had a corresponding next or vice versa; all it guaranteed was that the program consisted of a list of lines that each in isolation are valid basic code.