3 ms·
Basic Parsing Difficulties in EndBASIC
- eesmith 4y ago> From the looks of all of this, it is fairly reasonable to assume that original BASIC parsers read code line by line, did simple prefix matching to determine what to do on a single line, and then passed the remainder of the line to a routine to handle it. Correct. The Final Report, June 1967 at https://files.eric.ed.gov/fulltext/ED024602.pdf https://files.eric.ed.gov/fulltext/ED024602.pdf says: ] All BASIC statements consist of a line number followed by a word which identifies the type of the statement; the statement ends with the end of the line. ... ] The Computational or assignment statement is introduced with the LET. Following the word LET is a variable, which can be either simple or subscripted, and then an equal sign. To the right of the equal sign is an arithmetic expression which is to be evaluated.