Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parser: removed data type from errors
removed setting of token data type since returned status alone can be used to determine a numeric constant error when status is not unknown token changed method how translator detects parser error type from checking for 'parser' error along with data type (double for numeric, none for non-numeric) to just checking for unknown token (if not then numeric constant error) changed translator get token function to return status returned from parser (unknown token or numeric constant error) instead of generic 'parser' error status removed check for parser error from translator get operand function for references since get token function only returns parser errors moved unary operator check in translator process internal function routine to before error check so that when a unary operator is present (also an error), it needs gets passed further down where an updated error is determined removed no longer used 'parser' error status
- Loading branch information
1 parent
5690b1b
commit ae9e976
Showing
8 changed files
with
17 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,6 @@ enum class Status | |
{ | ||
Good, | ||
Done, | ||
Parser, | ||
ExpCmd, | ||
ExpExpr, | ||
ExpExprOrEnd, | ||
|
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