allow unterminated strings

This commit is contained in:
Denis Molony
2021-01-16 08:10:19 +10:00
parent 112fbc086b
commit dacfb130cb
3 changed files with 73 additions and 13 deletions

View File

@@ -70,14 +70,14 @@ public class SourceLine implements ApplesoftConstants
break;
case TOKEN_REM:
if (ptr != startPtr + 1) // REM appears mid-line (should follow a colon)
{
System.out.println ("mid-line REM token");
if (ptr == startPtr + 1)
inRemark = true;
else
{ // REM appears mid-line (should follow a colon)
System.out.printf ("%5d %s%n", lineNumber, "mid-line REM token");
sublines.add (new SubLine (this, startPtr, (ptr - startPtr) - 1));
startPtr = ptr - 1;
}
else
inRemark = true;
break;