2 ms·
I wrote a BASIC interpreter in VAX assembly language (in 1986). I feel old.. I enjoyed Atari 800 BASIC, so it was modeled after that, tokenized during line en
by jhallenworld 8y ago
I wrote a BASIC interpreter in VAX assembly language (in 1986). I feel old..
I enjoyed Atari 800 BASIC, so it was modeled after that, tokenized during line entry so that it would not allow you to enter lines with bad syntax.
VAX assembly had instructions for spanning over characters given in a set or scanning to a character in a set, so string processing was very nice.
You should use floating point for the line numbers so that you can always insert more statements between existing lines :-)