Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
corrected problem with print functions in expressions
added a temporary check for if the command stack (which is not used with the new translator routines) is not empty in findCode() before checking for a print function added missing entries (specifically for the none data type) to the data type conversion table, which contain invalid codes, so that the table is not access beyond its bounds added additional statements with invalid print functions to translator test #3 (note: old translator does not correctly report errors for these so tests fail when using old translator)
- Loading branch information
1 parent
8c872f6
commit 250b6ff
Showing
3 changed files
with
37 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,5 @@ A%,B$,C% = 1 | |
A$,B$,C% = 1 | ||
A$,B$,C$ = 1 | ||
Z = A$ + B * C | ||
A = TAB(4) | ||
A = B + SPC(4) |
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
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