-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Count our line-offsets only AFTER we've updated IFs.
Nowadays we rewrite some IF statements, turning this: IF A < B THEN 300 ELSE 400 into this: IF A < B THEN GOTO 300 ELSE 400 By doing this we change the length of our program, and that means that any calculated line-number -> program-offset mapping is off. Calculate the line-number indexes _after_ expansion, to ensure they're always correct.
- Loading branch information
Showing
1 changed file
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters