Thursday, August 15, 2013

New Translator – PRINT Statements (Tagged)

A minor parser issue was discovered with how the length of double word command tokens were being set, which was noticed with the "not yet implemented" errors not pointing at the entire INPUT PROMPT command.  The token length was only being set to the length of the second word plus one for the space.  This was corrected by setting the token length to the current position (first character after the second word) minus the starting column of the first word.  This also takes into account if more than one space is entered between the two words.

The PRINT statements implementation in the new translator is now complete and version v0.4.3 has been tagged.  All tests pass with the old translator routines (after some corrections were made).  All translator tests pass with the new translator routines with the exception of the INPUT and REM statements as these have not been implemented yet.  Some minor cleanup was done with the latest commit along with updating the files for v0.4.3 (see the commit log for details).  Implementation of INPUT statements can now commence in the new translator.

[commit bd608f5cf3] [commit 0e316f71ce]