Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reorganized associated code processing
moved code in Translator::findCode() to new Table::findCode() that checks a data type for an internal function or operator token to see if it matches its expected data type for a given operand and changes the token to an associated code if one exists or gets a hidden conversion code that needs to be added after the operand, or returns the expected data type if the operand can't be converted (some unused code was also removed) moved cvtCodeHaveNeed[][] array from translator.cpp to table.cpp, which new table find code needs, and added a Table::cvtCode() access function that takes a token and data type renamed Translator::findCode() to processDoneStackTop() renamed local first/last variables in processDoneStackTop() added comments on code to remove with old translator routines
- Loading branch information
1 parent
0e316f7
commit b5fa514
Showing
6 changed files
with
164 additions
and
148 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
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
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
Oops, something went wrong.